Home
Analytics
Locked Canvas
hho
Hi Brian,
How to lock a global canvas? According to Create a Global Canvas document on this website, I can turn the locked attribute to be true.
The locked atttribute is for the mashcanvas tag or for portletref tag. I tried with both, but cannot lock my canvas.
please advice,
Thanks
Hoa
Find more posts tagged with
Comments
bhanley
To "lock" a particular tab on the installation, set up the staticMode parameter on the navItem. Doing this will remove the dock with all the configured portlets on the right of the screen.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<navItem label="My Dashboard" id="nav4">
<body urlType="shared" url="portal.jsp?staticMode=true"/>
</navItem>
</pre>
<br />
The locked attribute will prevent the user from removing portlets on the tab I have noticed several odd behaviors for this setting in testing things for this thread, so I am going to log them as issues. I will keep this thread up-to-date with updates/findings. <br />
<br />
For the time being, set the tab that the canvas is bound to as static and that will lock everything sdown and ensure the user cannot make any further changes. It is essentially the same thing the "locked" attribute promises to be, but I can verify it functions as documented. I use it all the time.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<navItem label="My Dashboard" id="nav4">
<body urlType="shared" url="portal.jsp?canvasName=someLockedCanvas&staticMode=true"/>
</navItem>
</pre>