<p><br>
On Jun 21, 2013 2:38 AM, "Thant Sin Lin" <<a href="mailto:tslin.ucsy@gmail.com">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">www.mypmwiki.com</a>, everyone visit that page don't see command buttons.<br>
> If I enter <a href="http://www.mypmwiki.com/administrator">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>
> _______________________________________________<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">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
><br></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>