new datatype - can't get templates to load

Author Message

Hardy Pottinger

Tuesday 11 May 2004 1:05:18 pm

I'm still finding my legs with eZPublish 3, sorry if this is an easy question, but I can't figure it out, and don't see it mentioned in the forums (and I'm going absolutely batty at this point).

I'm trying to create a new datatype, and decided to copy the ezstring type and build from there. I've managed to get it to load, sort of, but it's using the default generic datatype templates to display, instead of the one's I've created in the extension folder. According to debug, eZ isn't even looking in the correct folder, although I've added the appropriate desigin.ini.append file in ./extension/myextension/settings/.

I can get the templates to load if I add them into the /design/standard/templates/class/datatype/[edit|view] (which is where eZ is looking right now).

Here's the desigin.ini.append file:

[ExtensionSettings]
DesignExtensions[]=myextension

The only thing I can think of is that my extension name and my datatype name are different, but I'm assuming that's OK, because, while the examples have similar names, the generic path names given in the tutorials imply that isn't necessary, and I'm not sure how the extension system would make much sense if you had to have one extension per datatype.

Please, somebody keep me from pulling the last of my hair out! :-\

Paul Forsyth

Wednesday 12 May 2004 12:24:24 am

Hardy,

Do you have a content.ini.append.php file within your extension? You need to declare your new datatype there.

Have you set the file permissions for your new files, so that the web server can read them?

paul

--
http://www.visionwt.com

Hardy Pottinger

Wednesday 12 May 2004 9:52:19 pm

Hi, I do have a content.ini.append file, at /extension/myextension/settings/this is what it looks like:

[DataTypeSettings]
ExtensionDirectories[]=myextension
AvailableDataTypes[]=mydatatype

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