[pmwiki-users] (:noleft:) also for MyPage?action=edit
5ko at 5ko.fr
Mon May 4 10:39:51 CDT 2015
On 2015-05-04 01:24, ABClf wrote:
> To me, the question remains : why does an edit action page still show
> pageleft when there is a (:noleft:) directive ?
The (:noleft:) directive instructs the skin to disable the sidebar. This
directive is in the wiki text source of the page.
The source is evaluated when the action is "browse" (or none).
When the action is "edit", "diff", "upload" or other, the wiki source
text is not processed or evaluated. (It is processed when the action is
"edit" and "Preview" was pressed.)
> 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
Correct, this instructs the skin to unconditionally disable/hide the
> Markup('noleft', 'directives', '/\\(:noleft:\\)/e',
> "SetTmplDisplay('PageLeftFmt', 0)"); #this code removes left content
> viewed page, but doesnt remove left content for ?action=edit page.
Correct, it says: "when processing wikitext to HTML, if a directive
(:noleft:) is encountered, disable the sidebar".
> So, it appears that something is happening with the way skin directives
> used in the action pages. I dont know if that is the expected
Yes, it is expected, probably under-documented.
More information about the pmwiki-users