Suppose I have the following pages<br><br>Cat/SomePage<br>Cat/SomePage_detail1<br>Cat/SomePage_detail2<br>AnotherCat/Page<br>AnotherCat/Page_detail<br><br>I'd like to create a pagelist directive wich sorts them this way:<br>
<br>Cat/<br> SomePage<br> detail1<br> detail2<br>AnoterhCat/<br> Page<br> detail<br><br>I'm stuck Modifying the #default template:<br><br>[[#notDefault]]<br>(:if ! equal {=$Group} {<$Group}:)<br><br>:[[{=$Group}/]] /:
<br>(:if:)<br>: :[[{=$Group}/{=$Name}]] - {=$Title}<br>(:pagelist group={=$Group} list=normal fmt=#detail:)<br>(:if:)<br>[[#notDefault]]<br><br>[[#detail]]<br>(:if match /_/i {=$Name} :)<br> --> [[{=$Group}/{=$Name}]] - {=$Title}
<br>
(:pagelist list=normal fmt=#detail:)<br>
(:if:)<br>
[[#detail]]<br>
<br><br>I don't really know what I'm doing, but the #detail should find the {=$Name}_* pages and print them, but the match expression does not seem to work, I don't have any clue how it does work and can't find examples. Even if it does, I'd get doubles in my list. Is there any easy way to create a pagelist with those 'sub categories' if you create a Group/Page_SubPage with '_' or whatever?
<br><br><br><br>Thanks!<br><br>-- Wouter<br>