The discussion revolves around the possibility of adding variable insertion in posts. ariznaf proposes allowing users to insert system variables in posts, similar to text customization, to make editing and updating easier.
For instance, if the site name is changed, all instances of the variable would be automatically updated. This feature would be beneficial for informing users about image uploading limits, as changes to these limits could be reflected without manually updating each post.
ariznaf also suggests the possibility of defining custom variables for use in posts and config pages. simon points to a Discourse placeholder theme component, which allows users to add specific data to a post. However, ariznaf notes that this component is not exactly what they are looking for.
Falco suggests an alternative approach, where a topic with the current rules is created and linked to whenever necessary, allowing for easy updates. However, ariznaf emphasizes the benefits of being able to insert configuration variables anywhere and defining custom variables.
It would be great to be able to insert a system variable in a post (for example site_name).
If our site_name is OJODIGITAL, I had expected that when I insert in a post this text site_name would have been substituted for OJODIGITAL, in a similar way that can be done in text customization (site adjustments/customize/text)
Hello friend, in our site %{site_name} you can see ….
Yes, I am sure of that. But own code is for programmers.
I don’t know how difficult it can be to implement it or if it would make posts processing slower.
But being able make variable substitution in posts is useful for users and admins.
For example, we have several posts were we inform our users about image uploading limits.
If we change them later, we will have to look for that posts and change them to reflect new limits.
If we can use variable substitution that would be done automatically.
There are more places were it can be useful: for example I have uploaded some images as custom resources of some components, to be used in badges and groups.
They have been assigned variable names, but I cannot use them in the badge page to refer them as icon images, I have to use the complete url.
If we change the resource we will have to edit each badge and group config. If we can use variables, it would be done automatically.
Being able to define some custom variables would be interesting too (in order to use them in posts an config pages).
How this is done is most forums, is having a topic with the current rules (“Uploads Limits Topic”) and linking to it every time a user asks a question about uploads limit.
That way when the rules change, you can just update the canon topic. We do this here with the topics on howto or #howto:faq