This topic is locked

Mouse over photo title

2/17/2008 12:56:08 PM
PHPRunner General questions
M
mmponline author

The following code is in the code of a photo field:

<TD vAlign=middle align=middle {$row.1Photo_style}>{$row.1Photo_value} &nbsp; </TD>


I can add a title that appears when the mouse is moved over the photo:

<TD title="photo" vAlign=middle align=middle {$row.1Photo_style}>{$row.1Photo_value} &nbsp; </TD>


I would like the mouse over to display a field value instead of the name "photo" as a title. My reason. When the mouse is moved over the photo, I'd like to display the name of the photographer read from another field in the database table. Something like this:
<TD title="{$row.1Photoby_value}" vAlign=middle align=middle {$row.1Photo_style}>{$row.1Photo_value} &nbsp; </TD>
This code does not work however. Any ideas?

J
Jane 2/18/2008

Stephan,
make sure Photoby field is checked on the list page on the Choose fields tab.

M
mmponline author 2/18/2008

That's now working. Thanks
I also have photos on the view page. This code shows nothing, although no errors are returned.
<TD class=shade title="{$row.1Photographer1_value}"width=264><P align=center>{$show_Photo1}</P></TD>
I'm shure that the Photographer1 field is selected on the Choose fields tab.

J
Jane 2/19/2008

Stephan,
there is no {$row.1FieldName} smarty variables on the view page.

Try to use this code on the View page:

<TD class=shade title="{$show_Photographer1}" width=264><P align=center>{$show_Photo1}</P></TD>

M
mmponline author 2/19/2008

100%
Thanks Jane! Tops like always...