This topic is locked

List Page Picture Hyperlink

6/24/2010 6:28:45 PM
PHPRunner General questions
A
ashojai author

Hello,
I am trying to make the Main picture of each record on the list page to become a hyperlink for the view page of the same record ( The default is that the lens icon of details, does this job ).
Does anyone have a solution for this ?
Thanks

A
ann 6/25/2010

Hi,
proceed to the HTML mode on the Visual Editor and make the following changes (bold):

{BEGIN FieldName_fieldcolumn}<TD vAlign=middle {$FieldName_style}><a href="TableName_view.php?editid1={$custom_link}">{$FieldName_value}</a></TD>{END FieldName_fieldcolumn}


Then add to the After record processed event on the Events tab:

$record["custom_link"]=$data["Id"];



where FieldName is your actual field name, Id is actual key field name, TableName is actual table name.

A
ashojai author 6/29/2010

Thanks a lot Ann,
I did what you said and it worked perfectly.
Best,
Arian



Hi,
proceed to the HTML mode on the Visual Editor and make the following changes (bold):
Then add to the After record processed event on the Events tab:

$record["custom_link"]=$data["Id"];



where FieldName is your actual field name, Id is actual key field name, TableName is actual table name.