How do I differentiate a text string by category/board?
In our knowledgebase area, we would like the "New Message" button to display "New Article". The text key for this is...
menubar.button.new_message
However, when this is changed, it also affects the forums area where we would like it to say "New Message".
Is there a way to have this button change text based on the board? If not, is there freemarker code I could use to create a custom button that behaves the same way?
As Vishwajeet mentioned, the following does work...
menubar.button.new_message = New ${general.Message}
However, if you do a search for the the text key general.Message, you'll see how the magic happens. Using the @place extension you can specify strings based on location.
menubar.button.new_message = New Post menubar.button.new_message@place:tkb = Create New Document
Other location values include...
@place:tkb @place:board @place:blog @place:idea @place:qanda //question @place:support @place:contest
Note you can also use the @message extension for specific types of messages and string them with the @place extension
Examples...
general.Message@place:blog@message:root = ${general.Message} general.Message@place:blog@message:reply = ${general.Comment}