GrooveOnBeat Posted August 10, 2015 Share 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? Link to comment Share on other sites More sharing options...
GrooveOnBeat Posted August 13, 2015 Author Share Posted August 13, 2015 No one? Link to comment Share on other sites More sharing options...
Michael.J Posted August 13, 2015 Share 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}} Link to comment Share on other sites More sharing options...
GrooveOnBeat Posted August 13, 2015 Author Share 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! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.