Wednesday 04 July 2012 3:54:03 pm - 3 replies
Hello everyone, i'm new in the eZ publish world and i have an issue with the template.
I just installed eZ publish in local and I would like to add a word/sentence (something like "TEST" ), it works really well with the "plain_site" template but not with the other templates.
To add the sentence i'm actually using the pagelayout.tpl file, when i'm done with it i'll add some javascript code.
Am I doing wrong ? PS : sorry for my bad English.
I'm looking forward reading your advice, thanks.
Modified on Wednesday 04 July 2012 3:55:50 pm by Olivier CARON
Wednesday 04 July 2012 4:58:18 pm
Hi Olivier,
Welcome to the eZ Publish community !
eZ Publish generates somes caches when you access the first time on the page.
If you want to develop with eZ, you have to define some parameters in site.ini.append.php like:
[TemplateSettings] TemplateCache=disabled DevelopmentMode=enabled
These parameters will be turned off in production mode ![]()
I hope this will help.
Cheers.
Thursday 05 July 2012 3:08:17 pm
Thanks for you help Sylvain, actually that was not the problem but it's always good to know. I Just needed to modify the correct file which was in extension\site\design\site\templates\pagelayout.tpl
I have another question, I need to insert a XiTi tag in this file but I think this is written in smarty so i can't get the page title in PHP ... Do you know where are the php files located ?
Thanks !
Saturday 01 September 2012 2:34:33 pm
The templates use eZ's template language (http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Templates and http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference).
To add XiTi code, you should be able to wrap it with {literal} tags, like so:
{literal} ... XiTi stuff ... {/literal}
You must be logged in to post messages in this topic!