[opencms-dev] Default-file for folder tree
Paul-Inge Flakstad
flakstad at npolar.no
Tue Mar 1 15:51:13 CET 2011
Hi Tylla,
I don't see how my proposed solution has "more steps, too much for some users", so I'll just clarify real quick, in case there's any misunderstaning going on.
This is what would happen:
1. The user clicks "New" --> "Folder"
2. In the "New folder" dialog, the user does all the normal stuff, and checs that the "Index page" is set to "TOC" (a type you have added as an available index page type)
3. The user clicks "OK" - done
An index page of type "TOC" is automatically created inside the new folder. It lists the folder contents like you want. The user can edit the title if he wants to (e.g. overriding a default title which you've defined).
I think this is almost as simple as it gets, and should be no problem - even for the v0.9beta types. ;-)
Cheers,
Paul
________________________________
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Nagy Attila
Sent: 1. mars 2011 15:36
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Default-file for folder tree
Hi!
Thanks for the tip Michael, I will take a look at the source code of DocCenter.
As for the other ideas:
- Paul: yours is a very good idea, it simplifies the process a little bit, but it still has some extra steps, too much for some users (the v0.9beta type :-).
Actually it helped me in other areas too - this way I found out how to limit the available object types in the New dialog (restypes.available).
- Lynn: yep, structure is the key aspect, this would be an articles list, with subfolders as categories, so I would like to go with something that can respect the folder hierarchy.
Finally to get back to my original question: can somebody clear me up on default-file? How does it work? One has to put a simple filename in it - so no path is allowed?
Thanks
Tylla.
On 2011. 02. 25. 15:34, Michael Emmerich wrote:
Tylla,
take a look at the code of the OAMP Doccenter, as it is doing something
similar what you want to do - showing a list of resources (something
like a directory listing) - when you access the folder only.
The key is the initResource handler, it checks if you access a folder in
the uri and then internally calls a jsp that is displaying the list of
content.
Kind regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110301/f9ab29bb/attachment.htm>
More information about the opencms-dev
mailing list