Page List formatting

Permalink
New to concrete, exploring a bit of the options. From what I read so far, I am heading down a path that uses Page lists, but want to control the format, like such:

<Item1>
..{Page}.................{link 1}
..{Page Description}.....{link 2}
.........................{link n}
</Item1>
<Item2>
..{Page}.................{link 1}
..{Page Description}.....{link 2}
.........................{link n}
</Item2>

Is this doable?
Should i be looking to us a different feature?

thanks in advance...

 
ggn06awu replied on at Permalink Reply
ggn06awu
Yes, you need to write a Custom Template for the page_list block though. To create the template you must create a new php file in this folder (can also be done within packages) like so:
/blocks/page_list/templates/my_template.php

Now when you click on your block in edit mode you should be able to see a Custom Template option, with the drop down within that screen showing my_template or whatever you called the file.

Now to make the template behave properly, you should start by copying out the contents of of the core view.php for this block (/concrete/blocks/page_list/view.php) and simply begin modifying it to your needs in your my_template.php.

There's quite a bit of help out there for this (assuming the above isn't enough) if you Google, such as:
http://www.concrete5.org/community/forums/usage/how-to-make-a-custo...