Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
GrooveOnBeat Posted August 10, 2015 Posted August 10, 2015 I'm trying to call several forum ID's in the forumTable template. The attributes that are available are "$table" and "$rows". I tried the following but they didn't work; didn't work {{if in_array($table->id, array(5,6,7))}} didn't work {{if in_array($table->Id, array(5,6,7))}} didn't work {{if in_array($table->uniqueId, array(5,6,7))}} didn't work {{if in_array($rows->id, array(5,6,7))}} didn't work {{if in_array($rows->uniqueId, array(5,6,7))}} Any ideas?
Michael.J Posted August 13, 2015 Posted August 13, 2015 Try{{if in_array( \IPS\Request::i()->id, array(5,6,7))}} yes in 5 {{endif}}Or use tables where statement.{{if in_array( $table->where[0][1], array(5,6,7))}} yes in 5 {{endif}}
GrooveOnBeat Posted August 13, 2015 Author Posted August 13, 2015 Try {{if in_array( \IPS\Request::i()->id, array(5,6,7))}} yes in 5 {{endif}} Or use tables where statement. {{if in_array( $table->where[0][1], array(5,6,7))}} yes in 5 {{endif}} Excellent! Both codes worked like a charm! Always helpful, Mike! Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.