Re: Custom index in a folder
"kit BLAKE" <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
2006/4/7, Jonny Perl <[email protected]>: > In my Silva installation, I have some publications in the root, and > within these publications I have folders. Within these folders I have > documents, but since none of these is explicitly introductory, I have > given them all semantically relevant id's, and there is no document > called 'index'. > > My problem is that when a folder is requested (in the form > 'http://mysite/publication/folder'), the user is just taken to a blank > folder. > > Is there a way in which when 'http://mysite/publication/folder' is > requested I can force Silva to link to > 'http://mysite/publication/folder/document' where 'document' is the > default to the first published document in the folder? There is an easy way, but it's not bulletproof like your idea. Create a Silva Link object and give it the id 'index'. Make it a releative link pointing to the document you want. When you go to http://mysite/publication/folder Silva will redirect to your document. HTH, kit -- kit BLAKE Infrae · infrae.com · office + 31 10 243 7051 Hoevestraat 10 · 3033GC · Rotterdam · The Netherlands