Hi,
may be someone could help me over the street, please, since I´m just not getting it. I´m trying to reroute the create thread button in particular forums (via forum_view) with
but if I put this in the template the
becomes highlighted in red as an error. Saving produces the error that an "if" is expected instead.
What the heck am I doing wrong..?
(Yes, of course it says I am missing an "if" statement - but I don´t understand why there and for what reason. And no, the answer is not: drink more coffee )
may be someone could help me over the street, please, since I´m just not getting it. I´m trying to reroute the create thread button in particular forums (via forum_view) with
Code:
<xf:pageaction if="$forum.canCreateThread()">
<xf:if is="{$forum.node_id} == 56">
<xf:button href="{{ link('resources/categories/add', $category) }}" class="button--cta" icon="write">{{ phrase('xfrm_add_resource') }}
</xf:button>
<xf:elseif />
<xf:if is="{$forum.node_id} == 117">
<xf:button href="{{ link('showcase/categories/add', $category) }}" class="button--cta" icon="write">{{ phrase('xa_sc_add_item') }}
</xf:button>
<xf:else />
<xf:button href="{{ link('forums/post-thread', $forum) }}" class="button--cta uix_quickPost--button" icon="write">{{ phrase('post_thread') }}
</xf:button>
</xf:if>
</xf:pageaction>
but if I put this in the template the
Code:
</xf:pageaction>
What the heck am I doing wrong..?
(Yes, of course it says I am missing an "if" statement - but I don´t understand why there and for what reason. And no, the answer is not: drink more coffee )
Last edited: