This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I can't seem to find documentation for this, so I'm assuming it doesn't exist, which is a shame.
Is there a way to have a global variable for the static pages plugin? Ideally I'd like to have a client be able to control elements that affect all of the pages with a flick of a switch or some other functionality.
eleohner13577 said: Is there a way to have a global variable for the static pages plugin? Ideally I'd like to have a client be able to control elements that affect all of the pages with a flick of a switch or some other functionality.
Write a plugin with settings model, then write functionality that depends on backend user supplied setting values: https://octobercms.com/docs/plugin/settings#database-settings
1-2 of 2