Share » Forums » General » 3.1: more docs needed on how the...

3.1: more docs needed on how the template override works

3.1: more docs needed on how the template override works

Wednesday 28 May 2003 9:50:43 am - 3 replies

Author Message

Bård Farstad

Wednesday 28 May 2003 12:55:38 pm

This is pretty much how it works. You can still override a file by copying to your siteaccess. E.g. you can override pagelayout.tpl by copying it into your siteaccess ( design/mysite/templates/ or design/mysite/override/templates ).

--bård

Documentation: http://ez.no/doc

Volker Lenz

Friday 06 June 2003 1:08:16 pm

Thanks for this enlightening comment. Saved me hours of configuration. On monday, I hope to release the first productive ezp 3.1-01 site in Germany. (www.de.gtct.com). Isn't that cool ;-)

Gabriel Ambuehl

Friday 06 June 2003 4:03:16 pm

I have no luck.

I gave up on using the template editor as it doesn't seem to create any files at all (just to be sure I'm not running into permission problems I chowned the whole tree to user www so Apache HAS write rights, still no lucks).

So I figured I could do it by hand.

For the time being, I'm using design/user as my site access (I'm lazy blabla ;-). If I put pagelayout.tpl into user/templates it will show up without any troubles but stuff in user/templates/node/view seems to be ignored (but those put into standard WILL be used...).

I wanted to change the design of the Link class (clicking on the line should lead the user to the link directly not to a description of it). Considering it is class 11, I figured I'd add line_class_11.tpl to override/templates and be done with. Nothing happened. Then I tried my luck with override.ini (at some point I decided I don't like the name and renamed the template to line_link.tpl):

[line_link]
Source=node/view/full.tpl
MatchFile=line_link.tpl
Subdir=templates
Match[class]=11
Match[section]=1

but still no luck. I'm especially not sure whether I need to use line or full as source but neither seems to work...

I'm getting the impression that the override system is rather buggy. Or maybe it just hates my FreeBSD 4.8/mod_php 4.3.1 install as it seems to work for others. Oh, aside of having changed pagelayout.tpl, the templates are pretty much virgin.

Templates and overriding them is possibly the most powerful feature of ezpublish 3 but the documentation is nowhere up to it. It would be really nice if someone who actually got it to work and got some clue about how it works where to compile a one stop description of it...

Visit http://triligon.org

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

36 542 Users on board!

Forums menu