It provides a field under the text editor where you can copy the foldername of the gallery you want to show.
Once filled in the foldername, the gallery will appear on the bottom of the page. Easy as that

Foldername: uploads/images/Gallery/folder/folder
News Module
1.Create in the News module the Field Definitions you need:
Content >> News >> Field Definitions
-> folder_public_gallery
-> folder_secure_gallery
and check 'Public'!
2.Modifications to the article template:
Code: Select all
<div id="NewsPostDetailContent">
{eval var=$entry->content}
</div>
{* --- Addition public gallery --- *}
{if isset($entry->folder_public_gallery)}
{Gallery dir=$entry->folder_public_gallery}
{/if}
{* --- End --- *}
{* --- Addition secure gallery --- *}
{if isset($entry->folder_secure_gallery)}
<p><b>The gallery is only visible for authorized visitors of this website!</b></p>
{if $ccuser->loggedin()}
{Gallery dir=$entry->folder_secure_gallery}
{/if}
{/if}
{* --- End --- *}
{if $entry->extra}
<div id="NewsPostDetailExtra">
{$extra_label} {$entry->extra}
</div>
{/if}
Code: Select all
<!--
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="NewsDetailField">
{if $field->type == 'file'}
{* this template assumes that every file uploaded is an image of some sort,
because News doesn't distinguish *}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
-->
Webpage
Addition to the HTML-template:
Code: Select all
{content}<br />
{* --- Addition public gallery --- *}
{content block='Folder public gallery' oneline='true' wysiwyg='false' assign='galleryfolder'}
{if $galleryfolder}
{Gallery dir=$galleryfolder}
{/if}
{* --- End --- *}
{* --- Addition secure gallery --- *}
{content block='Folder secure gallery' oneline='true' wysiwyg='false' assign='galleryfolder_secure'}
{if $galleryfolder_secure}
<p><b>The gallery is only visible for authorized visitors of this website!</b></p>
{if $ccuser->loggedin()}
{Gallery dir=$galleryfolder_secure}
{/if}
{/if}
{* --- End --- *}
If you want to create a secure gallery, you also need Frontend Users and Custom Content of course!
http://calguy1000.com/uploads/1/Hiding_ ... e-pdf.html