Forums / Setup & design / embeded image link
Martin Ulrich
Friday 06 February 2004 6:05:23 am
I put embeded Images/thumbnails in my article with related objects: <object id="xxx" /> And sometimes I want to linked to external link with <object id="xxx" href="xxx"/> - that works fine. And sometimes I'd like to link to internal link, means to the full view of the related object.
<object id="xxx" href="/ezurl/gallery/.../"/> works, but I'like to have a shorter solution, that If there is NO external url, than take the relative Link (full view).
Surely I have to modify embed_image.tpl, specially {section show=is_set($attribute_parameters.href)} {set href=$attribute_parameters.href} {section-else} {set href=""}{/section}
unfortunately don't know how ;-((
Are there some profis out there to help me? thanks in advance.
;-O
Have A drink or two on You than
_______________________ http://artenic.de ARTENIC - Publishing mit allen Mitteln!
Wenyue Yu
Friday 06 February 2004 7:05:00 am
Hi,
An example of how to edit embed_image.tpl to achieve your requirment. Change following line
{section show=$href}<a href={$href|ezurl} target="{$attribute_parameters.target}">{/section}
to
{section show=$href}<a href={$href|ezurl} target="{$attribute_parameters.target}"> {section-else}<a href={concat('/content/view','/full/',$object.main_node_id)|ezurl}>{/section}
Remebmer that you need to change this in three places in this template (left, right and imagecenter case).
Regards,wenyue
Friday 06 February 2004 11:20:32 am
Thank you!!!!!!! works fine. *I'll give an Euro to clochard, really* :-)