Link between content classes and templates

Author Message

Alain Bertholet

Wednesday 25 May 2005 2:52:18 am

Hi,

After a new content class creation, how can I refer/add a template to this class?
How does it works globally?

Thanks in advance.

Alain Bertholet

Alain Bertholet

Steve P

Wednesday 25 May 2005 5:12:24 am

Hi Alain

If you create an example of your new class [using the admin interface] & navigate to it you'll be presented with a default template complete with a link to create a custom template for your class.

I now have to work out how to set up line templates for new classes, so if you suss it...

Best

Steve steve@intersynergy.net

Luke Barton

Wednesday 25 May 2005 11:48:55 am

You can also modify the override.ini.php file. The file might be here:

[yoursite.com]/settings/site_access/[site_access]/override.ini.append.php

In it, you can control all the template overrides for objects, classes, etc. like this:

[your_class_name]
Source=node/view/full.tpl
MatchFile=class/your_template_file.tpl
Subdir=templates
Match[class_identifier]=your_class_name

Hope this helps.

-Luke

Steve P

Thursday 26 May 2005 2:51:24 am

Luke - can I use this technique to point to a custom line template?

Thanks

Steve

Xavier Dutoit

Thursday 26 May 2005 3:03:22 am

[your_class_name]
Source=node/view/line.tpl
...

Steve P, I'd suggest you to read the doc on that topic (This one is rather complete).

X+

http://www.sydesy.com

Steve P

Thursday 26 May 2005 3:34:25 am

<I'd suggest you to read the doc on that topic>

Always a good idea ;-)
Must have missed this one. Can you point me in the right direction please?

Best

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.