Share » Forums » Setup & design » print out flashfile url inside of...

print out flashfile url inside of templates

print out flashfile url inside of templates

Thursday 26 August 2010 2:27:33 am - 3 replies

Author Message

Thiago Campos Viana

Thursday 26 August 2010 6:54:46 am

You can debug your template variable with attribute operator, here's a sample:

{videos|attribute( show, 1 )}

or

{foreach $videos as $video}
    {video|attribute( show, 1 )}
{/foreach}

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

nicholas king

Thursday 26 August 2010 8:25:56 am

Thanks for your reply Thiago Campos Viana,

I have just used the function and its fantastic and has solved a load of other problems we have had.

just for the reference its correct usage is

{$video|attribute(show,1)}

Jérôme Vieilledent

Friday 27 August 2010 8:09:09 am

You might want to use attribute_view_gui template function :

{attribute_view_gui attribute=$video.data_map.flash_video}

You can also print out raw URL this way :

{$video.data_map.flash_video.content.filepath|ezroot}

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu