<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17095" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2>Hi Tylla,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2>This is what would happen:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2>1. The user clicks "New"
--> "Folder"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2>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)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2>3. The user clicks "OK" - done</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2>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).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2>I think this is almost as simple as it gets,
and should be no problem – even for the v0.9beta
types. ;-)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=004394014-01032011><FONT face=Arial
color=#0000ff size=2>Paul</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Nagy
Attila<BR><B>Sent:</B> 1. mars 2011 15:36<BR><B>To:</B>
opencms-dev@opencms.org<BR><B>Subject:</B> Re: [opencms-dev] Default-file for
folder tree<BR></FONT><BR></DIV>
<DIV></DIV>Hi!<BR><BR>Thanks for the tip Michael, I will take a look at the
source code of DocCenter.<BR><BR>As for the other ideas:<BR> - 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
:-).<BR>Actually it helped me in other areas too - this way I found out how to
limit the available object types in the New dialog
(<I>restypes.available</I>).<BR> - 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.<BR><BR>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?<BR><BR>Thanks<BR>Tylla.<BR><BR>On
2011. 02. 25. 15:34, Michael Emmerich wrote:
<BLOCKQUOTE cite=mid:4D67BE04.6010000@alkacon.com type="cite"><PRE wrap="">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
</PRE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>