Forums / General / How to use the custom tag's "insert attribute"
Brendan Pike
Friday 08 October 2004 1:42:47 am
Could someone show me how to use the insert attribute found in the Online Editors custom tag. Can this be used for example to allow users to define font colors by themselves? How should the template be built to utise this?
www.dbinformatics.com.au We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.
K259
Friday 08 October 2004 2:20:41 am
I also would appreciate that people who have used this custom tag to something special and usefull, publish their code at the "Contributions" section with urls to the examples.
Would be a great way to get new ideas for the use of this functionallity.
And Brendan, yes, you can make custom tags the way you want with a lot of different code.. - you can do a fetch from the database and show the most active users in the forum through a template (ez.no uses a custom tag for this here: http://www.ez.no/community/stat) - you can make factboxes as standard in the demo - you can make hr's, have a custom tag for your company logo, so that you don't have to upload logo, related it to the page which is too much work ++++- you can use variables (input fields) where the users themselves decide the values.
Z
Monday 11 October 2004 12:44:18 am
> you can use variables (input fields) where the users themselves decide the values.
I understand all your earlier points but it's your last point I would like some further details on, I have experimented without success. Does the template need to be written to support these values? Could someone show me please.
Wenyue Yu
Thursday 14 October 2004 1:04:24 am
Hi,
A simple example to change standard template factbox.tpl, supposed that you have added attribute 'color':
<div align="center"> <table bgcolor="#eeeeee"> <tr> <td> <font color={$color"}> {$content} </font> </td> </tr> </table> </div>
The point is that all added attribute will be available in the template and you can use these to make complex template.
Regards,wenyue