<div dir="ltr"><div><div>What you are looking for is to have the actions available via shortcut keys, but NOT make the links visible when not authorized, correct?<br></div>As once the edit-action is undertaken, the user will be prompted for authorization.<br>

<br>What I do is something like the following:<br><br>(:if auth edit:)<br>* %item rel=nofollow class=rename accesskey='$[ak_edit]'%[[{*$FullName}?action=edit|$[edit]]]<br>(:if ! auth edit:)<br>%item rel=nofollow class=rename accesskey='$[ak_edit]'%[[{*$FullName}?action=edit|]]<br>

<br><br></div>If it's unclear, at the end of the "! auth eidt" link -- there's no text. so nothing appears, but the access-key is still present.<br>There's no visibility to toggle it on, however.<br>

<br><div><br></div></div><div class="gmail_extra"><br clear="all"><div>-Michael Paulukonis<br><a href="http://www.xradiograph.com" target="_blank">http://www.xradiograph.com</a><br><a href="http://goog_2112721603" target="_blank"></a><a href="http://www.xradiograph.com%5Cinterference" target="_blank">Interference Patterns (a blog)</a><br>

<a href="https://twitter.com/XraysMonaLisa" target="_blank">@XraysMonaLisa</a><br><a href="http://michaelpaulukonis.com" target="_blank">http://michaelpaulukonis.com</a><br><a href="http://www.BestAndroidResources.com" target="_blank"></a><br>

<br>Sent from somewhere in the Cloud<br>(hearthrug, by the fender)<br></div>
<br><br><div class="gmail_quote">On Fri, Jun 21, 2013 at 6:06 AM, tamouse mailing lists <span dir="ltr"><<a href="mailto:tamouse.lists@gmail.com" target="_blank">tamouse.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<p></p><div><div class="h5"><br>
On Jun 21, 2013 2:38 AM, "Thant Sin Lin" <<a href="mailto:tslin.ucsy@gmail.com" target="_blank">tslin.ucsy@gmail.com</a>> wrote:<br>
><br>
> Hello, <br>
><br>
> I need to toggle visibility of command buttons "edit, history, etc...".<br>
><br>
> Eg. if my page is <a href="http://www.mypmwiki.com" target="_blank">www.mypmwiki.com</a>, everyone visit that page don't see command buttons.<br>
> If I enter <a href="http://www.mypmwiki.com/administrator" target="_blank">www.mypmwiki.com/administrator</a>, I want to see command buttons.<br>
> Of course, even I access from second URL, I have to fill password.<br>
><br>
> I know I can remove or hide command buttons from template file.<br>
> But doing like this prevent everyone from editing pages including administrators.<br>
><br>
> I loaded my pmwiki site inside iframe of my Main site.<br>
> So I cannot edit pages by adding "?action" to URL.<br>
><br>
> I don't want to create another pmwiki site for administrator and publich changes to live site everytime by copying wiki.d folder.<br>
> It's Ok to create another pmwiki site if not require to copy wiki.d folder manually everytime I made changes.<br>
><br>
> Please let me know how can I achieve this.<br>
> I surfed the web for a long time and still can't find the solution.<br>
><br>
> Thanks in advanced.<br>
> Robin<br>
><br></div></div>
> _______________________________________________<br>
> pmwiki-users mailing list<br>
> <a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
> <a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
><br><p></p>
<p>I don't know how you manage authorization, but wrapping the buttons for admin use only is generally done like so:</p>
<p>(:if auth edit:)<br>
... button stuff...<br>
(:ifend:)</p>
<p>also, you should have an edit password. A user can read the page source snd see the path in your iframe, and bypass your main site without precautions.<br></p>
<br>_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
<br></blockquote></div><br></div>