[pmwiki-users] login visible, not edit etc
j.montaldi at gmail.com
Wed Mar 26 12:24:46 CDT 2008
Thanks Tegan - that's very helpful.
My pmwiki template file (in the location you mentioned) has
I guess this means it reads $Group,PageActions if it exists (which it
doesn't for $Group = Main) otherwise it reads $SiteGroup.PageActions. I
guess $SiteGroup is Site. And now it ''does'' seem to work! (Perhaps I
hadn't logged off properly before?)
However, the edit/etc menu is still in the footer, and that does look like
it's hard coded. So now I need to understand better where to put the
(:if ! auth edit:)(:noaction:)(:ifend:)
you mentioned. Which page? and Where on the page?
Thanks again, James
On 26/03/2008, Tegan Dowling <tmdowling at gmail.com> wrote:
> On Wed, Mar 26, 2008 at 11:21 AM, James Montaldi <j.montaldi at gmail.com>
> > At the moment I'm using the default skin. But I might change that. Does
> > matter? I thought the skin was just the look and feel.
> In the default PmWiki skin template (in pub\skins\pmwiki\pmwiki.tmpl),
> there's a section that looks like this:
> <div id='wikicmds'><ul><li class='browse'> <a accesskey=''
> rel='nofollow' class='selflink'
> </li><li class='edit'> <a accesskey='e' rel='nofollow'
> </li><li class='diff'> <a accesskey='h' rel='nofollow'
> </li><li class='upload'> <a accesskey='ak_attach' rel='nofollow'
> </li><li class='print'> <a accesskey='' rel='nofollow'
> This is where the page actions displayed in the upper-right of the
> default skin come from -- the links are 'hard-coded' into the skin
> here. There's a nifty, nifty feature that lets you suppress display
> of this section, conditionally, from within the wiki (!): That first
> bit, <!--PageActionFmt--> is in the form of an html comment, but it's
> also a section identifier used by the pmwiki scripts.
> To suppress display of that section unless the user is logged in with
> edit rights, have this somewhere on your page (or on your
> (:if ! auth edit:)(:noaction:)(:ifend:)
> Some skins have the identified sections that display Site pages,
> instead of hard-coding features such as the header, this actions area,
> etc. -- when that 's the case, you can modify how such section of the
> page looks and acts by editing the page, as well as by using
> (:noheader:), (:noaction:), (:noleft:), etc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users