Forums / Setup & design / incude doesn't work with a variable in node/view/full

incude doesn't work with a variable in node/view/full

Author Message

Marko Žmak

Thursday 02 August 2007 7:03:44 am

I have a template tabs.tpl that I include from template override for node/view/full. In this template tabs.tpl I have this code:

	{def $tpl='tabs/test_template.tpl'}
	{include uri='design:tabs/test_template.tpl'}
	{include uri=concat('design:',$tpl)}

The result of this code is that the template tabs/test_template.tpl is included only the first time, and when I call it with the $tpl variable it doesn't get included.

Is this a bug or am I missing something?

I'm using eZ 3.6.1.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Bruce Morrison

Thursday 02 August 2007 5:38:54 pm

Hi Marko

Any errors when debugging turned on?

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

André R.

Friday 03 August 2007 12:37:57 am

Marko: Try upgrading too latest 3.6 version, I think this was fixed a year ago++ or something.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Marko Žmak

Friday 03 August 2007 2:26:48 am

to Bruce:

No, no errors. But the interesting thing is that the same code works when I put it in pagelayout.tpl

to Andre:

OK, thanks. I'll try with the upgrade.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth