Forums / Setup & design / Link between content classes and templates
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.
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 [email protected]
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=templatesMatch[class_identifier]=your_class_name
Hope this helps.
-Luke
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
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?