Book Image

concrete5 Beginner's Guide

Book Image

concrete5 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – adding thumbnails to a page list


You can add thumbnails to your page list by following these steps:

  1. In the dashboard, go to Pages and Themes and then Attributes. Choose Image/File and click on Go to add the new attribute.

  2. Enter thumbnail in Handle and Thumbnail for Name.

  3. Go to the sitemap and open the properties for the child page of News:

  4. Activate the Custom Attribute register.

  5. Select our new attribute Thumbnail from the drop down list.

  6. Scroll down and select a picture you'd like to use for this page.

  7. Hit Save to confirm the modification to the page.

  8. We've entered all the data, so let's create the new template. Copy the file concrete\blocks\page_list\view.php to a new file at the location blocks\page_list\templates\news.php. You might have to create the directories page_list and templates within each other.

  9. Open the new file and look for the code printed below. It's the main loop which goes through an array of pages supplied by the page list controller. This loop is what we...