Share » Forums » Setup & design » Problems fetching custom content class

Problems fetching custom content class

Problems fetching custom content class

Saturday 26 July 2008 9:44:44 am - 3 replies

Modified on Saturday 26 July 2008 9:54:39 am by Gintautas S.

Author Message

Ivo Lukac

Saturday 26 July 2008 10:27:53 am

Hi Gintautas

Reed this:
http://ez.no/doc/ez_publish/technical_manual/3_9/templates/the_template_override_system

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Gintautas S.

Saturday 26 July 2008 11:06:56 am

I know overrides are working for me, because I have used them for some classes successfuly. It's some kind of fetching problem, because once I 'have' the array of fetched objects, there should be a call to appropriate template which is not the case. I saw this by inspecting debug info ("show used templates"). I don't reach the override point so to speak, because the default template (node/view/full.tpl) isn't getting called for my class objects, but again override works fine for predefined classes (I can see it in debug info: source template and then the template with which it is overriden are listed). I know this is confusing, but I need to get it solved somehow.

SO maybe I have to 'register' my newly defined class somewhere, for instance in an .INI file?

Ivo Lukac

Saturday 26 July 2008 12:14:13 pm

When you create objects from your custom class they should show up with node/view/full.tpl and node/view/line.tpl . Then with override system you use your templates. It is simple. You either:
- didn't configured your override.ini well
- placed your templates in wrong location
- didn't cleared the override cache

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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

36 542 Users on board!

Forums menu