[silva-dev] Custom index in a folder
kit BLAKE
kitblake at gmail.com
Fri Apr 7 22:10:45 CEST 2006
2006/4/7, Jonny Perl <jonnyp at gmail.com>:
> 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
More information about the silva-dev
mailing list