Search the FirstSpirit Knowledge Base
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.
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"))$
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.
Sorry but this is not possible.
Feel free to add a feature request.
thank you very much for the help, and I will add the request.