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:
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?

Asseco
 
ScottSandbakken replied on at Permalink Reply
ScottSandbakken
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.

$c = Page::getCurrentPage();
switch ($c->getCollectionId()) {
   case 123:
      include('custom_template.php');
      break;
   default:
      include('default2.php');
}
Asseco replied on at Permalink Reply
Asseco
Thanks, but is there a way to realize that, without changing the theme?
From the package out I do not know the theme.