Thanks for the help, Ricardo. Here's the code -
---
#panelheader('Quick Links')
* [Home>Amrita IIS.WebHome]
* [PMT Discussions>Amrita IIS.PMT_Discussions]
* [Class Editor>XWiki.XWikiClasses]
* [PMT>PMT.PMTemplateTestClass]
* [PMT Test form>Amrita IIS.Form_PMT_Test]
#if ($xwiki.hasAdminRights())
For Admins:
* [Admin Center>XWiki.WebHome]
* [What's New>Main.Dashboard] $xwiki.getURL(
$xwiki.getSkinFile('icons/black-rss-mini3.png')
#end
#set($user = $xwiki.getUser())
#if($user.isUserInGroup("XWiki.Editors"))
Editor Group
* [Editor's page>Amrita IIS.Editor]
#end
<p style="font-size:0.75em;padding-left:8px;"> $xwiki.getDocument( (Edit
this panel) </p>
#end
#panelfooter()
---
Ricardo Rodríguez wrote:
V. Harikrishnan Nair wrote:
hi Vito,
hi Ricardo,
I implemented the code as :
#set($user = $xwiki.getUser())
#if($user.isUserInGroup('XWiki.Editors'))
Editor Group
* [Editor's page>Amrita IIS.Editor]
#end
But I got a really weird error -
Error number 4001 in 4: Error while parsing velocity page
Panels.QuickLinks
Wrapped Exception: Encountered "#endrn" at line 26, column 1 of
Panels.QuickLinks
Was expecting one of:
<EOF>
"(" …
<RPAREN> …
<ESCAPE_DIRECTIVE> …
<SET_DIRECTIVE> …
"##" …
"\" …
"
" …
<TEXT> …
"#" …
"#" …
<STRING_LITERAL> …
<IF_DIRECTIVE> …
<STOP_DIRECTIVE> …
<INTEGER_LITERAL> …
<FLOATING_POINT_LITERAL> …
<WORD> …
<BRACKETED_WORD> …
<IDENTIFIER> …
<DOT> …
"{" …
"}" ...
I checked everything but it simply would not work...
- Harikrishnan
Hi Harikrishnan,
I've tried your code here and it works without a glitch.
The error you get is at line 26, so it is not possible for us to know if
one of the five code lines included in your message is the offending one.
Please, could you post here your whole Panels.QuickLinks to see if it is
possible for us to reproduce the error?
Best,
--
Ricardo Rodríguez
Your XEN ICT Team
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users