This topic is locked

Pictures on the list page

5/11/2009 3:56:45 PM
PHPRunner General questions
W
wilsonhaze author

Is it possible that when the thumbnail picture on the list page is clicked, instead of viewing the full picture, it links to the view page, then on the view page you can now click on the image to see the full image. Thanks.

J
Jane 5/12/2009

Hi,
you can create alias for this field on the Edit SQL query tab:

select field1,

field1 as field1_list,

...

from TableName


Then set up different settings for field1 and field1_list on the "View as" settings dialog on theVisual Editortab.

W
wilsonhaze author 5/13/2009

Thanks, it's working now, but i have a problem with making the image on the list page a link i tried putting something like this but it didnt work.

{BEGIN Image1_list_fieldcolumn}<A href="{$viewlink_attrs}">{$Image1_list_value}</A>{END Image1_list_fieldcolumn}

J
Jane 5/13/2009

Hi,
try to use this one:

<A {$viewlink_attrs}>{$Image1_list_value}</A>

W
wilsonhaze author 5/13/2009

I tried that too but it isn't working. I looked at one of the templates that comes with phprunner and it has something different that looks like this;

<A href="retblresults_view.php?{$row.1editlink}">{$row.1PhotoListing_value}</A>

J
Jane 5/14/2009

What PHPRunner version do you use?

W
wilsonhaze author 5/14/2009

I finally got it right, the reason why it wasn't working before was because in the "view as"settings, the display thumbnail check box was selected.

Thanks.