[Rest2web-develop] Re: rest2web (question)
Brought to you by:
mjfoord
From: Fuzzyman <fuz...@vo...> - 2005-10-24 07:29:33
|
Hello Wolfgang, I'm glad you're trying out rest2web. I'm putting a bit of work into it at the moment. -----Original Message----- >From: "Wolfgang Buechel"<wj...@we...> >Sent: 22/10/05 00:34:16 >To: "Fuzzyman"<fuz...@vo...> >Subject: rest2web (question) > >Hello again, > >I observed that the topics in the sidebar on the left are shown in >the same order as the files in the directory, or am I wrong? > >Is there a way to arrange them in another order? > You're correct - they're basically in an 'arbitrary' order, which turns out to be the order of the files in the directory. In the version in SVN there is a way to set this order - but it's currently undocumented. It's one of the features of the forthcoming 0.4.0 release and I'm working on the docs. This is the new 'section-pages' keyword in the restindex (of the relevant index page). 'section-pages' sets the order of pages within each section. The order of sections obviously follows the 'sectionlist' keyword. To set the order of pages in the default section, add something like this to the restindex : :: section-pages: , page1, page2, page3 Note the extra leading ',' to specify the default section. Alternatively you can do : :: section-pages: section-name, page1, page2, page3 page1 equates to page1.txt, page2 to the file page2.txt, etc. This should set the order the pages appear in the 'sections' data structure *and* the sidebar - if it doesn't, then let me know. :-) All the best, Fuzzy Http://www.voidspace.org.uk/python >Regards >Wolfgang > |