From: Louis-Philippe H. <lph...@lp...> - 2012-06-29 13:58:48
|
Try this... {if $f_1|strstr:'Type1'} ... {/if} -- LP On Fri, Jun 29, 2012 at 9:44 AM, Rick Sapir <ri...@ri...> wrote: > ** > I fixed some syntax error (thanks Jyhem!), and now get: > > PHP function 'stripos' not allowed by security setting. > > > What setting? Where? > > -R > Rick Sapir > http://ricksapir.com > http://about.me/ricks99 > > Creating Content -- Managing Information > > ----- Original Message ----- > *From:* Rick Sapir <ri...@ri...> > *To:* Tiki Dev List <tik...@li...> > *Sent:* Friday, June 29, 2012 7:43 AM > *Subject:* [Tiki-devel] How to determine tracker field value in a pretty > wikitemplate? > > Using Tiki 9 (which rocks, by the way)... > > I have a tracker with a multiselct field. > > How, in a wiki template, can I test to determine if a specific option was > selected? > > I defined the values in my tracker as: > > Type1,Type2,Type3 > > And I want to display a different image in the pretty wiki template, > depending on which option was selected > > I tried using the Smarty stripos function, but Tiki keeps throwing a > syntax error: > > {if stripos(Type1,$f_1) eq true} <img src="....type1.png" />{/if} > > > Thanks > > -R > > Rick Sapir > http://ricksapir.com > http://about.me/ricks99 > > Creating Content -- Managing Information > > > > > > ------------------------------ > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > ------------------------------ > > _______________________________________________ > TikiWiki-devel mailing list > Tik...@li... > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > TikiWiki-devel mailing list > Tik...@li... > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > > |