Custom Sections
Custom sections are areas of the portal home page that can be personalized to display specific content, like What's New or Featured Videos. Custom sections provide flexibility in presenting information that needs to be highlighted to the audience.
Custom sections can be used to introduce more contextual information about your Heretto Portal, like:
-
Purpose of the portal
-
Videos
Popular articles
-
Company description
Custom sections are rendered below navigational tiles and above the footer of your home page.
There are no requirements related to the placement of custom sections. If they do not have to be included in the navigation, you can put them anywhere in the sitemap. However, we recommend putting them either at the beginning or at the end of your sitemap to keep its structure neat and tidy.
Add Custom Sections
You can add your own sections to the home page by using the topicgroup
element.
By applying the outputclass
attribute to DITA elements in the topics within the topicgroup
, you can style them freely with the CSS code. Each outputclass
value is rendered as an HTML class that can be used as a CSS selector. To learn more about Heretto Portal styling, refer to Customize Heretto Portal Styling.
Go to the home page of your Heretto Portal and refresh it to see the newly created section.
Localize Custom Sections
You can add new sections to your Heretto Portal home page. Section titles are saved as strings that need to be localized. This process also produces a valid structure even if you do not localize your content into multiple languages.
To learn more about adding new sections to the home page, refer to Add Custom Sections.
To explore general rules for strings localization in Heretto Portal, refer to Internationalized Strings Configuration Reference.
Go to the home page of your Heretto Portal and refresh it. You should now be able to see the updated title of the section in a selected language.