[xwiki-users] A couple of questions after migrating xwiki from 0.9.840 to 1b3
Jean-Vincent Drean
jv at xwiki.com
Mon Feb 12 16:05:56 CET 2007
2007/2/12, Vincent Massol <vincent at massol.net>:
> Hi Jimmy,
>
> On Feb 12, 2007, at 12:57 AM, jimmy at comkraft.com wrote:
>
>
> >
> > 2. My previous pages are categorized in 0.9.840 in 15 categories. I
> > could
> > navigate to the pages from the category list. Now all my pages are
> > displayed in the Main space without categorization. Is there a way
> > to get
> > back the categorization for each pages? I noticed there are a
> > couple of
> > predefined categories in the Blog space.
>
> I don't have an answer for this. Maybe others know?
>
I assume you are talking about blog posts, to see the categories again
you'll have to create a panel (/xwik/bin/view/Panels/) containing this
code :
---------------------------------
#panelheader('Blog')
#set($blogcatdoc = $xwiki.getDocument("Blog.Categories"))
#if($xwiki.hasAdminRights())
<font size="-2">(<a href="$blogcatdoc.getURL("inline")">Editer les
Categories</a>)</font>
#end
#set($catdoc = $xwiki.getDocument("Blog.Categories"))
#foreach($catobj in $catdoc.getObjects("Blog.Categories"))
#set($catname = $catdoc.display("name","view",$catobj))
#if($catname!="")
* [${catname}>Blog.Category?category=${catname}]
#end
#end
#panelfooter()
---------------------------------
More information about the users
mailing list