Hi,
I have this script:
$tpl->define_dynamic(rel_art, "article");
$tpl->assign(array(
RELATED_TYPE => $related_type,
RELATED_ARTICLE_ID => $ref->rel_link_id,
RELATED_NAME => $rel_art_names
));
$tpl->parse("RELATED_LINKS", ".rel_art");
$tpl->parse("ARTICLE", "article");
My article.tpl look like this
<p><small>{DATE}</small><br>
{HEADLINE}</p>
<p><i>{AUTHOR}</i></p>
<p>{PARAGRAPH}<br><br>
<!-- BEGIN DYNAMIC BLOCK: rel_art -->
<a href="http://www.{RELATED_TYPE}.php?id={RELATED_ARTICLE_ID}">{RELATED_NAME}</a><br>
<!-- END DYNAMIC BLOCK: rel_art -->
But instead of writing dynamic HTML code it write RELATED_LINKS the parse name I gave it. All over the documentation there is nothing about what to put here:
$tpl->parse("RELATED_LINKS", ".rel_art");
If I change to "RELATED_LINKS" to something else nomatter what it will just get writing on the site. Does anybody know how to fix this.