This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Jakoubek
Jakoubek

Maybe I'm blind or on a completely misleading path:

I was thinking about how to access values from the backend settings and inject them into layouts. One example could be an overall site title that could be put into a layout's title meta tag (I know: the SEO Extension already accomplishes this) and/or a H1 on the homepage.

There is Laravel's Config::get but only to retrieve config values from files. And Plugins often have their own classes to read and write (their own!) settings.

My question is: is there a general API to access those settings?

dshoreman
dshoreman

If you want to set something like a website title, you'd probably be better off using the theme settings.

Check the docs for Developing Themes for more information.

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.