• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

RM 1.2 xen:description customization question

#1
Hello,

I'm trying to generate custom ' html meta description' tags for RM resource_view subpages (Overview = main page, Updates, Reviews).

Meta description is generated by <xen:description> tag. It's found in resource_view template, it makes 'resource short description' a meta tag value for all resource subpages.

For subpages Updates, Reviews there are templates resource_updates and resource_reviews, inside them we see custom <xen:title> values. By analogy, I'm trying to redefine <xen:description> in these templates. like this:

Code:
<xen:title>....</xen:title>

<xen:if is="{$resource.resource_category_id} == 1">
    <xen:description>...some pattern for category 1..</xen:description>
<xen:elseif is="in_array({$resource.resource_category_id}, array(2, 3, 4))"/>
    <xen:description>...some pattern for categories 2,3,4...</xen:description>
<xen:else/>...
</xen:if>
It doesn't work - 'meta description' remains the default one for reviews and updates tabs. Looks like first definition cancels all future ones. Is it true? Should I think about different approach when xen:description is defined only once in a template tree?