Hi
Regarding accessing Panels Wizard problem on myxwiki.
In my case I'm trying to create a new panel (tag cloud) so things are a
bit more complex. So below is a guide on how to do it without the Panel
Wizard.
I think my programming rights for myxwiki.patternlanguagenetwork got
corrupted due to recent upgrade issues so can I ask someone to reinstate
them or to resave this page 'Panels.TagCloud'.
Add TagCloud Panel without going through PanelWizard (require
Programming Rights).
1. Create page called Panels.TagCloud ('xwiki/bin/view/Panels/TagCloud'
then click on 'edit this page to create it.'.)
2. Add this line
#includeForm("Panels.PanelSheet")
3. Click 'Save and View'
4. Click on Edit -> Objects
5. Choose 'Panels.PanelClass' from the 'Add Object' panel on the right.
6. Click 'Add Object from this class' button
7. Fill in: Name=TagCloud, Panel Type=View, Description=Tag Cloud,
Category=Navigation, Content=
#panelheader('Tags Cloud')
#set($query = "select elements(prop.list) from BaseObject as obj,
DBStringListProperty as prop where obj.className='XWiki.TagClass' and
obj.id=prop.id.id and prop.id.name='tags'")
#set( $allTags = $xwiki.sort($xwiki.search($query)))
#set( $previousTag = "")
#set( $tagsWithCount = $xwiki.getHashMap())
#set( $count = 1)
#set( $maxCount = 1)
#foreach($tag in $allTags)
#if ($tag == $previousTag)
#set( $count = $count + 1)
#if ($count > $maxCount)
#set ($maxCount = $count)
#end
#else
#set( $count = 1)
#set( $previousTag = "")
#end
#set( $dummy = $tagsWithCount.put($tag, $count))
#set( $previousTag = $tag)
#end
#set($query = "select distinct elements(prop.list) from BaseObject as
obj, DBStringListProperty as prop where obj.className='XWiki.TagClass'
and obj.id=prop.id.id and prop.id.name='tags'")
#set( $tagsDistinct = $xwiki.sort($xwiki.search($query)))
<div style="font-size: 10px; text-align: justify; text-justify: auto;">
#foreach($tag in $tagsDistinct)
#set( $currentCount = $tagsWithCount.get($tag))
##set($size = 15 + ($currentCount * 150 / $maxCount))
#set($size = 10 + ($currentCount/2))
#set($size = $size + "px")
<span style="font-size: $size"><a
href="$xwiki.getURL("Main.Tags",
"view", "tag=$tag")")>$tag</a></span>
#end
</div>
#panelfooter()
8. Click 'Save and View'
9. Go into XWikiPreferences and click Edit->Objects.
10. Find XWiki.XWikiprefferences and add value 'Panels.TagCloud' to
property 'Panels displayed on the right:'
11. Click 'Save and View'
Ajdin
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf
Of Vincent Massol
Sent: 07 February 2009 09:17
To: XWiki Users
Subject: Re: [xwiki-users] Panel Wizard doesn't show it
Hi Antonio,
On Feb 7, 2009, at 9:07 AM, Antonio Goncalves wrote:
Hi,
I'm using XE 1.6.2 / XEM 1.4.1 and when I click on the Panel Wizard it
just doesn't show up. I click on the link, but
nothing happens.
hmmm we need to look into this since I've heard this problem reported
twice over one week.
If you agree, I'll ask Raffaello to give me the rights to go the Paris
JUG wiki and try it myself from there.
Is there a way to skip the wizard and set up the
panels layout
manually like the previous versions of XWiki ?
Yes. Just go to the wiki administration page and then select edit -->
Objects. Find the XWikiPreferences object and find the property for
panels location and put the values you want in there.
Thanks
-Vincent
http://xwiki.com
http://xwiki.org
http://massol.net
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--------------------------------------------------------
NOTICE
This message and any files transmitted with it is intended for the addressee only and may
contain information that is confidential or privileged. Unauthorised use is strictly
prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise
use this message, except for the purpose of delivery to the addressee.
Any views or opinions expressed within this e-mail are those of the author and do not
necessarily represent those of Coventry University.