I was trying to develop one part of the code but with no luck of finding the best way to do it.
So, I have 4 pages (Home, About Us, Services, Contact Us). I want to be able to access same data on About Us, Services and Contact Us, but not in Home, while also accessing specific data to each page template.
Imagine this, theres' diffent data shown on each page, but it keeps same company message. I could easily do it right in the template, but I also need it to be editable in CMS. Any ideas how can I do it?
Yea +1 what Mo said - thats what the SiteConfig panel in 2.4 was developed for. Trying to find a link on the wiki for it but doesn't look like its been documented yet.
In 2.3 what I normally do for global data is make a field on the homepage page type then in the template use <% control Page(home) %>$GlobalMessage<% end_control %>. Reason I do it on the homepage is usually there a) is one and b) its singlar so 1 place to edit the data. Not perfect so hence why SiteConfig is here in 2.4!