Monday 21 July 2008 1:56:42 pm - 2 replies
Hi,
I know this subject has been talked but I didn't find what I would like to do.
I have added in settings/override/content.ini.append.php :
[CustomTagSettings] AvailableCustomTags[]=edito IsInline[edito]=true [edito] CustomAttributes[] CustomAttributes[]=color
Then, in a new tpl : design/standard/templates/content/datatype/view/ezxmltags/edito.tpl :
<span style="color:{$color}">{$content}</span>
After clearing caches, I have in the html source :
<paragraph> <custom custom:color="red" name="edito">test</custom> </paragraph>
Result : the text is not in red color, and I don't see my <span> code...
Why ? And how can I do better ?
Thank you.
Modified on Monday 21 July 2008 2:03:35 pm by Jeremy A
Monday 21 July 2008 2:24:03 pm
Can not reproduce.
Did everything like you expect I placed the template in:
extension/<my_extension>/design/standard/templates/content/datatype/view/ezxmltags/edito.tpl
And enabled color picker in Oniline edtior 5.0 (content.ini):
[CustomAttribute_edito_color] Type=color Name=Text Color
Then I cleared override cache and cleared view cache on the specific node I tested this on ( in admin: click on big icon next to the "title[class name]" of the current node ).
But even before I added the template I didn't get the output you describe(I dind't get anything, I just got a warning that the template didn't exist), the only place I get what you got is if I disable Online Editor while editing.
Warning before I created the template:
No template could be loaded for "content/datatype/view/ezxmltags/edito.tpl" using resource "design"
Output while editing with editor disabled:
<custom name="edito" custom:color="#11ed2c">asdfsdfdsf</custom>
Output in content/view after adding template and clearing caches:
<span style="color:#11ed2c">asdfsdfdsf</span>
Modified on Monday 21 July 2008 2:27:03 pm by André R.
You must be logged in to post messages in this topic!