Forum Discussion

Sahana's avatar
Sahana
Adept
6 years ago

Text keys with values depending on the page ID

Hey,

I want to fetch the node id/title of the page and set the text key for "form.SearchForm.field.messageSearchField.placeholder" (Search form).

I basically want each page to show "Search ${page title} Community" using the text key. How do I use Freemarker code to set the text key value?

1 Reply

  • Hi Sahana 

    You can not add new test-keys in text-editor using dynamic titles.

    This can only be possible if there is per-existing text-keys and values for each, If you already know the id of  each message, then only you can add text-keys for them.

    Using title will be difficult for you, as title can contain spaces and text-keys will not able to read this.