ThemePath in PageType controller

Permalink
How do you get the themepath in a page type controller?

I tried this in view():
echo View::getInstance()->getThemePath();
echo $this->view->getThemePath();


Both show null. Any ideas?

A3020
 
ramonleenders replied on at Permalink Best Answer Reply
ramonleenders
Like so?

$c = Page::getCurrentPage();
$pt = PageTheme::getByID($c->getCollectionThemeID());
echo $pt->getThemeURL();


These are the use statements you need

use Page;
use PageTheme;

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.