<div dir="ltr">Thank you very much for the full explanation, Tamara.<div style>It's very helpful for me to proceed.</div><div style>I'm very new (just a week) to pmwiki and still need to explore in deep.</div><div style>
>From this pmwiki mailing list, I got a lot of suggestions and ideas to fulfil my needs.</div><div style>I'm really appreciate all of your help.</div><div style>I'll add my webside into pmwiki user list after I've done.</div>
<div style><br></div><div style>Thanks and best regards, </div><div style>Robin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 22, 2013 at 10:36 PM, Tamara Temple <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"><div class="im">Thant Sin Lin <<a href="mailto:tslin.ucsy@gmail.com">tslin.ucsy@gmail.com</a>> wrote:<br>
</div><div class="im">> Thanks for the reply.<br>
><br>
> These markups (: :)  are for pages, right?<br>
> Then, I have to add them at every pages?<br>
<br>
</div>There are various ways of doing this, but it really depends...<br>
<div class="im"><br>
> Can I do this in my skin_name.tmpl file? I moved command buttons out of the div "wikibody".<br>
<br>
</div>Yes, you can. Read up on skins in the Cookbook.<br>
<div class="im"><br>
> And on the first load, I haven't fill in edit password and I am not authenticated. So, those buttons don't appear.<br>
> Then, how can I fill password? Normally, I can enter password when I click on edit link (if i set edit password).<br>
<br>
</div>If you are working directly on your site (as opposed to going through<br>
the iframe you customer's go through) you can simply add ?action=login<br>
to the url in your address bar. This takes you to the login page.<br>
<div class="im"><br>
> If I am approaching in wrong way, please advise me.<br>
<br>
</div>It's non-standard from the way I have used wikis, but there is really<br>
nothing wrong with the way you are doing this.<br>
<div class="im"><br>
> My resolution is - <br>
> We are using pmwiki to build a documentation page for our product.<br>
> We don't want normal visitors to make any changes. (No edit, No print, No history).<br>
<br>
</div>You won't be able to prevent a user from printing a page from their<br>
browser -- you have no control over that. The print action substitutes a<br>
more suitable skin for printing, that is all it does.<br>
<br>
What you may wish to do is completely remove the page actions from your<br>
wiki unless the user has authenticated and is authorized for those<br>
functions. This is easy using the (:if  :) .. (:ifend:) I showed you<br>
previously, or it can be done from inside your skin.php file, or inside<br>
your local/config.php file, many ways it can be done. Explore the skins<br>
on the pmwiki site to see how people have done this.<br>
<div class="im"><br>
> We want to allow only administrators to do those actions.<br>
<br>
</div>This should be fine; there is no particular reason to go through an<br>
iframe to get this ability, unless you wish to hide the wiki's address<br>
from casual users.<br>
<div class="im"><br>
> If pmwiki still don't support this feature, I think I have to setup two different pmwiki pages and copy data manually :(<br>
<br>
</div>PmWiki supports this just fine.<br>
<br>
Here's a couple of screenshots of my wiki that shows the difference<br>
(this isn't exactly what you want, but demonstrates the concept):<br>
<br>
Page actions when logged out:<br>
<br>
<a href="https://dl.dropboxusercontent.com/u/571329/Screenshots/logged%20out%20Screenshot%20-%2006222013%20-%2009%3A26%3A26%20AM.png" target="_blank">https://dl.dropboxusercontent.com/u/571329/Screenshots/logged%20out%20Screenshot%20-%2006222013%20-%2009%3A26%3A26%20AM.png</a><br>

<br>
(short link: <a href="http://bit.ly/15t5W4j" target="_blank">http://bit.ly/15t5W4j</a> )<br>
Page actions when logged in:<br>
<br>
<a href="https://dl.dropboxusercontent.com/u/571329/Screenshots/logged%20in%20Screenshot%20-%2006222013%20-%2009%3A27%3A34%20AM.png" target="_blank">https://dl.dropboxusercontent.com/u/571329/Screenshots/logged%20in%20Screenshot%20-%2006222013%20-%2009%3A27%3A34%20AM.png</a><br>

<br>
(short link: <a href="http://bit.ly/14elaL8" target="_blank">http://bit.ly/14elaL8</a> )<br>
<br>
The page actions on that skin are in the second row of the header. You<br>
can see in the first version, there are no links to edit, attach, and<br>
copy/move. After logging in, those appear.<br>
<br>
The Site.PageActions contents is at:<br>
<a href="https://gist.github.com/tamouse/5841099" target="_blank">https://gist.github.com/tamouse/5841099</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
> Thanks and best regards, <br>
> Robin<br>
<br>
<br>
<br>
> On Fri, Jun 21, 2013 at 6:06 PM, tamouse mailing lists <<a href="mailto:tamouse.lists@gmail.com">tamouse.lists@gmail.com</a>> wrote:<br>
><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" 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>
>     > _______________________________________________<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>
><br>
>     I don't know how you manage authorization, but wrapping the buttons for admin use only is generally done like so:<br>
><br>
>     (:if auth edit:)<br>
>     ... button stuff...<br>
>     (:ifend:)<br>
><br>
>     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>
><br>
> --<br>
> Thant Sin Lin<br>
><br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thant Sin Lin<br><div><br></div>
</div>