Single page with a separate view
Permalink
Can someone help me?
I'm seeking a way to give a single page a separate view.
I can't use the default view.php in the theme, because it is supposed to work independently in a package.
i tried this:
...but it does not work :(
Can anyone understand my problem?
I'm seeking a way to give a single page a separate view.
I can't use the default view.php in the theme, because it is supposed to work independently in a package.
i tried this:
public function view() { $v = View::getInstance(); $theme = PageTheme::getByHandle('rss'); $v->setTheme($theme); $v->render("rss"); }
...but it does not work :(
Can anyone understand my problem?
![ScottSandbakken](/files/avatars/92226.jpg)
In your theme's default.php file, grab the collection id or handle (whatever works best) and use a case statement to pull in another template file.
Thanks, but is there a way to realize that, without changing the theme?
From the package out I do not know the theme.
From the package out I do not know the theme.