<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 4, 2015 at 1:21 AM,  <span dir="ltr"><<a href="mailto:chris@christopherbartels.com" target="_blank">chris@christopherbartels.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">now I can’t edit the new pages aside from when I was creating 
them new- can only edit new pages, not existing ones, as there’s no ‘edit’ link 
in the page somehow. I also lost my ‘edit sidebar’ link at the bottom [2].</blockquote></div><br>It appears you have edited your Site.PageActions (<a href="http://www.pmwiki.org/wiki/PmWiki/SitePageActions">http://www.pmwiki.org/wiki/PmWiki/SitePageActions</a>) to provide links such as contribute, guidelines, about us, and contact us. Unfortunately in the process you deleted or deactivated the standard pmwiki actions which include the edit.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Oh, I see. I took a look using <a href="https://govt.exposed/Site/PageActions?action=source">https://govt.exposed/Site/PageActions?action=source</a> [1] and I'm afraid you've got your Site.PageActions pretty messed up. You'll need to go look at <a href="http://www.pmwiki.org/wiki/PmWiki/SitePageActions">http://www.pmwiki.org/wiki/PmWiki/SitePageActions</a> (referenced above) and *carefully* follow the instructions and examples there. You can't just throw in the conditionals wherever and however it makes sense to you... Your conditionals are not being opened in the right place and aren't being closed until well after you intend it (either (:if ...:) or (:ifend:) closes the conditional.)  </div><div class="gmail_extra"><br></div><div class="gmail_extra">In the example from that page:</div><div class="gmail_extra"><br></div><div class="gmail_extra">===(snip)===</div><div class="gmail_extra"><pre class="" style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier,monospace;line-height:1.2em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">...</pre><pre class="" style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier,monospace;line-height:1.2em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">(:if auth upload:)
* %item rel=nofollow class=upload    accesskey='$[ak_attach]'%    [[{*$FullName}?action=upload | $[Attach] ]]
(:ifend:)</pre><pre class="" style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier,monospace;line-height:1.2em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">...</pre></div><div class="gmail_extra">===(snip)===</div><div class="gmail_extra"><br></div><div class="gmail_extra">Notice how the conditional is opened on the line *above* and then closed on the line *below*. There may be flexibility for doing some fancy stuff within the line, but start basic: follow the example as they do it and wait until you get that working before you step out into something more complicated.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">And you don't want to repeat a given accesskey. And if you are hardcoding a certain page then you have to hardcode it in the link as well as the conditional. Etc.</div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Probably your page:</div><div class="gmail_extra"><br></div><div class="gmail_extra">===(snip)===</div><div class="gmail_extra"><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">...</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">* %item rel=nofollow class=browse    accesskey='$[ak_view]'% (:if auth admin Main.HomePage:)      [[{*$FullName}               | $[View] ]]
* %item rel=nofollow class=edit      accesskey='$[ak_edit]'% (:if auth admin Main.HomePage:)     [[{*$FullName}?action=edit   | $[Edit] ]]
* %item rel=nofollow class=edit      accesskey='$[ak_edit]'% (:if auth admin Site.Contribute:)     [[{*$FullName}?action=edit   | $[Edit] ]]
* %item rel=nofollow class=edit      accesskey='$[ak_edit]'% (:if auth admin Site.Guidelines:)     [[{*$FullName}?action=edit   | $[Edit] ]]</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">...</pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><span style="font-family:arial,sans-serif;color:rgb(34,34,34)">===(snip)===</span>
</pre></div><div class="gmail_extra">is supposed to look something more like this:</div><div class="gmail_extra"><br></div><div class="gmail_extra">===(snip)===</div>...<br>* %item rel=nofollow class=browse    accesskey='$[ak_view]'%      [[{*$FullName}               | $[View] ]]<br>(:if auth edit "{*$FullName}" :)<br>* %item rel=nofollow class=edit      accesskey='$[ak_edit]'%      [[{*$FullName}?action=edit   | $[Edit] ]]<br>* %item rel=nofollow class=diff      accesskey='$[ak_history]'%   [[{*$FullName}?action=diff   | $[History] ]]<br>(:if auth edit "Site.Contribute" :)<br>* %item rel=nofollow class=edit      %                                        [[Site.Contribute?action=edit   | Contribute ]]<br>(:if auth edit "Site.Guidelines":)<br>* %item rel=nofollow class=edit      '%  [[Site.Guidelines?action=edit   | Guidelines ]]<br>(:ifend:)<br>...<div class="gmail_extra">===(snip)===</div><div class="gmail_extra"><br></div><div class="gmail_extra">(Note that while I explicitly use (:ifend:) only once, all the other (:if ...:) clauses are neatly ended via the beginning of the next (:if ...:) clause. Note also that I'm not repeating accesskey='$[ak_edit]' as it only makes sense to use it once unless your conditions reliably result in a mutually exclusive situation.)</div><div class="gmail_extra"><br></div><div class="gmail_extra">This leaves the "Contribute" and "Guidelines" links editing those respective pages which is probably not what you want to do, but hopefully this gets you started down the right road.</div><div class="gmail_extra"><br></div><div class="gmail_extra">(If you are using another skin you may find that some other page besides Site.PageActions is used.)</div><div class="gmail_extra"><br></div><div class="gmail_extra">You owe it to yourself to read over the basics of the pmwiki docs to learn how links work and conditionals and stuff like that. It will save you a lot of headache in the long run...</div><div class="gmail_extra"><br></div><div class="gmail_extra">-Peter</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1] Incidentally, you may want to shut down that potential security hole - see <a href="http://www.pmwiki.org/wiki/PmWiki/PasswordsAdmin">http://www.pmwiki.org/wiki/PmWiki/PasswordsAdmin</a> and <a href="http://www.pmwiki.org/wiki/PmWiki/Security">http://www.pmwiki.org/wiki/PmWiki/Security</a> which both detail how to limit ?action=source to those with edit or admin authorization<br></div></div>