Excellent, thanks!
Now, if there is just a way to add a toc, at least at the section level this
will be quite an acceptible work around.
- Mark
-----Original Message-----
From: Ludovic Dubost [mailto:ludovic@xwiki.com]
Sent: Thursday, September 22, 2005 2:16 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] replicate sectional editing behavior
Lichman, Mark Eugene wrote:
Ok, I've gotten the first part (including all
children in a page) with the
following:
#set($sql = "where doc.parent = '${doc.web}.${doc.name}'")
#foreach($item in $xwiki.searchDocuments($sql))
#includeTopic($item)
#end
Not sure how to do the rest.
To add a link:
#set($sql = "where doc.parent = '$doc.fullName'")
#foreach($item in $xwiki.searchDocuments($sql))
#set($itemdoc = $xwiki.getDocument($item))
<a href="$itemdoc.getURL("edit")">edit this section</a>
#includeTopic($item)
#end
To add a form field to create a new section.. Another solution could be
to automatically name pages using a counter and use the parent page name..
<form action="">
<input type="hidden" name="parent" value="$doc.fullName"
/>
Add a section: <input type="text" name="name" value="new
section name" />
<input type="button" value="Go"
onclick='action="../../edit/${doc.web}/" + this.form.name.value;
this.form.submit();' />
</form>
Ludovic
- Mark
-----Original Message-----
From: Lichman, Mark Eugene
Sent: Thursday, September 22, 2005 12:28 PM
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] replicate sectional editing behavior
I'd like to replicate sectional editing behavior. I think a possible way to do
this is:
1. create a parent page and include all child pages,
2. for each child include a link to the edit page
3. add a class at the bottom of the parent page to create a new section, maybe
automatically creating the link to the new sections edit page
Is this possible? Could someon help me figure out how to do this, i.e. how to
include all child page in a parent and create the necessaryv class.
Thanks Much,
- Mark Lichman
------------------------------------------------------------------------
--
You receive this message as a subscriber of the xwiki-users(a)objectweb.org
mailing
list.
To unsubscribe:
mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
--
Ludovic Dubost
XPertNet:
http://www.xpertnet.fr/
Blog:
http://www.ludovic.org/blog/
XWiki:
http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic