peter_rossa
I'm new here

global variables for strings used in forums

Hello community

is it possible, to setup one file, in which i define variables which will have a text string as value?

for example:

variable1 = "this is the example text one";

variable2 = "this is another example text";

I got many forms in which i use descriptions. Alot of them are the same. So i thought about having just one file, where I have a list of all strings stored in seperate global variables. Because if I have changes in those, I dont have to open all form and change the string.

0 Kudos
4 Replies
thmarx
I'm new here

Hello Mr. Rossa,

you can do this by adding your texts to the language dependent labels in the global settings.

In your templates you can access this values simple with $CMS_VALUE(#global.gca("yout_variable"))$

0 Kudos

Thanks for the fast response. I just realized, that I wasnt that specific about the forms. I ment the input forms for the journalists, like when they create a new paragraph.

here is a code example of a form:

<CMS_LABEL>

          <LANGINFOS>

            <LANGINFO lang="*" label="german text"/>

            <LANGINFO lang="EN" label="english translation"/>

          </LANGINFOS>

</CMS_LABEL>

I want to replace the string in the lable attribute. I hope this was more specific now.

0 Kudos

Sorry but this is not possible.

Feel free to add a feature request.

0 Kudos

thank you very much for the help, and I will add the request.

0 Kudos