Re: [xwiki-users] display childpages

2010-05-06 Thread Thomas Mortagne
On Thu, May 6, 2010 at 11:44, Vincent Massol  wrote:
>
> On May 6, 2010, at 11:16 AM, hel-o wrote:
>
>>
>> Hi,
>>
>> i'm looking for a possibility to display links to childpages
>>
>> the child page snipet depends on the doctree plugin (is that available on
>> myxwiki.org?) so is there a nother way?
>
> Yes, you can write a child page wiki macro, that's easy to do.
>
> For writing wiki macros see this tutorial:
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial
>
> Then all that is needed is to do a HQL query that lists all docs which have 
> the current page as their parent.

Not even actually, you can use $doc.getChildren() to get list of
document children names.

>
> Note: we should have this as a builtin wiki or java macro and have a panel 
> for it too.
>
> Thanks
> -Vincent
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] display childpages

2010-05-06 Thread Vincent Massol

On May 6, 2010, at 11:16 AM, hel-o wrote:

> 
> Hi,
> 
> i'm looking for a possibility to display links to childpages
> 
> the child page snipet depends on the doctree plugin (is that available on
> myxwiki.org?) so is there a nother way?

Yes, you can write a child page wiki macro, that's easy to do.

For writing wiki macros see this tutorial:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial

Then all that is needed is to do a HQL query that lists all docs which have the 
current page as their parent.

Note: we should have this as a builtin wiki or java macro and have a panel for 
it too.

Thanks
-Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] display childpages

2010-05-06 Thread hel-o

Hi,

i'm looking for a possibility to display links to childpages

the child page snipet depends on the doctree plugin (is that available on
myxwiki.org?) so is there a nother way?

Thanks
hel.

-
semantic-web.hel.at
h...@hel.at

-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/display-childpages-tp5013284p5013284.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users