Recent searches


No recent searches

Creating custom pages in the help center



image avatar

Jennifer Rowe

Zendesk Documentation Team

Edited Jun 21, 2024


3

50

50 comments

I am not a coder. 

I want to make a tutorials page based on the article template. As in I want the page to look like our articles, but as a separate url that is not listed under categories. We will constantly add videos and I don't want to hard code the page. If that makes sense. 

Or can I give an article a custom url instead? 

 

1


I am Japanese.
I'm not good at English, but I have a question.

For example, if you want to change the display by language, is there a description like {{#isnt lang = en-us}} text {{/ isnt}}?

0


image avatar

Kasper Sørensen

Zendesk Product Manager

Hi Lisa Sedlak

The custom pages feature is currently targeted at customers who want to do some level of coding, so it might just not be for you. If you do want to go ahead though, and if you want to avoid hardcoding the content, then you need to make it such that the content is fetched dynamically. For example you can use Dynamic Content (the {{dc}} helper) to fetch text strings dynamically. And if your video collection is available somewhere in a machine-readable format like JSON, you could use Javascript to fetch that resource and dynamically build out the page.

Unfortunately we do not currently have a way to give articles a custom URL.

0


image avatar

Kasper Sørensen

Zendesk Product Manager

Hi kobayashi

For localization of strings in HC templates you can use Dynamic Content (the {{dc}} helper).

0


Are custom pages included in search results?

0


I'm coming across an issue with the DC mark-up formatting carrying over to the custom page. So links and lists (bulleted and numbered) aren't populating as intended. Is the solution to create separate DC items when you need to insert a link or make a list and format with code via the custom page's HTML? Or is there a more straightforward solution? 

0


image avatar

Kasper Sørensen

Zendesk Product Manager

Hi David Bjorgen - Custom Pages are not included in search results by default. It is however possible to use the Federated Search feature with Custom Pages, if you add the page to the external content yourself.

Hi Alyssa - Currently the DC helper is only built to support translating simple strings, so bulletpoints or links are in deed not supported. I'll record your feedback as a sign that we should think about something more flexible as well. I think that for now you will need to create the bulletpoints in HTML and insert individual DC strings into those bulletpoints.

0


Great to see this option . . . I'm curious if anyone has experimented with adding Explore content to a custom page.  We are interested in allowing our light agents access to a couple of different Explore views, and would prefer to lead them directly to a page that has this content.  Thanks for any ideas!

0


Is there a way to create custom pages that can only be viewed by certain users or organizations?  Thanks!

2


As Art Costigan mentioned, is there a way to use permissions on a custom page? I want only users that are signed in to be able to access the custom page.

I tried adding a {{#if signed_in}} statement at the top of the page, but the function seems to always think that the user is not signed in.

Essentially I tried the following code for the page:

{{#if signed_in}}

<div>

<p>Display some content on the screen.</p>

</div>

{{else}}

<p> <a href="https://<domain>.zendesk.com/hc/en-us/signin">Sign in</a> to access product documentation and resources.</p>

{{/if}}

My result was that the sign-in prompt was displayed whether a user was signed-in or not.

1


Hi. Is there a way of adding the locale value as default to the custom URL? We use a redirection method based on the locale within the URL. However, because the default URL value doesn't have it, the redirection method bombs out and keeps the user on the same locale. 

default: https://example/hc/p/example - (still works, but causes problems when we change languages using our in-built tool)

what we would like the default to be: https://example/hc/en-gb/p/example

0


image avatar

Kasper Sørensen

Zendesk Product Manager

Hi Art Costigan and Acoustic

Unfortunately we do not have permissions checks like those you describe. It is possible to use access JavaScript and call into e.g. the users REST API to get information about the current user.

Taking notes about your request to have more built-in permissions handling in custom pages and/or in the templating language.

4


I'd like to hide our footer on a custom page. Is this possible? I've looked at https://support.zendesk.com/hc/en-us/articles/4408845769882 but this approach requires an article id, which I don't have for a custom page.

0


image avatar

Ifra Saqlain

Zendesk LuminaryMost Engaged Community Member - 2022Most Engaged Community Member of The Year - 2021Community Moderator

Hey :)

You can hide footer on custom template, just add the below code snippets.

 

Step 1: Add template name on your custom pages at the top which you have been create.

<script>
  var templateName = 'custom_page_one';
</script>

 

Screenshot for the same:

 

Step 2: Now check the template name and hide the footer by Javascript. Add the below code at the bottom of your script.js file.

var footer = document.querySelector('footer');
  if(templateName === 'custom_page_one'){
 footer.style.display = 'none';
  }

 

Screenshot for the same:

If any confusion do let me know.

 

Thanks :)

 

 

0


That worked! Thanks much!

0


image avatar

Ifra Saqlain

Zendesk LuminaryMost Engaged Community Member - 2022Most Engaged Community Member of The Year - 2021Community Moderator

Happy to hear!

0


We've been able to use the new custom page to build a great custom tool for the Helpdesk team but now that we've completed the development we don't appear to be able to access the page except for in the preview mode.

Are there restrictions on use with a custom domain?  In Preview Mode it works great but whatever we try, our signed-in users (including Admins) get redirected to the "The page you were looking for doesn't exist" page. 

Anybody else had issues with this?

 

1


image avatar

Ifra Saqlain

Zendesk LuminaryMost Engaged Community Member - 2022Most Engaged Community Member of The Year - 2021Community Moderator

0


I just start to customize my help center.

I have created a custom page named "betaplan.hbs" under the folder "custom_pages" and the URL is support.yeastar.com/hc/p/betaplan

In preview mode, I can visit this page,although the URL is changed to support.yeastar.com/hc/en-us/p/betaplan

But when I close the preview mode, I cannot visit this, can anyone offer me some help?

2


Wondering if someone can help,

Looking to use Custom Pages to display Categories/Sections as would like to use the home.hbs as a landing page for our customer base. The idea would be they come to our HelpDesk and can choose "Portal" or "Legacy" then under those custom pages would be the categories/sections for the relevant page.

I know we could do this just using categories then sections and sub sections and so on, but without having to re-structure our entire help desk, it's not really a viable task.

Is there a way for me to pull categories/sections dynamically like I would on the home.hbs?

1


I have the same issue as 黄哲 and David Leigh above. We have created 2 custom pages in our help center and other than ADMIN Preview our internal agents AND end users cannot access these pages.See image below. How to we allow access to these pages? 

 

0


Is there a way to restrict a custom page to only signed-in users or a specific subset of users?

1


image avatar

Dane

Zendesk Engineering

Hi FZ,
 
Restricting access to signed-users will be for your entire Help Center.
 
@黄哲 and @Michael Sutcliffe,
 
As much as I wanted to help, the actual customization for the custom page is outside our scope. I have also followed this page just in case other users share their own use cases here that can help out with yours.
 
While building custom scripts is outside the scope of support for Zendesk Advocacy, we do have a Professional Services team that can help/build it for you.

0


Hi Dane,

Thanks for the response. However, if I turn that setting on, then my custom page gives the 'not_found' error message, when it should be giving the 'unauthorized' error message. Can I fix it so it recognizes the user isn't signed in to my custom page, not that the custom page doesn't exist?

0


image avatar

Dane

Zendesk Engineering

Hi Fiona,
 
If you can share the error you received, I can check it for you. In addition, it will also help other users that will have the same problem or they can even help if they have encountered it before.

0


Is there an option to purchase additional custom pages over the limit of 10? Will this cap be removed or increased at any point in the future? Thanks!

0


image avatar

Dane

Zendesk Engineering

Hi Dylan,
 
Based on Guide product limits for your help center, the limit for custom pages is indeed set at 10. Additional custom pages is not yet supported. Please keep an eye for any improvement on our Zendesk update page.
 
I'd also recommend creating a Community post separately for that with your use case to help get more visibility and votes on the idea. Then, others can share their use cases to further drive demand for that feature. 

1


image avatar

Tetiana Gron

Zendesk Product Manager

Hi everyone,

Some of you mentioned that custom pages you created didn't exist. Custom pages is an Enterprise feature. If you have Guide Professional you can still create and preview custom pages. If you want to have custom pages as part of your help center, you'll need to have Guide Enterprise. 

0


but the function seems to always think that the user is not signed in.

This means I can't use this function. (I read about the script thing, but I have no knowledge of scripting.)

A workaround I see is to make articles instead, probably with specific templates. You lose the custom URL though.

0


image avatar

Gorka Cardona-Lauridsen

Zendesk Product Manager

Dylan Buckley the limit for custom pages has been increased to 100.

Happy holidays :) 

2


Please sign in to leave a comment.