Hi
Please advice, how should I set up Table List tool.
I am going to make toggle button which have to show up "unpublish" on value 1, and "publish" on value 0.
My code in state field area looks like this, but does not work. I think the problem is mistake in element identifier $this->data['Data3']['state'] , because this is table and each row changes index number of the array
				
				
				
			
Please advice, how should I set up Table List tool.
I am going to make toggle button which have to show up "unpublish" on value 1, and "publish" on value 0.
My code in state field area looks like this, but does not work. I think the problem is mistake in element identifier $this->data['Data3']['state'] , because this is table and each row changes index number of the array
<?phpPlease, help to get it work
if ( $this->data['Data3']['state'] == "1" ) {
echo 'Unpublish';
} else {
echo 'Publish';
}
?>
					if ($this->data("Data3.state")) {
echo "Unpublish";
etc
				
				
				
			echo "Unpublish";
etc
					Still can not get it work.
Is it possible to call {var:list_table#.row.Model.id} from custom php in the cell clause of Table List tool?
I am trying write like $this->get("list_table#.row.Model#.field") but does not work
				
				
				
			Is it possible to call {var:list_table#.row.Model.id} from custom php in the cell clause of Table List tool?
I am trying write like $this->get("list_table#.row.Model#.field") but does not work
This topic is locked and no more replies can be posted.
		
	
 
  