Jaxel
Well-known member
In the template for "forum_view", the button for for posting threads is as follows:
This set variable is used in both the top control and the below rendered nodes position to control uniformity. This way, throughout the template, any "post new thread" button always has the same values, no matter its position. Anywhere the page wants to render a post new thread button, it simply uses:
However, randomly, at the end of the template, within the "afterDiscussionListHandle" position, it doesn't use the set variable and instead uses a duplication of the code. This seems like a slight oversight.
While it may not seem like a big issue. I am using a template modification to replace the contents of <xen:set>. By not having the consistency in the template, it makes it so I have to make two template modifications to handle a single page, instead of having to only do one... which seems to be against the entire purpose of using a <xen:set> anyways.
Code:
<xen:set var="$newDiscussionButton"><a href="{xen:link 'forums/create-thread', $forum}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a></xen:set>
This set variable is used in both the top control and the below rendered nodes position to control uniformity. This way, throughout the template, any "post new thread" button always has the same values, no matter its position. Anywhere the page wants to render a post new thread button, it simply uses:
Code:
{xen:raw $newDiscussionButton}
However, randomly, at the end of the template, within the "afterDiscussionListHandle" position, it doesn't use the set variable and instead uses a duplication of the code. This seems like a slight oversight.
While it may not seem like a big issue. I am using a template modification to replace the contents of <xen:set>. By not having the consistency in the template, it makes it so I have to make two template modifications to handle a single page, instead of having to only do one... which seems to be against the entire purpose of using a <xen:set> anyways.