Advanced content manager extension for Magento®
- a powerful CMS

Integrate a menu in my website

Depending of your knowledge and your needs, there are several ways to integrate a menu in your website.

1. In wysiwyg editor (page content, cms block, …)

Simply copy the follow line

{{block type="contentmanager/menu" name="main-menu"}}

Be careful, the “name” value has to match exactly your menu identifier.

2. Included from PHP or PHTML files

<?php
    echo $this->getLayout()->createBlock('contentmanager/menu', 'main-menu')->toHtml();
?>

Be careful, the “name” has to match exactly your menu identifier.
It is the second parameter of the createBlock method, called “main-menu” in our example.

3. Nicely implement it in your template using layout

Add a new block to your layout

<reference name="header">
    <block type="contentmanager/menu" name="main-menu" />
</reference>

Be careful, the “name” has to match exactly your menu identifier.
Then call it from your corresponding template (here header.phtml) by typing the following line

<?php
    echo $this->getChildHtml("main-menu");
?>

100%
OpenSource

60 days
free support

Unlimited
updates

Made for developers
and webmasters

14 days money
back guarantee

Made by Magento
certified developers