This topic is locked
[SOLVED]

 View something else than in db

8/26/2010 10:42:22 AM
PHPRunner General questions
R
rve author

Like this:
<a href="http://test.com/variable1">New text</a>
Where variable1 = url adress is one field in db and New text is another field from the db.

Sergey Kornilov admin 8/26/2010

Not sure what's the question here.

R
rve author 8/26/2010



Not sure what's the question here.


I want to have a column in my list were data presented is input from a db column and part of the link "http://www.test.com/variable is input from an different column.
I have a javascript that with mouse-over start the link
Just the same as this do: <a href="http://test.com/variable1">New text</a>

J
jsuisman 8/26/2010



I want to have a column in my list were data presented is input from a db column and part of the link "http://www.test.com/variable is input from an different column.
I have a javascript that with mouse-over start the link
Just the same as this do: <a href="test.com/variable1">New'>http://test.com/variable1">New text</a>



Ficklus,
I would use a custom event to generate and output the link. In the Visual Editor tab, place the cursor where you want the link to display and click the Insert code button. You should be able to get the variable you need by either running a query within the event or accessing directly through the template. Then you echo the html link text. This example would display on the page a Click Here link that points to test.com/variable1:



$variable1 = "something";//this could be result of a query or a field from the page

echo "<a href='http://test.com/".$variable1."'>Click Here</a>";


Jarred

R
rve author 8/27/2010

Thanks, is there a way to have the text "Click here" as field in the list:
Item1 TEST US HERE Click Here

Item2 TEST2 EU THERE Click Here

A
ann 8/27/2010

Hi,
check the following thread:

http://www.asprunner.com/forums/topic/14631-link-in-list/pagehl%7B$custom_link%7Dfromsearch1

R
rve author 8/27/2010



Hi,
check the following thread:

http://www.asprunner.com/forums/topic/14631-link-in-list/pagehl%7B$custom_link%7Dfromsearch1


Thanks y saved my WE - thanks alot......