I want to add SITENAME to 5.7.+ theme

I don't see any of the old code snippets working in Concrete.5.7.+ for putting the Sitename into a theme header. The new default theme elemental is using a global_area but if I go into the system settings and change my sitename it does not reflect in the global area. How can I use the system variable in 5.7 in my theme header?

I have tried the old code in the old theme's like yogurt etc. and they are no longer working.

View Replies: View Best Answer
MrKDilkington replied on at Permalink Best Answer Reply
Hi damery,

Are you looking for the site name attribute? If so, you can use this.
echo Config::get('concrete.site');
damery replied on at Permalink Reply
Wow, thanks....I don't remember that being so difficult. Has that always worked? The other methods just don't work anymore...this is absolutely perfect.
Must be part of the new core code changes...
I was using netbeans code completion searching for the array or variable...just too many to find this....thank you thank you!
MrKDilkington replied on at Permalink Reply
I can't say for sure, but I think it is new.

No problem at all.

In addition to my own notes and the forum, this site has a lot of new 5.7 code snippets.

It is maintained by pvernaglia.
damery replied on at Permalink Reply
thank you, I have a new bookmark!