Saturday 06 March 2004 5:22:31 pm
That will cause all my paragraphs to have a class of "paragraph". What I would like to do is send a variable down to paragraph.tpl like I can with ezimage.tpl. So you could do
{attribute_view_gui attribute=$node.description css_class="my_class"}
And then in my new paragraph.tpl I could do
{defaut css_class=false()}
<p{section show=$css_class}class="{$css_class|wash}">{/section}
or even better allow for the display or not of <p> tags on a case by case basis
{attribute_view_gui attribute=$node.content linebreak="false"}
And then in p.tpl
[default linebreak=true()}
{section show=$linebreak}
<p>
{/section}
{$content}
{section show=$linebreak}
</p>
{/section}
If someone can tell me how to get a variable to P.tpl that will account for all my needs. I can get it to ezxmltext.tpl but I can't figure out how to get it from there to P.tpl since $attribute.output_text is not called with an view_gui call. this should not be done on an ini level it should be done on a call by call level. I can do this with ezimage.tpl but pragraph.tpl is two templates deep and I can't figure out how to pass variables to it. I mean Movable Type has this kind of functionality and it has about 1/8 of the capabilities ez-publish has.
--
www.hakjoon.com
|