Creating a Gallery
A Gallery Content Item is used to display a series of pictures (using the Picture Content Type) that are already stored in the CMS database. In order to create a Gallery, you must use the HTML-gallery.tpl.php and pass a parameter which references a part of the filename of your series of images.
The implication of this is that the title of each of the images within the series must contain the parameter.
- We will create the Gallery first. Create a new menu item (or use the backend Content Folders screen).
- Select to use the HTML content type. Create a content item with the HTML-gallery.tpl.php template.
- Click on the Template Details icon in the toolbar. Edit the Template Details and look for a "search_param" parameter (Skip to Step 4 if this parameter exists). If it does not exist, we need to create it.
- To create a parameter, go to the Admin Control Panel, select Templates, and edit the settings for the Gallery template.
- To insert a parameter, click Edit and then Add Parameter. You must call the parameter "search_param". Save the new details.
- On the Content Item's Template Details, enter a parameter value that contains the keyword within your series of image titles.
- The gallery will now display all images that have the parameter value in the item's title.
- To upload a picture that will be visible in the gallery, create a new menu item (or use the backend Content Folders screen) to create a Picture Content Item and ensure the title contains the parameter value.
Top of Page