[opencms-dev] Default-file for folder tree
Paul-Inge Flakstad
flakstad at npolar.no
Fri Feb 25 15:24:45 CET 2011
Hi Tylla,
Instead of dabbling with the "default-file" property, how about just setting the "restypes.indexpage" property to a resource type especially created to serve the required purpose? (For example an xmlcontent type with its "template-elements" property set to a JSP that does what you want it to.)
As far as I can see, this could be a simple solution in your case.
Cheers,
Paul
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Nagy Attila
> Sent: 25. februar 2011 13:45
> To: opencms-dev at opencms.org
> Subject: [opencms-dev] Default-file for folder tree
>
> Hi!
>
> I am having a frequently changing directory tree which is
> populated with
> some custom XML objects. What I want to do is automatically list the
> elements of a folder when the folder is accessed.
> I managed to solve this, but it is too tedious (it involves
> creating an
> index.html in every folder and adding a property which gets
> read by the
> template). I can't put this in the hand of the user, it would forget
> one-two steps and I have to clean up the mess. :(
>
> I thought this could be done simply with the "default-file"
> property, by
> setting it to some self-made jsp file that lists the
> directory contents,
> but it doesn't seem to work.
>
> I did search the mail list and the forums, but except for an almost
> similar question that wasn't answered anyway, I couldn't find
> any usable
> info.
> Am I missing something?
> How does the "default-file" property work?
>
> Thanks in advance, and sorry if this was already answered somewhere
> (than some pointer would be welcome too).
> Tylla.
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list