hi bruno,
> But now I need a second menu for footer. The links are things like:
> "About Us", "Contact Us" and so on...
>
> What is the best strategy to do it?
what you want to do define additional route roots:
http://symfony.com/doc/master/cmf/reference/configuration/routing.html#phpcr
for example /cms/simple/main and /cms/simple/bottom.
this will give you urls without the prefix. note that obviously there
can only be one content at the same url, so the order matters, and the
first root has precedence over the second (e.g. /cms/simple/test will
win over /cms/bottom/test when you call
http://example.com/test)
on the simplecms bundle, the *basepath* needs to be the common root of
both, in my example /cms/simple (which is the default).
you can now add to both trees in the admin (you could also
/cms/whatever/something but that would not be used in routing)
for generating the menu, the name directly under basepath is what is
used as name of the menu. so knp_menu_render('main') and 'bottom' should
work as expected.
cheers,david
ps: just to confuse you (or maybe bring some deeper understanding) there
is an alternative option. simplecms unifies url, menu entry and content
organization in one single tree.
instead of doing the above things, you can also build a menu that just
references the content documents. you would configure the
cmf_menu.persistence.phpcr.content_basepath to /cms/simple to be able to
select from the simple cms content. (and not configure anything else
about route roots and such) then you create all your content directly
under /cms/simple. then you go to the menu admin and create the bottom
menu and link the menu-content to the content items you need. that way,
content can be in the main tree (and also occur in the main menu) and
additionally be in the footer.