This topic is locked
[SOLVED]

 Make List field open View page for record with custom

7/4/2010 10:43:51 PM
PHPRunner General questions
R
robmid author

Hi All.
I have a list page that shows a list of various motorcycles Table Name: onewayrentals
The motorcycle name comes from a table: motorcycles
I need to make a hyperlink from 'make' in onewayrentals that links to the record in motorcycles to show the record for the same 'make'.
I have looked at View/Custom on Editor page but can't figure how to configure '$value' to include a hyperlink to the appropriate record.
Help welcome.
Thanks.

romaldus 7/4/2010



Hi All.
I have a list page that shows a list of various motorcycles Table Name: onewayrentals
The motorcycle name comes from a table: motorcycles
I need to make a hyperlink from 'make' in onewayrentals that links to the record in motorcycles to show the record for the same 'make'.
I have looked at View/Custom on Editor page but can't figure how to configure '$value' to include a hyperlink to the appropriate record.
Help welcome.
Thanks.


This post may helps you:

http://www.asprunner.com/forums/topic/14631-link-in-list/

R
robmid author 7/5/2010

Thanks Jane.
It's getting closer but the variable for ID is not appearing.
http://demo.asprunner.net/rob_livelink_com_au/AussiebikerAdmin/bikes_view.php?recordid={custom_link}
Does this URL help to see where I have gone wrong.
----------------------------------html----------------------------

<TD><A

href="bikes_view.php?recordid={custom_link}">View

Bike</A> </TD>

-------------------List page : after record processed-------------

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

------------------------------------------------------------------

I assume custom_link should return content of $data["id"];
Thanks again.
Cheers.



This post may helps you:

http://www.asprunner.com/forums/topic/14631-link-in-list/

A
ann 7/5/2010

Rob,
here is the correct HTML code:

<TD><A href="bikes_view.php?recordid={$custom_link}">View Bike</A></TD>
R
robmid author 7/6/2010

Hi Jane.
Sorry.
It's almost working but problem I have now is that$record["custom_link"]=$data["id"];is getting the 'id' from the 'oneway' tablebut the link is looking at the 'bikes_view' table.
<TD><A

href="bikes_view.php?recordid={$custom_link}">View

Bike</A></TD>
I have checked but can't locate any references that might let me figure out how to do this.
Thanks again.
Cheers.

J
Jane 7/6/2010

Rob,
how are these tables (oneway and bikes) linked?