Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Wednesday 17 May 2006 6:59:11 am - 3 replies
Łukasz Serwatka
Wednesday 17 May 2006 10:53:04 am
Dmytro, hello and welcome to the eZ publish Community!
What datatype is label in your example?
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Dmytro Tomilovskiy
Thursday 18 May 2006 8:00:12 am
Good day Lukasz.In my example label is a Text Line, if that is what you mean.
I figured that this problem can be solved by editing
design/standard/templates/content/datatype/view/ezstring.tpl
Where I changed
{* DO NOT EDIT THIS FILE! Use an override template instead. *}{$attribute.data_text|wash( xhtml )}
to
Does this look like a good solution to you?
Thank you for your time.
Thursday 18 May 2006 11:39:53 am
It is not recommend to edit default eZ publish templates. Use override system instead.Copy the original dir structure and file to your design directory:
(yourdesign)/standard/templates/content/datatype/view/ezstring.tpl
Then you can safely edit tpl file. Function attribute_view_gui uses template for rendering output from attribute.
In case where you need it in one place better use direct access to the attribute content:
This will return value from attribute (without new line, no tpl changes required)
{$node.object.data_map.label.data_text|wash()}
You must be logged in to post messages in this topic!