Welcome Guest, Not a member yet? Register   Sign In
No-CMS v 0.6.0, A free CodeIgniter based CMS Framework
#11

[eluser]phaethon[/eluser]
[quote author="goFrendiAsgard" date="1368753293"]The tags (everything with {{ }}) only works when you use $this->view();

To make new themes, I suggest you to copy existing theme (in /themes/ folder)[/quote]


The same problem remains with the existing themes.

Is there a way to use a different layout with the $this->view()?

Is there an equivalent to
Code:
$this->template->set_layout('home');
?

For instance in the neutral/view/layouts folder I create a new layout file named home.php.

This home.php is an exact copy of default.php with a twitter bootstrap hero unit below the nav-bar.

Using $this->view() can I select this home.php layout?
#12

[eluser]goFrendiAsgard[/eluser]
Well, you can by using this:

Code:
$data = array();
$config = array('layout'=>'home');
$this->view('your_module/your_view', $data, 'your_navigation_name', $config);
#13

[eluser]goFrendiAsgard[/eluser]
BTW, I've just finish build this: http://www.getnocms.com/forum/
Hopefully you can enjoy




Theme © iAndrew 2016 - Forum software by © MyBB