Hello fellow PHPRunners!
I have a need to change the back to master list link to a button instead of the ordinary text link.
I have tried to change this in the template layout for my project which appears to work but when clicked nothing happens.
This is the original code for the back to master list link in the lheader.htm
##if @TABLE.arrMasterTables.len##
{BEGIN mastertable_block}
<div id="mastertable_block{$id}">
{$showmasterfile}
<a {$backtomasterlink_attrs} class="toplinks"><b>##message BACK_TO_MASTER##</b></a>
</div>
{END mastertable_block}
##endif##
This is what I have replaced it with but I should also mention I have removed this from the lheader.htm and added it to the list.htm where I needed it to be.
##if @TABLE.arrMasterTables.len##
{BEGIN mastertable_block}
<div id="mastertable_block{$id}">
<div align="center">{$showmasterfile}</div>
<div align=center><input type=button class="button" value="##message BACK_TO_MASTER##" {$backtomasterlink_attrs}></div>
</div>
{END mastertable_block}
##endif##
If anyone can tell me why this does not work I would greatly appreciate it.
Cheers, Nick