You can add thumbnails to your page list by following these steps:
In the dashboard, go to Pages and Themes and then Attributes. Choose Image/File and click on Go to add the new attribute.
Enter
thumbnail
in Handle andThumbnail
for Name.Go to the sitemap and open the properties for the child page of News:
Activate the Custom Attribute register.
Select our new attribute Thumbnail from the drop down list.
Scroll down and select a picture you'd like to use for this page.
Hit Save to confirm the modification to the page.
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 locationblocks\page_list\templates\news.php
. You might have to create the directoriespage_list
andtemplates
within each other.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...