Petko Yotov said... > On Saturday 13 January 2007 19:48, marc wrote: > > Petko Yotov said... > > > > > On Saturday 13 January 2007 17:04, marc wrote: > > > > marc said... > > > > > > > > > In many places with non-user-editable text, I want: > > > > > > > > > > (:if ! auth admin:)(:noaction:)(:ifend:) > > > > > > > > > > This works fine in local/Site.php and other places. > > > > > > > > > > However, when authorisation is required and the login form appears, I > > > > > can't find a way to stop PageActions from being displayed. > > > > > > > > > > Is this possible? > > > > > > > > I'm still stuck trying to find a way to stop page actions appearing > > > > when the login handler exit()s. > > > > > > [cut] > > > > > > > I've abandoned hope of this working within regular PmWiki, and turned > > > > to the skin. > > > > > > [cut] > > > > > > > As mentioned previously, adding (:noaction:) to Site.AuthForm doesn't > > > > have any visible affect. > > > > > > > > In a separate attempt, I've even tried: > > > > > > [cut] > > > > > > > to no avail. > > > > > > > > Any ideas, however seemingly unlikely to work, would be appreciated. > > > > Hi Petko, > > > > > Did you try to do it inside the page Site.PageActions? > > > > > > (:if auth admin:) > > > > > > Here the previous content with the line "(:if auth upload:)" REMOVED > > > > > > (:if:) > > > > I have tried this, but it requires moving the whole of the surrounding > > two divs in there too. In this case, I fell over the same (:divn:) > > parsing probem that I mentioned. Even so, it's not an ideal solution, > > although anything that works will do. > > You need to start each (:div1:) on a new line. This works for me (from > PageActions): > > (:if auth edit:) > (:div1 id=menubar:) > (:div2 id=wikicmds:) > * [[{*$FullName} | $[View] ]] > * [[{*$FullName}?action=edit | $[Edit] ]] > * [[{*$FullName}?action=diff | $[History] ]] > * [[{*$FullName}?action=upload | $[Attach] ]] > * [[{*$FullName}?action=print | $[Print] ]] > (:div2end:) > (:div1end:) > (:if:)
Hi Petko, thanks for this. Yes, I know it works in standard markup, but in the template markup, a single line is mandated. Pm has fixed this in beta 22 - although I've not checked yet, I'm sure it'll work. -- Cheers, Marc _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users