After you’ve enabled your article for content blocks, you can create and insert content blocks.
You can create a content block from a single unit of content (for example, a paragraph, a section heading, a code block, a bulleted list), or choose multiple consecutive sections of content in an article, or all the text in an entire article. You can use one or many content blocks within an article, alongside regular text. We use the term regular text to refer to any article text that you create that is not in a content block.
Guide admins can create and insert content blocks. Agents can create and insert content blocks in articles where they have permission to edit.
Creating a content block for reuse
After you’ve enabled your article for content blocks, you can create some reusable content.
To create a content block
- In your article, select the content you want to make into a reusable content
block.
When you select content, a plus (+) icon appears beside the text.
Note: If you select a fragment of text, for example, one sentence within a paragraph, the whole paragraph will be included in the new content block. A paragraph or section heading is the smallest fragment of content that you can include in a content block. - Click the plus (+) icon.
- Give the content block a meaningful name, so that you can easily identify it when you
reuse it in other articles.
- Format the content within the content block as needed, using the toolbar, for example,
adding bold or inserting a link.
Formatting the content in a content block affects all articles that use this content block.
- Click Create.
The content is now a content block and is stored independently for reuse by other articles. In the article, the text appears with a gray background. You don't need to save the article to create a content block.
Inserting a content block into an article
After you’ve enabled your article for content blocks, you can insert some reusable content.
To insert content from a content block
- In your article, click where you want to add reusable content.
You'll see a plus (+) icon appear in the margin.
- Click the plus (+) icon.
A list of available content blocks appears.
- Choose the content block that you want to add.Refine your results by:
- Specifying part of the content block name. Only the content block name is searched, not the content block body.
- Sorting by edited date or created date.
- Sorting alphabetically.
Click a content block to preview the content.
- Click Insert.
The content block is inserted into the article and appears with a gray background.
In the source code view (
), you won't see any HTML code for content blocks, only for your regular text. This is because content blocks live independently in the help center. Additionally, you'll only see the HTML code for the chunk of regular text where your cursor is placed, between content blocks. For example, if your cursor is above a content block and you click the source code view, you'll only see the HTML code for the text above the content block. Place your cursor below the content block and go to the source code view to see the HTML code below the content block.
8 Comments
Olá!
Estou homologando essa funcionalidade e quando eu tento editar um bloco de conteúdo apresenta uma mensagem de erro abaixo:
The following note is misleading. I expected to be able to use an <li> element as content block, but instead the entire list was included. It would be nice if you could add this to the note b/c I don't think of <li> as being that different from a paragraph other than its styling.
Note: If you select a fragment of text, for example, one sentence within a paragraph, the whole paragraph will be included in the new content block. A paragraph or section heading is the smallest fragment of content that you can include in a content block.
Hi Molly,
Great catch! I have updated the article accordingly, so hopefully it's a bit clearer now.
@Camila Ribeiro Leao Santos
Bom dia. Talvez seja porque você está usando o sandbox e não uma conta zendesk típica. Você já criou um tíquete com a equipe de suporte do Zendesk? Boa sorte.
Hello ZenDesk Team,
We would like to use images in the Content Blocks. Looks like it's not supported currently.
Any plans of adding this ability in Content Blocks?
Rather, can all the formatting options in Content Blocks be the same as the ones provided with the main Source Code Editor?
Thank you.
Hey Sanket,
I double checked with our Product Managers and it looks like images are planned to be added to content blocks some time in spring :) Keep in mind timelines are subject to change but I can confirm it's on their roadmap.
Cheers!
Hey, I just wanted to set up some content blocks, but with the current implementation, it's completely useless for any Help-Center which is doing stuff beyond the WYSIWYG Editor 😞
It's a bit disappointing that this is not considered a use-case for an Enterprise feature.
1) custom HTML is ignored
2) Source code view is divided
This means you do not see the whole source code anymore, it's depending on your mouse cursor. For example, if you add 3 content blocks in an article, you have 4 different parts of the source code.
Hope this helps you to understand more complex Help-Center implementations in combination with Content Blocks.
Cheers,
Andreas
Hi Brett Bowser,
Spring is here :)
Any news of adding image support to content blocks?
Cheers,
Botond
Please sign in to leave a comment.