Share » Forums » Setup & design » template variables in custom tags

template variables in custom tags

template variables in custom tags

Friday 23 February 2007 2:42:02 am - 2 replies

Author Message

André R.

Friday 23 February 2007 4:09:53 am

Looking at how factbox is used in ezwebin, content.ini:

[factbox]
CustomAttributesDefaults[align]=right
CustomAttributesDefaults[title]=factbox

And override/templates/datatype/ezxmltext/factbox.tpl:

<div class="object-{if is_set($align)}{$align}{else}left{/if}">
   <div class="factbox">
       <div class="factbox-header">
       	<h2>{if is_set($title)}{$title}{/if}&nbsp;</h2>
	   </div>
       <div class="factbox-content">
       	{$content}
       </div>
   </div>
</div>

Hopfully this is what you are after :)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

paul bolger

Sunday 25 February 2007 8:53:56 pm

Thanks Andre, that looks like it might do the trick.

Paul Bolger

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu