From: Louis-Philippe H. <lph...@lp...> - 2012-06-29 14:34:00
|
You might just be one of the first person to attempt to read those values from pretty tracker. I'm not too sure which smarty context they are executing in. -- LP On Fri, Jun 29, 2012 at 10:16 AM, Rick Sapir <ri...@ri...> wrote: > ** > I get the same error. > > Maybe I'm asking the wrong question... what is the best way to evaluate > values from a multiselect tracker field? > > Otherwise, I've got to use several checkboxes insteaad of a single > multiselect field... > > -R > Rick Sapir > http://ricksapir.com > http://about.me/ricks99 > > Creating Content -- Managing Information > > ----- Original Message ----- > *From:* Louis-Philippe Huberdeau <lph...@lp...> > *To:* Tiki developers <tik...@li...> > *Sent:* Friday, June 29, 2012 9:58 AM > *Subject:* Re: [Tiki-devel] How to determine tracker field value in a > prettywikitemplate? > > 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 >> >> > ------------------------------ > > > ------------------------------------------------------------------------------ > 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 > > |