Forums / Setup & design / override problem with ezxmltags/link.tpl

override problem with ezxmltags/link.tpl

Author Message

Heiner Wurbs

Tuesday 29 June 2004 8:01:43 am

Hi together,
I didn't got it, could someone of you help?
I want to override the link.tpl only inside an xml field, but only inside a special class. If I use the following:

[link]
Source=content/datatype/view/ezxmltags/link.tpl
MatchFile=link.tpl
Subdir=templates

it overrides any link in a xml field.

If I use the following:

[link_info_page]
Source=content/datatype/view/ezxmltags/link.tpl
MatchFile=link.tpl
Subdir=templates
Match[class_identifier]=info_page

it doesn't :( work, but should.
The question is, whats wrong?

Any hint is appreciated!
Heiner

Maarten Holland

Wednesday 30 June 2004 8:03:36 am

I'm not quite sure about the override. Perhaps you can try to use a custom made XML tag?

You could use the following code in any XML Text field:

<custom name='link'> http://www.ez.nl </custom> and format it through link.tpl which you would place in design/user/templates/content/datatype/view/ezxmltags. This could be a bit too much work though. Perhaps there's an easier way of overriding like the one you proposed.

Anyway, here's the information you need to get the custom XML tag to work:
http://www.ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags.

Please let us know if you've found the solution.

Good luck,

Maarten

Heiner Wurbs

Sunday 04 July 2004 8:45:14 am

Hi Marten,
thanks for your reply. I tried already this and in fact, it could be a solution. But the disadvantage is, that you cannot insert a link, only if you type in the ID or s.th. like that. But that's not comfortable for users :(
The solution I found is a workaround without eZ: I analyze the inserted links with a javascript call in the link.tpl.

Another way I tried, was to extend the link object with another target or class. But there was no success.

Best regards,
Heiner