Sonata Navigation bundle to add custom menu item

1,143 views
Skip to first unread message

Nicolas Bastien

unread,
Oct 31, 2013, 10:59:11 AM10/31/13
to sonata...@googlegroups.com
Hi,

My company did a lot of SonataAdmin backends and we developed an internal admin bundle based on sonata.

Today we decided to release some parts of it to the community.

So the first one is a bundle called : PrestaSonataNavigationBundle it adds configuration for sonata admin main navigation.

you can :

- add custom menu item which are not admin crud
- specify roles for security
- translate menu labels + add a description


We have an online demo there : http://sandbox.prestacms.com/admin/dashboard


I haven't work on the documentation already but if some are interested in it, let me know and I'll try to do it soon.

I would love to have some feedback about it, do you think it would be useful for your needs ?

I have another bundle which integrate Gedmo translation with sonata interface, if some of you are interested in it I can make it open source too.
Just let me know......

Thanks

Nico






 

Cassiano Tartari

unread,
Oct 31, 2013, 11:42:25 AM10/31/13
to sonata-users
Seems to be very interesting, I'll take a look today.

Many thanks!

Cassiano Valle Tartari
MSc. Computer Engineer

Tel: +55.48.84474818
Email: fal...@cassianotartari.eng.br
Site: http://www.cassianotartari.eng.br

QR Code


--
You received this message because you are subscribed to the Google Groups "sonata-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonata-users...@googlegroups.com.
To post to this group, send email to sonata...@googlegroups.com.
Visit this group at http://groups.google.com/group/sonata-users.
For more options, visit https://groups.google.com/groups/opt_out.

Cassiano Tartari

unread,
Nov 20, 2013, 12:22:21 PM11/20/13
to sonata-users
Hello, I was trying to install the bundle but there are no docs http://prestaconcept.github.io/presta-sonata-navigation/ it's a 404 page

I've just add the line in the composer.json and AppKernel.php. When I try to clean the cache:

  [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]                                                                                                                                 
  You have requested a non-existent parameter "None of the managerParameters (cmf_content.manager_name, doctrine_phpcr.odm.default_document_manager) resulted in a valid name to be used in the mapping pass".

Cassiano Valle Tartari
MSc. Computer Engineer

Tel: +55.48.84474818
Email: fal...@cassianotartari.eng.br
Site: http://www.cassianotartari.eng.br

QR Code


Nicolas Bastien

unread,
Nov 21, 2013, 5:43:05 PM11/21/13
to sonata...@googlegroups.com

Hi, 

I agree for the documentation i was waiting that somebody ask for it ;-)

This error is strange as it seams to be a cmf one.

I have set up a base project to begin with my CMS you can have a working example there : 

https://github.com/prestaconcept/symfony-prestacms

But for the navigation, installation is just adding the bundle + add the menu in the main sonata layout

After that you just have to add your configuration to create new menu entries and point to your custom actions.

And finish by adding translation file

I'm at PHP forum in paris now so I can check that when I'm back.

Let you now when documentation is ready ;-)

Nico





You received this message because you are subscribed to a topic in the Google Groups "sonata-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonata-users/Ec9VIXPZzb4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonata-users...@googlegroups.com.

Aman Varshney

unread,
Nov 22, 2013, 1:03:21 AM11/22/13
to sonata...@googlegroups.com
Hello,

i am thinking of using your PrestaSonataNavigationBundle. I just want to know can we create sub-menu using your bundle and any docs is available for implementation.

Nicolas Bastien

unread,
Nov 22, 2013, 2:08:18 AM11/22/13
to sonata...@googlegroups.com

Yes you can check out prestasonataadminextended bundle tout have an example of configuration.

We have a Google group prestacms-dev if you have question on our bundle or want to know about new features

Nico

--

Cassiano Tartari

unread,
Nov 22, 2013, 5:10:17 AM11/22/13
to sonata-users
Thanks for the response.

Maybe the error comes from a dependency of your bundle with "Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle". I'm running SonataAdminBundle only, without the CMS part, from a system that I'm developing, "the backend will be the frontend".

I will download this project to see how it works.

Thanks again.

Cassiano Valle Tartari
MSc. Computer Engineer

Tel: +55.48.84474818
Email: fal...@cassianotartari.eng.br
Site: http://www.cassianotartari.eng.br

QR Code


Nicolas Bastien

unread,
Nov 25, 2013, 10:54:26 AM11/25/13
to sonata...@googlegroups.com
Hi, I have no idea why you get this error as Navigation bundle doesn't have deps on CMF !

I wrote a documentation http://prestaconcept.github.io/presta-sonata-navigation/ maybe you can check it.

If there is some mistake feel free to PR.

If you have some question about this bundle please use our google group (there is a link in the doc ;-))

Tell me if your problem persist, just open an issue on github.

Nico

BaineBlade

unread,
May 6, 2014, 5:01:19 PM5/6/14
to sonata...@googlegroups.com
I just spent hours trying to figure this error out myself, and as this post is the only place on the internet I found it referenced I thought I'd document what the issue was here:

This error is a result of DoctrinePHPCR being improperly configured in config.yml. The following configuration settings resolved this error for me:

doctrine_phpcr:
    session:
        backend:
            type: doctrinedbal
        workspace: default
        username: admin
        password: admin
    odm:
        auto_mapping: true

scott molinari

unread,
May 10, 2014, 9:52:51 AM5/10/14
to sonata...@googlegroups.com
Does this bundle work with Doctrine ODM?

Scott

Nicolas Bastien

unread,
May 10, 2014, 5:55:01 PM5/10/14
to sonata...@googlegroups.com

Hi, yes as you define menus with there route it will work. We use it with Presta cms which work with phpcr.

Nicolas

Le 10 mai 2014 15:52, "scott molinari" <scottam...@googlemail.com> a écrit :
Does this bundle work with Doctrine ODM?

Scott

--
You received this message because you are subscribed to a topic in the Google Groups "sonata-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonata-users/Ec9VIXPZzb4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonata-users...@googlegroups.com.

To post to this group, send email to sonata...@googlegroups.com.
Visit this group at http://groups.google.com/group/sonata-users.
For more options, visit https://groups.google.com/d/optout.

scott molinari

unread,
May 11, 2014, 12:25:05 AM5/11/14
to sonata...@googlegroups.com
I meant the MongoDB ODM. 

Scott

Nicolas Bastien

unread,
May 11, 2014, 4:50:26 AM5/11/14
to sonata...@googlegroups.com

I know and the answer is yes.

Nicolas

Le 11 mai 2014 06:25, "scott molinari" <scottam...@googlemail.com> a écrit :
I meant the MongoDB ODM. 

Scott

--

scott molinari

unread,
May 12, 2014, 12:46:46 AM5/12/14
to sonata...@googlegroups.com
Thanks.

Scott
Reply all
Reply to author
Forward
0 new messages