[pmwiki-users] (:noleft:) also for MyPage?action=edit
burggraaferik at gmail.com
Sun May 3 21:16:33 CDT 2015
Are you using the default skin, or have you installed another? If so, please let us know. Some of the skin developers are on the list and if they see it, they may have an answer to your question that addresses your specific skin.
Please place it in the subject line to help them see it.
> On May 3, 2015, at 4:24 PM, ABClf <languefrancaise at gmail.com> wrote:
> Erik, (:noleft:) is a skin directive which permits to finely adapt some parts of your template according to your special needs (usual usage is show or dont show sidebar, actions list, footer, search form, title – up to you to define other parts –, on a set of pages, if conditional rules allowed : read http://www.pmwiki.org/wiki/PmWiki/SkinTemplates <http://www.pmwiki.org/wiki/PmWiki/SkinTemplates> for more). It is not a security related tool like what you are setting up for running a cms like website (show or not something according to authrorization level). By the way, on the site I'm playing with currently, I'm not using authuser yet.
> Indeed Randy, playing with another CSS would probably work ; at a cost because this alternative is not as convenient nor flexible as a directive.
> No matter what, thank you for your friendly advices :)
> To me, the question remains : why does an edit action page still show pageleft when there is a (:noleft:) directive ?
> Please note, in config.php, these two lines don't work the same way :
> SetTmplDisplay('PageLeftFmt', 0); #this code removes left content from everywhere, ?action=edit included
> Markup('noleft', 'directives', '/\\(:noleft:\\)/e', "SetTmplDisplay('PageLeftFmt', 0)"); #this code removes left content from viewed page, but doesnt remove left content for ?action=edit page.
> So, it appears that something is happening with the way skin directives are used in the action pages. I dont know if that is the expected behaviour.
> 2015-05-03 19:24 GMT+02:00 Randy Brown <randy at brownragfilms.com <mailto:randy at brownragfilms.com>>:
> If you can’t find a better solution, you can always specify a skin template file that omits one, then select the skin through the configuration file. This would let you use whatever logic you want when choosing whether to include the sidebar.
> Hope that helps,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users