[Tiki-users] About using global variables in Wiki Template

Siroco <[email protected]> Fri, 03 Nov 2023 22:32:38 +0100
Newsgroups gmane.comp.cms.tiki.user
Message-ID <169904715847.7241.16415590119694806922@Android-5017>
Hi all,

I have a question regarding the use of variables within wiki page plugins.

The context:

We have a template with various ListPlugins to display related content of a trackerid.

{LIST()}
  {filter relation="69807" objecttype="trackeritem" qualifier="contact.x.demand.invert"}
{OUTPUT(template="table")}
  {column label="Name" field="title_link" sort="title" translatelabel="y" mode="raw" class="text-nowrap"}
...
{OUTPUT}
  {FORMAT(name="title_link")}{display name="title" format="objectlink"}{FORMAT}
  ...
{LIST}

Now, I need to edit every plugin with this trackerID.

I know that I can create in my template using %variable% syntax.

Is it possible to pass a variable, for example %idItemTracker%, within the plugin?

For example:

{LIST()}
  {filter relation="%idItemTracker%" objecttype="trackeritem" qualifier="contact.x.demand.invert"}
{OUTPUT(template="table")}
  {column label="Name" field="title_link" sort="title" translatelabel="y" mode="raw" class="text-nowrap"}
 ...
{OUTPUT}
  {FORMAT(name="title_link")}{display name="title" format="objectlink"}{FORMAT}
  ...
{LIST}

I've searched the Tikiwiki Plugins documentation and other Online documentation, but I don't see that this is possible.

Any hint would be welcome :)

src

_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEaueiACwP4g+falu6EyQJgwKlFLAFAmVFZvQACgkQEyQJgwKl
FLDDOgf/efMIEvUemHqalQLkKOzMFiJQyr/oFlSu06k+QhK7QEs70bYRKwq2Wifz
2nHkulBTrA7eUtsr8XMS+8uQPxjRjhXHtt7NEcJWViYAxQ5Hr+nfpFiGIurA78Br
7xhTWUdlna9DlrwLwVSOMm8V/oD/a8yMy/1csxxC6oMTutwbHmXcp6ZHErGr01F2
gbbFnNWZoLqLVOlA02vbvdA0o9LkfGCXp1QFquufCvrz9Mxzu108s90E4MhugIcg
hwEhdSsQE+9EDMYvmuqDXbaGug3SKFgbQAjHRNMTXWhk3S/4T36IhBPgHH/zyb+b
4mdkPTNO1CKbI3/fxP+CEqwLcoW/4w==
=WNNp
-----END PGP SIGNATURE-----