Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 10, 20159 yr 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?
August 13, 20159 yr 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}}
August 13, 20159 yr Author 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!
Archived
This topic is now archived and is closed to further replies.