Theme Settings with category multi selection

In October CMS the theme folder is lacking a theme.php kind of controller. In fact there is not a single PHP file in the theme folder which you can cling on to.

The reason that this a bit of letdown is because we want to have a selection of (blog) categories from the Rainlab Blog plugin that we can select from and connect this to the theme's settings to select from.

To have a work around this is the path that we need to follow:

  1. Create a theme (we don't do that here, so we already assume a theme with the name "OurTheme")
  2. We create a plugin named "OurThemeAddons"
  3. Define the settings and connect them to the theme's settings
  4. Create a Twig function in our plugin to easily get the multi selected values from our theme's parameters
  5. Retrieve the just made settings with Twig
Last update: June 4th at 7:56pm