I’m new member in Magento community and it’s my first experience with Magento (1.6)
I’m trying to make a landing page module. I catch in my URL a parameter with a regex and in terms of it, I catch the informations on the cms page (the layout, the content ...).
For example, I have this URL : http://www.website.com/landing/keyword.html, my parameter will be “keyword”.
I made a Router where I redirect on my controller with my parameter (keyword), and inside of it, I’m trying to load my layout.
For example, in my admin page, I defined my layout as “One column”, then I trying to set this layout in my controller response. (page/1-column.phtml)
$foo = $this->getLayout()->createBlock('cms/page')->setTemplate($page->getRootTemplate())->setPage($page);
$this->getLayout()->getBlock('content')->append( $foo );
I have the content of the CMS page but not my template with my CSS/JS ..
I don’t know if I’m understandable and I’m sorry for that (and my bad english). If you need more informations I’ll glady give them.