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

eZ debug

Timing: Jan 19 2025 03:33:38
Script start
Timing: Jan 19 2025 03:33:38
Module start 'content'
Timing: Jan 19 2025 03:33:38
Module end 'content'
Timing: Jan 19 2025 03:33:39
Script end

Main resources:

Total runtime1.1609 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0094 589.1953180.8125
Module start 'content' 0.00940.9765 770.0078607.5547
Module end 'content' 0.98590.1750 1,377.5625337.3516
Script end 1.1609  1,714.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3568210.0002
Check MTime0.00160.1358210.0001
Mysql Total
Database connection0.00130.107810.0013
Mysqli_queries1.079292.95461990.0054
Looping result0.00260.22821970.0000
Template Total1.118796.420.5593
Template load0.00330.283320.0016
Template processing1.115396.072320.5577
Template load and register function0.00010.009510.0001
states
state_id_array0.00610.523010.0061
state_identifier_array0.00200.168320.0010
Override
Cache load0.00270.2284240.0001
Sytem overhead
Fetch class attribute can translate value0.00120.104940.0003
Fetch class attribute name0.00130.108170.0002
XML
Image XML parsing0.00180.155740.0005
class_abstraction
Instantiating content class attribute0.00000.001080.0000
General
dbfile0.00320.2722420.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs