Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Zendesk: Redirect Category Links using {{curlybars}}
<!-- Grab the id of the category and insert into the is statement. This code is from the Copenhagen Theme-->
<li class="blocks-item">
{{#is id 204259447}}
<a href="/hc/communities/public/topics" class="blocks-item-link">
<h4 class="blocks-item-title">{{name}}</h4>
<p class="blocks-item-description">{{excerpt description}}</p>
</a>
{{else}}
<a href='{{url}}' class="blocks-item-link">
<h4 class="blocks-item-title">{{name}}</h4>
<p class="blocks-item-description">{{excerpt description}}</p>
</a>
{{/is}}
</li>
@ins4nity

This comment has been minimized.

Copy link

ins4nity commented Mar 3, 2017

Hey Wes, how would I add a second category link using this code? I did a single category and it worked fine, but I'm getting problems with where I should put the 2nd. Thanks!

@moderatorwes

This comment has been minimized.

Copy link
Owner Author

moderatorwes commented Mar 6, 2017

You should be able to add another {{is}} statement in there. Did you try that?

@Swede71

This comment has been minimized.

Copy link

Swede71 commented Jan 11, 2018

Hi Wes, Where would I place the code in the Home Page?

@Swede71

This comment has been minimized.

Copy link

Swede71 commented Jan 11, 2018

Hi @nerlandson. Where in the HTML did you place the above?

@UnluckyThirteen

This comment has been minimized.

Copy link

UnluckyThirteen commented Mar 6, 2018

@moderatorwes how would you adjust this to point a section or article to a specific URL? And where would it go?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.