Question
Hey guys,
I can't figure out how to escape the
ImagePlugin inside of
IfStatements.
Ideally, the
IfStatements would work something like this :
IF joe has view access to DestinationTopic, THEN joe sees the "lucky cat shirt" image as follows :
%IMAGE{"%WEB%/%TOPIC%/lucky_cat_tshirt.jpg|500px" type="frame" align="none" href="DestinationTopic" caption="lucky cat chirt"}%
Otherwise, a different image, or nothing ..
Environment
--
KeithHelfrich - 07 May 2008
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
I've answered my own question
The solution came from the
IfDefinedPlugin#IFACCESS, which has a much easier syntax with escapes and everything ..
%IFACCESS{"DestinationTopic" type="view" then="<H2>[[DestinationTopic][Destination Topic]</H2> $percntIMAGE{\"$percntWEB$percnt/$percntTOPIC$percnt/lucky_cat_tshirt.jpg|500px\" type=\"frame\" align=\"none\" href=\"DestinationTopic\" caption=\"\" width=\"500\" height=\"350\"}$percnt" else="<H2>There's more...</H2> $percntBR$percnt [[%SCRIPTURL%login][Login]] or register"}%
--
KeithHelfrich - 07 May 2008
The end result of this work was
GuestButtons ..
--
KeithHelfrich - 10 May 2008