[Gather] Bypass Topic List Page
I was trying to bypass the topic list page since I only have one topic in the Community. The only way I could see to do this was to adjust all community links so they go to the "posts" page rather than the "topics" page. In effect making the topic list page not linked to anywhere. The main Community link had already been linked to the post list page so that wasn't an issue, but the links in all the breadcrumbs still linked to that landing page.
To do this:
- Go to Guide Admin.
- Select Customize Design.
- Select View Theme.
- Select the Elipsis.
- Select Edit code.
- Open these five files:
- community_post_page.hbs
- community_topic_page.hbs
- community_post_list_page.hbs
- community_topic_list_page.hbs
- new_community_post_page.hbs
I commented out this line on the top of each page like so:
<!--{{breadcrumbs}}-->
and added the manual breadcrumb like so:
community_post_page.hbs
<ol class="breadcrumbs">
<li>{{#link 'help_center'}}{{help_center.name}}{{/link}}</li>
<li><a href="https://support.YOURSITE.com/hc/en-us/community/posts">Community</a></li>
<li><a href="{{topic.url}}">{{topic.name}}</a></li>
</ol>
community_topic_page.hbs
<ol class="breadcrumbs">
<li>{{#link 'help_center'}}{{help_center.name}}{{/link}}</li>
<li><a href="https://support.YOURSITE.com/hc/en-us/community/posts">Community</a></li>
<li>{{topic.name}}</li>
</ol>
community_post_list_page.hbs
<ol class="breadcrumbs">
<li>{{#link 'help_center'}}{{help_center.name}}{{/link}}</li>
<li><a href="https://support.YOURSITE.com/hc/en-us/community/posts">Community</a></li>
</ol>
community_topis_list_page.hbs
<ol class="breadcrumbs">
<li>{{#link 'help_center'}}{{help_center.name}}{{/link}}</li>
<li><a href="https://support.YOURSITE.com/hc/en-us/community/posts">Community</a></li>
</ol>
new_community_post_page.hbs
<ol class="breadcrumbs">
<li>{{#link 'help_center'}}{{help_center.name}}{{/link}}</li>
<li><a href="https://support.YOURSITE.com/hc/en-us/community/posts">Community</a></li>
<li><a href="{{help_center.url}}/community/posts/new">{{t 'new_post'}}</a></li>
</ol>
There may be A LOT less clunky way to do this, but this got the job done, definitely open to suggestions.
-
Thanks for sharing this, Sherri! We've gotten this question before, so I'm sure folks will find it helpful. :)
Please sign in to leave a comment.
1 Comments