Re: [Rest2web-develop] Section headers
Brought to you by:
mjfoord
From: Michael F. <fuz...@vo...> - 2006-08-05 15:05:34
|
martin f krafft wrote: > also sprach Michael Foord <mi...@pc...> [2006.08.05.1426 +0100]: > >> Which is perhaps a little ugly. :-) >> >> The better way of achieving this is to provide uservalues in your site >> config file. These are already available to every page. >> > > by site config file, you mean .ini file? > > Yes. >> You can't access the restindex or uservalues of pages through >> indextree. >> > > Mh, this is not what I wanted to hear... would it be possible to add > this? I think it would just make it a whole lot more flexible, > especially since indextree seems to be the structure representing > the entire site and hence needs to be used for a lot of different > functions. > Don't forget that rest2web is built top down. The indextree only contains information for pages/directories above the one currently being rendered, not for the whole site. I've now (experimentally) added the restindex and uservalues for each page into the indextree. Now checked in. Please let me know if this works for you. Fuzzyman http://www.voidspace.org.uk/python/index.shtml > >> Every page in indextree has a 'link-title'. If this hasn't been >> explicitly set in the restindex of a page, it defaults to the page title. >> >> What other values do you need access to ? >> > > Well, the page-title if link-title has been set. :) > > But I guess I could also just name my /index.txt "Introduction" > (which is the current link_title) and use site-wide uservalues to > define the site title. > > Thanks again for your continued patience and support! > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > |