Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

RSS Output Without The Main Skin Wrapper Rate Topic   - - - - -

 
  • khinkson
  • Newbie
  • Members
  • Join Date: 14-Mar 12
  • 4 posts

Posted 10 April 2012 - 05:18 PM #1

Hi,
I am currently developing an Add ON to output a custom RSS feed for each vendor.

eg:
$view->assign('products', $products);
$view->assign('content_tpl', 'addons/vendor_rss_feeds/views/components/rss.tpl');

Calling the appropriate dispatch controller gets the right output but it is wrapped in site skin template. Is there a way to programmatically disable the main content wrapper or use another?

 
  • khinkson
  • Newbie
  • Members
  • Join Date: 14-Mar 12
  • 4 posts

Posted 10 April 2012 - 06:50 PM #2

If anyone is wondering I solved this by doing the following

Adding an empty.tpl in the same folder as index.tpl of the site skin.
calling: Registry::set('root_template', 'empty.tpl'); in the controller.
Oh and adding {block group="central"} to empty.tpl