Share » Forums » Setup & design » cannot include overridden folder.tpl...

cannot include overridden folder.tpl in template.

cannot include overridden folder.tpl in template.

Wednesday 27 May 2009 8:08:21 am - 3 replies

Author Message

Norbert Wagner

Friday 05 June 2009 4:04:42 pm

Hi M Unicorn,
we had similar problems.

It seems that you cannot include templates located in the override/templates folder.
IIRC, in the past this was possible.

We solved our problem with a dumb override which in your case should look like this:

[dummy_folder]
Source=full/folder.tpl
MatchFile=full/folder.tpl
Subdir=templates

Although we did not use it for class templates, but for menus included in the pagelayout.

Hope this helps,
Norbert

Russell Michell

Sunday 07 June 2009 4:04:53 pm

@M Unicorn,

Are you *sure* the right template is being included?

FWIW - while developing, in override/settings.ini.append.php, I usually use ez with the [TemplateSettings] DevelopmentMode=enabled setting which - where viewing the source for a page - ez will show you HTML comments of the *exact* path where a particular template is being included from:


<!-- START: including template: extension/ezdeploy/design/duty/templates/link.tpl (design:link.tpl) -->
<!-- some HTML code here from extension/ezdeploy/design/duty/templates/link.tpl
<!-- STOP: including template: extension/ezdeploy/design/duty/templates/link.tpl (design:link.tpl) -->

Simply seeing "{include uri="design:/full/folder.tpl"}" is not a precise way of ensuring you know where a template is included from especially in the case of overrides, design extensions etc.

Forgive me if you knew this already, Grandma eggs etc ;-)

Cheers,
Russell

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Norbert Wagner

Thursday 26 November 2009 4:20:49 am

Read link below for more info:

http://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_functions/miscellaneous/include#comment20195

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

36 542 Users on board!

Forums menu