I'm guessing this isn't possible but I thought I'd ask anyway.
My add-on has a style property to disable the sidebar.
If I can also disable it in PHP I can save 2 queries.
Unfortunately I can't seem to find a way to use the SP variable in PHP.
I can of course create an option and use that (e.g. XenForo_Application::get('options')->ctaFtSidebar;) but it's a clunky solution as I then need both an option and a Style Property, or just the option but as it's related to styling/layout it doesn't really make sense.
Has anyone managed to get it working using just an SP?
My add-on has a style property to disable the sidebar.
If I can also disable it in PHP I can save 2 queries.
Unfortunately I can't seem to find a way to use the SP variable in PHP.
I can of course create an option and use that (e.g. XenForo_Application::get('options')->ctaFtSidebar;) but it's a clunky solution as I then need both an option and a Style Property, or just the option but as it's related to styling/layout it doesn't really make sense.
Has anyone managed to get it working using just an SP?
Last edited: