XML block and passing on variables

Author Message

Lars Eirik R

Wednesday 11 November 2009 8:18:24 am

Hi.

I am having problems with figuring out how to pass variables to my ezxmltags/link.tpl.

I would like to be able to call attribute_view_gui attribute=bodytext url_type='full'

link.tpl should be able to get this variable and thus i am able to use aboslute url instead of relative url.

This does not work however.

Are there any ways of accomplishing such a thing without affecting the kernel or ezpublish classes ?

(The reason why this is needed, is so that my htmlemails will display links properly, not relative)

Romain Petit

Wednesday 11 November 2009 2:19:13 pm

Hi,

You can override the original link.tpl file and add "full" to the ezurl operator parameters.

Good luck.

Lars Eirik R

Wednesday 11 November 2009 2:23:58 pm

Thanks Romain.

I have managed to do so, but that forces me to output the links as absolute all the time.

My goal is toe be able to pass on a parameter which i can use to check for in my link.tpl

Is this possible? or am i not able to pass on a variable with attribute_view_gui for an xml block datatype ?

Lars Eirik R

Wednesday 11 November 2009 2:47:36 pm

I will just do what i have done already.. i will output all links in links.tpl as aboslute.

That way i make sure to stick to one scheme as well sa make sure that htmlemails contain correct and full urls.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.