Tabs

Pictures on tabs

7 months 5 days ago #89684

Kostas Konstantinidis's Avatar Kostas Konstantinidis

Hi there,
I use dynamically generated tabs via php repeat code like
{tab title="<b><?php echo($Recordset1->getColumnVal("person")); ?></b>" positioning="left"}....
which works perfect and exactly as I need
while try to add some php code for pictures like
{tab <img src="./images/critics/<?php echo($Recordset1->getColumnVal("photo")); ?>" /> title="<b><?php echo($Recordset1->getColumnVal("person")); ?></b>" positioning="left"}....
it doen't display the picture

Am I doing something wrong?
thank's

7 months 5 days ago #89686

Peter van Westen's Avatar Peter van Westen Admin

Yes, your {tab} tag syntax is now wrong.
You now have::

{tab <img ... /> title="..." positioning="left"}....
Where do you want the image to show? Inside the tab title? Then place it inside the title="..." attribute.

7 months 5 days ago #89687

Kostas Konstantinidis's Avatar Kostas Konstantinidis

great,
many thank's