Part 8 - Creating the category homepage using Reporting
Overview
Create a homepage for each category to list all the articles available in that category.
Link to Add New Article (optional)
insert an add-page macro from our Linking app
edit the add-page macro
Name can be left blank if you do not wish to add a default page title.
enter the name of the link in Link Text
enter the name of the template you wish to render in Source
Remember to check Live Template so that the new page renders a live-template block!
enter the name of the labels you wish to attach to the new page in Labels
Creating the Article Listing
enter a title for the listing
for example, 'List of articles labeled under...'
insert a report-info block to display the title of the article
The title is also the name of the label.
edit the report-info block
enter
content:title
in Key
insert a report-list block
In the report-list block
insert a local-reporter and report-body block
edit the local-reporter block
enterÂ
content:children
in Key
Inside the local-reporter block
insert a date-sort block
edit the date-sort block
enterÂ
content:modification date
in Key
In the report-body block
insert three report-info blocks
for the first report-info block
enterÂ
content:title
in Keycheck Link To Item
for the second report-info block
enterÂ
content:modification date
in Key
For the third report-info block
enterÂ
content:modifier
in Keycheck Link To Item
This layout can be used continuously across different categories, you just have to change the label and template source in the add-page macro.