![]() |
Alexey admin 9/13/2007 |
Rob, I'm trying to find the location where I can add PHP code to hide or show the 'details' hyperlink on the list page, depending on whether content is present in the details. You can do this using Visual Editor and After record processed event. {if $row.showdetails}Details{/if}
global $conn; $sql = "select count(*) from Details where MasterID=".$data["ID"]; $rs = db_query($sql,$conn); $datacount = db_fetch_numarray($rs); if($datacount[0]>0) $row["showdetails"]=true;
At the moment when I hover over the details hyperlink I get Details Found: 0 even if details are available.
|