Datatype Extensions and their Templates

Datatype Extensions and their Templates

Friday 26 March 2004 1:19:32 pm - 4 replies

Author Message

Anton Shishkin

Monday 29 March 2004 1:00:22 am

As far as I understand, your .tpl files must have the same name, as a datatype.
In your case it's 'ezhtmlarea.tpl'

Anton Shishkin

Monday 29 March 2004 1:08:32 am

Hi again,

It's extremly useful, when you testing new modules or datatypes to turn on debug mode (do it with your settings/site.ini file):

[DebugSettings]
DebugOutput=enabled

or better with settings/override/site.ini.append.php file

Dominik Pich

Monday 29 March 2004 2:17:39 am

Have you done the following:
1. have a tpl named like your datatype in:
\extension\myextension\design\standard\templates\content\datatype\edit
and
\extension\myextension\design\standard\templates\content\datatype\view\

2. have a design.append in '\extension\myextension\settings' in which you specify:
[ExtensionSettings]
DesignExtensions[]=myextension

Josh Sowin

Monday 29 March 2004 7:57:56 am

Thank you so much for your replies!

I have tried both of those things to no avail, unfortunately. I can't figure out why it is not working. It is trying to use eztext.tpl instead of ezhtmlarea.tpl, because if I change ezhtmlarea.tpl to eztext.tpl (in the view/ and edit/) than it works fine (but then also affects my textareas obviously which is why I am making a module).

Any other suggestions? I am very greatful for your replies.

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

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