[EXTENSION] OvenCMS

Hi :

I’ve install this great extension, after setup all I dont know if is possible to show the child sections of menus or I have to develop another widget to show child sections.

Thanks

Yes you can if you’ll update your current section model and components views : from here : http://tarkvaratehas.ee/uploads/ovencms/ovencms_update_children.rar

When (at the moment you can insert your children part only by hand , in code):

put this code into place you need it :

<div id="children">

<?php

 &#036;this-&gt;widget(&quot;TopMenu&quot;, array(&quot;viewFile&quot; =&gt; &quot;menuChildren&quot;, &quot;menuType&quot; =&gt; &quot;children&quot;, &quot;childParentId&quot; =&gt; 2));

?>

</div>

  • viewFile -> is children sections view file

  • menuType -> can be: children, topMenu, default : topMenu

  • childParentId -> is parent ID to search for children, you can put $_POST["section_id"] or $_GET["section_id"]

For example this block is used here http://juvinabeauty.ee (PS! look at the footer, there are static children menus with parent ID = 2 )

Hi :

when I add a news module or gallery module to some container of the application, causes this error :




PHP Error Descripción


YiiBase::require(.../protected/modules/news/components/display.php) [<a href='yiibase.require'>yiibase.require</a>]: failed to open stream: No such file or directory

The problem /protected/views/containers/display :


$this->widget("application.modules.".$value->module.".components.".$value->view, array("options" => $options));

I think is a problem caused by a wrong route of a render view.