Re: [Tiki-users] About using global variables in Wiki Template
Siroco <[email protected]> Tue, 07 Nov 2023 17:28:50 +0100
| Newsgroups | gmane.comp.cms.tiki.user |
|---|---|
| Message-ID | <169937453085.26235.7569504169355556729@Android-1198> |
--===============0361700878640185024==
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="===============3322958292153945878=="
Content-Disposition: inline
--===============3322958292153945878==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Quoting Jonny Bradley via TikiWiki-users (2023-11-06 15:30:06)
> Hi Siroco
>=20
> Yes! I think...
>=20
> What you want is a "wiki arg var" (https://doc.tiki.org/Wiki-Argument-Var=
iables)
>=20
> The syntax would be:
>=20
> {filter relation=3D"{{itemId}}" objecttype=3D"trackeritem" qualifier=3D=
"contact.x.demand.invert"}
>=20
> ...where it takes {{itemId}} from the url, e.g. Your=3Dpage=3Dname?itemId=
=3D42
>=20
> Note: there's a pref you need to enable on the Editing and Plugins contro=
l panel.
>=20
> Was that what you're after? HTH
>=20
> jb
>
Yes,
I had checked that option before,=20
but it is not a solution because I need to have a url without arguments to =
be able to link it in a tracker field.=20
That's why I was looking for a solution more like "Dynamic variables".
https://doc.tiki.org/Dynamic-Variable
If there was a way to include inside the LIST plugin code the dynamic varia=
ble, it would be perfect.=20
But, or I don't understand the syntax of how to pass as argument to the LIS=
T plugin a dynamic variable,=20
or I'm misunderstanding something.
That is to say,=20
if I use your same syntax but with Dynamic Variables:
{filter relation=3D"{{%idItemTracker%}}" objecttype=3D"trackeritem" qualifi=
er=3D"contact.x.demand.invert"}
It does not work.=20
Is it probable that I need to activate some kind of permission for the use =
of Dynamic Variables inside the Plugin List somewhere in the preferences ?
Thank you very much @jb :)
src
>=20
>=20
>=20
> > On 3 Nov 2023, at 21:32, Siroco <[email protected]> wrote:
> >=20
> > Hi all,
> >=20
> > I have a question regarding the use of variables within wiki page plugi=
ns.
> >=20
> > The context:
> >=20
> > We have a template with various ListPlugins to display related content =
of a trackerid.
> >=20
> > {LIST()}
> > {filter relation=3D"69807" objecttype=3D"trackeritem" qualifier=3D"con=
tact.x.demand.invert"}
> > {OUTPUT(template=3D"table")}
> > {column label=3D"Name" field=3D"title_link" sort=3D"title" translatela=
bel=3D"y" mode=3D"raw" class=3D"text-nowrap"}
> > ...
> > {OUTPUT}
> > {FORMAT(name=3D"title_link")}{display name=3D"title" format=3D"objectl=
ink"}{FORMAT}
> > ...
> > {LIST}
> >=20
> > Now, I need to edit every plugin with this trackerID.
> >=20
> > I know that I can create in my template using %variable% syntax.
> >=20
> > Is it possible to pass a variable, for example %idItemTracker%, within =
the plugin?
> >=20
> > For example:
> >=20
> > {LIST()}
> > {filter relation=3D"%idItemTracker%" objecttype=3D"trackeritem" qualif=
ier=3D"contact.x.demand.invert"}
> > {OUTPUT(template=3D"table")}
> > {column label=3D"Name" field=3D"title_link" sort=3D"title" translatela=
bel=3D"y" mode=3D"raw" class=3D"text-nowrap"}
> > ...
> > {OUTPUT}
> > {FORMAT(name=3D"title_link")}{display name=3D"title" format=3D"objectl=
ink"}{FORMAT}
> > ...
> > {LIST}
> >=20
> > I've searched the Tikiwiki Plugins documentation and other Online docum=
entation, but I don't see that this is possible.
> >=20
> > Any hint would be welcome :)
> >=20
> > src_______________________________________________
> > TikiWiki-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
>=20
>=20
>=20
> _______________________________________________
> TikiWiki-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
--===============3322958292153945878==
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEaueiACwP4g+falu6EyQJgwKlFLAFAmVKZcAACgkQEyQJgwKl
FLC8/ggAtjW3GcnDwfcmBWSN9oTYeaB+Gf4a726TYEqt29IXiNtDl6AGgxRdPg3J
fVzn5mr9tdNi0HQFaVBI/UP94M4NCGSOJQPFeBITC6ClIyu1cYFIPbGS/m3TeEAh
9+l//YUUUc18Ty2L/SRA/Wb+J1dDNOs4EfrRto7rBCygUNFskU+WREEWKFWbc1Sg
pWtERMSlsQKlnaLzwzFGOIHsYS+32XF6wDAUfkQx9OSBe0vpTCLIQaG9PSvNMu5m
ZlLGReAzVE8AC3CC7AfDhLSmHl21zIAruk1eOyo13BYD9rhYUr4l37bbRS/D8BA+
O/e0tu/r2FC7NbFg+IANfzEjX6UIdA==
=X0Hm
-----END PGP SIGNATURE-----
--===============3322958292153945878==--
--===============0361700878640185024==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============0361700878640185024==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
--===============0361700878640185024==--