User edit template

Author Message

Marin Orlic

Thursday 29 September 2005 12:48:45 pm

What is the proper way to override user edit template?
I have a custom user (profile) class, call it user2 and override it with:

[edit_user2]
Source=content/edit.tpl
MatchFile=edit/user2.tpl
Subdir=templates
Match[class_identifier]=user2

This doesn't work, base template is loaded instead. eZDebug shows:

Template = edit/user.tpl
Requested template = content/edit.tpl
Template loaded = design/base/override/templates/edit/user.tpl

I tried to add override:

[edit_user2_2]
Source=edit/user.tpl
MatchFile=edit/user2.tpl
Subdir=templates
Match[class_identifier]=user2

No use.

Copying the template to design/.../templates/user/edit.tpl also doesn't work.

Help? Bug?

eZ 3.7.0rc2 php4.4

Marin Orlic

Thursday 29 September 2005 12:55:36 pm

Yes, I cleared the cache. Dozens of times. Didn't work.

Now it does. No idea why.

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