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

eleohner13577
eleohner13577

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.

Eoler
Eoler

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

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