home
index
library
Editing 'Index of Pages'
User Guide
|
Change Permissions
|
How to Format Text
Manage Page:
Page Type:
Structured text + links + DTML + HTML
Structured text + links + HTML
Structured text + links
WikiWikiWeb formatting + links
links + DTML + HTML
links + HTML
DTML + HTML
HTML
text + links
plain text
Attach a File or Image:
<dtml-let letters="['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']" pages="folder().objectValues(spec='ZWiki Page') #Catalog()" > <a href="#_">_</a> <dtml-in letters prefix=x> | <a href="#&dtml-x_sequence_item;">&dtml-x_sequence_item;</a> </dtml-in> <dtml-comment>1. if only we had filter <dtml-in "['_']+letters" prefix=x> <a name="&dtml-x_sequence_item;"><dtml-var x_sequence_item> <dtml-in pages sort=title_or_id prefix=y> <dtml-let letter="title_or_id[0].upper()"> <dtml-if "letter == x_sequence_item or letter not in letters and x_sequence_item == '_'"> <a href="&dtml-id;">&dtml-title_or_id;</a><br> </dtml-if> </dtml-let> </dtml-in> </dtml-in> </dtml-comment> <dtml-comment>2. one pass through the page list <a name="_">_ <dtml-call "REQUEST.set('previousLetter','')"> <dtml-in pages sort=title_or_id prefix=y> <dtml-let letter="title_or_id[0].upper()"> <dtml-if "letter != previousLetter and letter in letters"> <dtml-call "REQUEST.set('previousLetter',letter)"> <a name="&dtml-letter;"><dtml-var letter> </dtml-if> <a href="&dtml-id;">&dtml-title_or_id;</a><br> </dtml-let> </dtml-in> </dtml-comment> <dtml-comment>3. REQUEST is my scratchpad </dtml-comment> <dtml-in pages prefix=x> <dtml-let thisPageName="title_or_id()" thisLetter="thisPageName[0].upper()" pageList="((thisLetter in letters) and 'pagesStartingWith'+thisLetter) or 'pagesStartingWith_'" > <dtml-call "REQUEST.set(pageList,REQUEST.get(pageList,[])+[x_sequence_item])"> </dtml-let> </dtml-in> <dtml-in "['_']+letters" prefix=x> <a name="&dtml-x_sequence_item;"><dtml-var x_sequence_item> <dtml-in "REQUEST.get('pagesStartingWith'+x_sequence_item,[])" sort=title_or_id prefix=y> <a href="&dtml-id;">&dtml-title_or_id;</a><br> </dtml-in> </dtml-in> </dtml-let>
Cancel Edit