Re: [Tiki-devel] CODE plugin not 100% working in forum ?
Torsten Fabricius via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
"If it can't, we need to be happy that the behaviour is reliable and
document it better."
+1 Jean-Marc
Regards,
Torsten
Am 10.03.21 um 22:02 schrieb Jean-Marc Libs:
> It looks difficult to have:
> {CODE()} Blah {{page}} {CODE} ← it displays "{{page}}" because it's
> the CODE plugin!
> and also
> {LIST()}{filter field="object_id" exact="{{itemId}}" }{LIST} ← it
> replaces "{{itemId}}" with the value because it's the LIST plugin!
>
> Unless CODE becomes a special different thing which looks like a
> plugin but there is a special parsing just for CODE plugins just
> before the current start of the parsing?
>
> It would be a behaviour more "natural and expected" but I don't know
> if it could be done technically (I never looked at the parser code).
> If it can't, we need to be happy that the behaviour is reliable and
> document it better.
>
> Cheers,
> J-M
>
> On Wed, Mar 10, 2021 at 12:11 PM Bsfez Tiki <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hi Jean Marc,
>
> Thanks for looking at this.
> This help like writing: { {page} } (no extra-space)
> 😂😂😂
>
> As advanced is Tiki, we should be able to write code and wiki arg
> in a page or a forum comment for technical reasons.
> IMO using {CODE()} {CODE} should override everything.
>
> I will post a wish...
> Bernard
>
>
>> On 10 Mar 2021, at 02:53 , Jean-Marc Libs
>> <[email protected] <mailto:[email protected]>> wrote:
>>
>> 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]
>> <mailto:[email protected]>> wrote:
>>
>> Same (I edited/resaved to be sure)
>>
>> <Screen Shot 2021-03-07 at 07.53.32 .png>
>>
>>> On 7 Mar 2021, at 02:32 , luciash via TikiWiki-devel
>>> <[email protected]
>>> <mailto:[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]
>>>>> <mailto:[email protected]>> wrote:
>>>>>
>>>>> Thank you Luci for the complete explanation. ;-)
>>>>>
>>>>> B
>>>>>
>>>>>> On 4 Mar 2021, at 16:11 , luciash via TikiWiki-devel
>>>>>> <[email protected]
>>>>>> <mailto:[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]
>>>>>>> <mailto:[email protected]>
>>>>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>>>>>
>>>>>> _______________________________________________
>>>>>> TikiWiki-devel mailing list
>>>>>> [email protected]
>>>>>> <mailto:[email protected]>
>>>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> TikiWiki-devel mailing list
>>>>> [email protected]
>>>>> <mailto:[email protected]>
>>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>>>
>>>>
>>>> _______________________________________________
>>>> TikiWiki-devel mailing list
>>>> [email protected]
>>>> <mailto:[email protected]>
>>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>>
>>>
>>> _______________________________________________
>>> TikiWiki-devel mailing list
>>> [email protected]
>>> <mailto:[email protected]>
>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>>
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [email protected]
>> <mailto:[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