Re: [Tiki-devel] CODE plugin not 100% working in forum ?
Jean-Marc Libs <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <CA++RN4c6a1RoV+sPQz62NMHcvwcm-dERu50JdcjFS4pNSBLaPQ@mail.gmail.com> |
I understand wiki arg vars are the first thing to be interpreted by the
wiki parser. Before plugins or anything else.
You wrote ~np~{{page}}~/np~
What happened is, {{page}} was immediately replaced with its value, which
is nothing (this is not a page, it's a forum post).
So now you get: ~np~~/np~
That displays nothing.
The person who answered you followed Luci's advice and wrote
~np{~/np~{page}}.
At first the parser looks for wiki args and finds no wiki arg in
~np{~/np~{page}}.
Then ~np{~/np~ is replaced with { and you get to have displayed {{page}}.
Hope this helps,
J-M
On Sun, Mar 7, 2021 at 6:56 AM Bsfez Tiki via TikiWiki-devel <
[email protected]> wrote:
> Same (I edited/resaved to be sure)
>
>
>
> On 7 Mar 2021, at 02:32 , luciash via TikiWiki-devel <
> [email protected]> wrote:
>
> And now?
>
> On 05.03.2021 10:01, Bsfez Tiki via TikiWiki-devel wrote:
>
> Ahem… not working.
>
> Nothing is displayed.
>
> see:
> https://tiki.org/forumthread76435-PluginLIST-How-does-relation-filter-work#threadId76438
>
>
> Bernard
>
>
> On 5 Mar 2021, at 10:57 , Bsfez Tiki via TikiWiki-devel <
> [email protected]> wrote:
>
> Thank you Luci for the complete explanation. ;-)
>
> B
>
> On 4 Mar 2021, at 16:11 , luciash via TikiWiki-devel <
> [email protected]> wrote:
>
> wiki arg vars are always interpreted everywhere, even in CODE wikiplugin,
> not only in Forums. u need to use ~np~{~/np~{page}}
>
> why? because of parsing order, they need to be interpreted last (after
> other parsing is done)
>
> luci
>
>
> On 04.03.2021 13:22, Bsfez Tiki via TikiWiki-devel wrote:
>
> Hello,
>
> I tried to use the CODE plugin in an answer on the forum but the wiki
> syntax doesn’t appear:
>
> {CODE()}{{page}}{CODE}
>
> Shouldn’t we be able to write anything between CODE tags without having it
> interpreted ?
>
> B
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Screen Shot 2021-03-07 at 07.53.32 .png
(image/png, 32.1 KB) - not displayed