[xwiki-users] a quick one
does anybody know where the var $isAdvancedUser is used ? the code below is found in the xwikivars.vm but i don;t get it where it is explained, defined... #if($context.user == "XWiki.superadmin") #set($isAdvancedUser = true) thx Take care , Gabriela Radu :) www.gabrielaradu.com ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com
Hi, Gabriela Radu wrote:
does anybody know where the var $isAdvancedUser is used ? the code below is found in the xwikivars.vm but i don;t get it where it is explained, defined...
#if($context.user == "XWiki.superadmin") #set($isAdvancedUser = true)
thx
Take care , Gabriela Radu :) www.gabrielaradu.com
At least in menuview.vm, viewmodes.vm and editmodes.vm See this... sh-3.2# *find . -type f -name "*.*" | xargs grep -Hn "isAdvancedUser"* grep: .gif: No such file or directory ./skins/xpescaderias/menuview.vm:33:#if($isAdvancedUser) ./skins/xpescaderias/menuview.vm:59:#if($isAdvancedUser) ./skins/xxen/menuview.vm:33:#if($isAdvancedUser) ./skins/xxen/menuview.vm:59:#if($isAdvancedUser) ./templates/editmodes.vm:18:#if($isAdvancedUser)<li id="xwikieditobject"#if($editor == "object") class="active"#end><a href="$doc.getURL("edit", "editor=object&$param")">$msg.get("editObject")</a></li> #end ./templates/editmodes.vm:19:#if($isAdvancedUser)<li id="xwikieditclass"#if($editor == "class") class="active"#end><a href="$doc.getURL("edit", "editor=class&$param")">$msg.get("editClass")</a></li> #end ./templates/editmodes.vm:21:#if($isAdvancedUser)<li id="xwikiedithistory"#if($editor == "history") class="active"#end><a href="$doc.getURL("edit", "editor=history&$docvariant&$param")">$msg.get("editHistory")</a></li>#end ./templates/menuview.vm:32:#if($isAdvancedUser) ./templates/menuview.vm:58:#if($isAdvancedUser) ./templates/viewmodes.vm:9:#if($isAdvancedUser)<li id="xwikiviewhistory"#if($viewer == "history") class="active"#end><a href="$doc.getURL("view", "viewer=history&$docvariant")">$msg.get("viewhistory")</a></li> #end ./templates/viewmodes.vm:11:#if($isAdvancedUser)<li id="xwikiviewcode"#if($viewer == "code") class="active"#end><a href="$doc.getURL("view", "viewer=code&$docvariant")">$msg.get("viewcode")</a></li> #end ./templates/xwikivars.vm:18: #set($isAdvancedUser = true) ./templates/xwikivars.vm:20: #set($isAdvancedUser = true) ./templates/xwikivars.vm:22: #set($isAdvancedUser = false) ./templates/xwikivars.vm:24: #set($isAdvancedUser = ($userObj.getProperty("usertype").value == "Advanced")) sh-3.2# Discard the four first appearances belonging to customized skins and you have, I think, the answer. All in /templates/*.vm files. Hope this helps, Ricardo -- Ricardo RodrÃguez Your EPEC Network ICT Team
participants (2)
-
[Ricardo Rodriguez] Your EPEC Network ICT Team -
Gabriela Radu