DanteLaVey
10-11-2021, 03:57 AM
how would i change the link and text of a new topic based on a specific forum channel?
Edit:
Template: conversation_toolbar
Find: plus_new_conversation
<button type="button" class="b-button b-button--primary-light new-conversation-btn js-movable-toolbar-button">
<span class="b-button__icon b-button__icon--plus"></span>
<span class="b-button__text-primary js-button__text-primary"><vb:if condition="$showBlogNewEntryButton">{vb:phrase plus_new_blog_post}<vb:elseif condition="$showSGNewTopicButton" />{vb:phrase plus_new_sg_post}<vb:elseif condition="$showNewConversationBtn == 'article'" />{vb:phrase plus_new_article}<vb:else />{vb:phrase plus_new_conversation}</vb:if></span>
</button>
modified to:
<button type="button" class="b-button b-button--primary-light new-conversation-btn js-movable-toolbar-button">
<span class="b-button__icon b-button__icon--plus"></span>
<span class="b-button__text-primary js-button__text-primary">
<vb:if condition="$showBlogNewEntryButton">{vb:phrase plus_new_blog_post}
<vb:elseif condition="$showSGNewTopicButton" />{vb:phrase plus_new_sg_post}
<vb:elseif condition="$showNewConversationBtn == 'article'" />{vb:phrase plus_new_article}
<vb:elseif condition="$page['nodeid'] == 38" />{vb:phrase plus_new_toScript}
<vb:else />{vb:phrase plus_new_conversation}</vb:if>
</span>
</button>
Does the job for changing the new topic phrase per page specified, tho im still intrigued as to where i would change the link of said button on that specific page
Edit:
Template: conversation_toolbar
Find: plus_new_conversation
<button type="button" class="b-button b-button--primary-light new-conversation-btn js-movable-toolbar-button">
<span class="b-button__icon b-button__icon--plus"></span>
<span class="b-button__text-primary js-button__text-primary"><vb:if condition="$showBlogNewEntryButton">{vb:phrase plus_new_blog_post}<vb:elseif condition="$showSGNewTopicButton" />{vb:phrase plus_new_sg_post}<vb:elseif condition="$showNewConversationBtn == 'article'" />{vb:phrase plus_new_article}<vb:else />{vb:phrase plus_new_conversation}</vb:if></span>
</button>
modified to:
<button type="button" class="b-button b-button--primary-light new-conversation-btn js-movable-toolbar-button">
<span class="b-button__icon b-button__icon--plus"></span>
<span class="b-button__text-primary js-button__text-primary">
<vb:if condition="$showBlogNewEntryButton">{vb:phrase plus_new_blog_post}
<vb:elseif condition="$showSGNewTopicButton" />{vb:phrase plus_new_sg_post}
<vb:elseif condition="$showNewConversationBtn == 'article'" />{vb:phrase plus_new_article}
<vb:elseif condition="$page['nodeid'] == 38" />{vb:phrase plus_new_toScript}
<vb:else />{vb:phrase plus_new_conversation}</vb:if>
</span>
</button>
Does the job for changing the new topic phrase per page specified, tho im still intrigued as to where i would change the link of said button on that specific page