Thanks.. Actually i want to display the page link only which logged in user has created in the separate panel. And remaining pages should not display for him. Now i can able to display all the page link in the panel. #foreach($subdoc in $xwiki.getSpaceDocsName("$doc.web")) - [${doc.web}.${subdoc}] #end Here i need to filter the creator of the page with currently logged in user. Then i can able to give it panels. I don't know how to get the creator name of each page from the loop. One thing i know $doc.getCreator() this is used to get the creator name. Don't to how use this one in that for loop. -- Prathap On Thu, Jul 10, 2008 at 3:18 PM, Jean-Vincent Drean <[email protected]> wrote:
Hi,
I've put a snippet on xwiki.org :
http://code.xwiki.org/xwiki/bin/view/Snippets/ListWikiPagesCreatorsInCurrent... If you have interesting snippets to share, don't hesitate to put them on code.xwiki.org as well.
JV.
On Thu, Jul 10, 2008 at 9:50 AM, Prathap Pandian <[email protected]> wrote:
Hi,
I want to print the page creator in the panel.
And i have used the following code:
#panelheader($doc.web) #foreach($subdoc in $xwiki.getSpaceDocsName("$doc.web")) #set($web = $doc.web) #set($page = $subdoc) #set($document = "$web.$page") $document.getCreator() #end #panelfooter()
but it seems not working.
-- Prathap _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs