Dynamic text on sites and portals

This feature is available in version 3.2 and up.

Text variables make it possible for the text on the sites and pages to adapt to the context or user watching them. Aside from the default text variables, you can add custom ones yourself.

Text variable

A text variable is a placeholder that picks up its surroundings. In this example below the Primary text field is set to $categoryname Center and when the layout is saved this first part is replaced with the name of the current category.

 

The text variables are set by Refined, and cannot be changed.

Custom text variable

A custom text is one that you set up in your system. This means that anything can be added and dynamically show up on your layouts, categories, modules, announcement banners, and more. To sum it up, anywhere you as an admin can input text that is shown to users, you can place a custom text variable.

Example

As the Primary text for the Search Highlight, we have $welcometo$ the Hub, this means that when this layout is displayed, the full Primary text will be the content of $welcometo$ and “the Hub”.

 

 

The content of any custom text variable is set by an admin in Refined Administration > Languages > Dictionary.

This feature is tightly working with the Language feature that you can find here: https://refined.atlassian.net/wiki/pages/createpage.action?spaceKey=JDC&title=Working%20with%20portal%20languages%20and%20translations%20%28from%203.2%29 .

When to use Text Variables

We recommend using text variables in the following situations:

  • when you want one place to update wordings and phrases used in many places

  • when you are running a site that has several languages in use

Step by step

Let’s walk through what you need to do.

 

Languages

Perhaps you’ve noticed in some of the screenshots that there is an option to add in languages - yes there is! This newly introduced feature (version 3.2) allows you to display a language switcher on your site, and tailor what the user sees.

A tutorial and walkthrough can be found here: https://refined.atlassian.net/wiki/pages/createpage.action?spaceKey=JDC&title=Working%20with%20portal%20languages%20and%20translations%20%28from%203.2%29