[pmwiki-users] (:toggle:) & unique number
noskule
noskule at gmx.net
Wed May 9 11:10:58 CDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi list
I'm building a issues/comment/xxx list and stuck cause I cant figure out
how to generate/use a unique identifier.
See this:
[[#Item]]
{=$:Heading} (:toggle div=Description-<UNIQUENUMBER> lshow="$[Show
Description]" lhide="$[Discard Description]" init=show:)
>>id=Description-<UNIQUENUMBER><<
{=$:Description}
>><<
[[#Itemend]]
Does anyone have an Idea how to replace <UNIQUENUMBER> with a reel
unique number. Vor the beginning {(rand 0 1000)} would work to, but how
do I get the same number in the toggle AND the div
Some Tests:
dont work, generates two diffrent numbers:
[[#Item]]
{=$:Heading} (:toggle div=Description-{(rand 0 1000)} lshow="$[Show
Description]" lhide="$[Discard Description]" init=show:)
>>id=Description-{(rand 0 1000)}<<
{=$:Description}
>><<
[[#Itemend]]
I would need something like (dont work):
%define unique={(rand 0 1000)} %
[[#Item]]
{=$:Heading} (:toggle div=Description-%unique% lshow="$[Show
Description]" lhide="$[Discard Description]" init=show:)
>>id=Description-%unique%<<
{=$:Description}
>><<
[[#Itemend]]
does anyone have an idea?
thanks in advance
nos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGQfKRrGF5npnsxVgRArIgAKC2YLQO0iqw7CIay7b9wziix+HgRQCgg2+P
5yLuTcwQN0eQIBjTYFNR66M=
=Q6x8
-----END PGP SIGNATURE-----
More information about the pmwiki-users
mailing list