nan-guo / sonata-menu-bundle Goto Github PK
View Code? Open in Web Editor NEWThis bundle provides menu management by sonata admin bundle (compatible with sonata page bundle).
License: MIT License
This bundle provides menu management by sonata admin bundle (compatible with sonata page bundle).
License: MIT License
This bundle not compatible with sonata admin bundle version 4.16
the relation entity parent is cascade remove and childen cascade on all
Sonata-Menu-Bundle/Model/MenuItem.php
Line 70 in 06d4b0f
Sonata-Menu-Bundle/Model/MenuItem.php
Line 78 in 06d4b0f
Hi !
First, great bundle, it's very useful !
You may change the service called in the construct of the class Manager/MenuManager.php to avoid issue with recents versions of Symfony :
public function __construct(EntityManager $em)
to
public function __construct(EntityManagerInterface $em)
Thanks
Hi!
First of all, great bundle!
I was trying it out in a Symfony 3.4 project with the newest Sonata Admin bundle and found some bugs related to these versions I think. Would love to create a pull request to fix it but I wonder if you need the Symfony 2.8 compatibility ? Since your bundle has just been released.
Argument 1 passed to Knp\Menu\MenuFactory::createItem() must be of the type string, null given, called in D:\projekty\wisdomfactory\sonata-default\private\vendor\knplabs\knp-menu\src\Knp\Menu\MenuItem.php on line 332
prodigious/sonata-menu-bundle 2.0.x-dev requires symfony/framework-bundle ^2.8 || ^3.0
I have problem with routes on Symfony4.
Everything configured as you've written.
Having this kind of error:
An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "admin_sonata_menu_menu_create" as such route does not exist.").
What is strange, I could notice some similar routes but not quite the same:
My router:debug returns:
admin_app_menu_list ANY ANY ANY /admin/sonata/menu/list
admin_app_menu_create ANY ANY ANY /admin/sonata/menu/create
admin_app_menu_batch ANY ANY ANY /admin/sonata/menu/batch
admin_app_menu_edit ANY ANY ANY /admin/sonata/menu/{id}/edit
admin_app_menu_delete ANY ANY ANY /admin/sonata/menu/{id}/delete
admin_app_menu_show ANY ANY ANY /admin/sonata/menu/{id}/show
admin_app_menu_export ANY ANY ANY /admin/sonata/menu/export
admin_app_menu_menuitem_list ANY ANY ANY /admin/sonata/menu/{id}/sonata/menu/menu-item/list
admin_app_menu_menuitem_create ANY ANY ANY /admin/sonata/menu/{id}/sonata/menu/menu-item/create
admin_app_menu_menuitem_batch ANY ANY ANY /admin/sonata/menu/{id}/sonata/menu/menu-item/batch
admin_app_menu_menuitem_edit ANY ANY ANY /admin/sonata/menu/{id}/sonata/menu/menu-item/{childId}/edit
admin_app_menu_menuitem_delete ANY ANY ANY /admin/sonata/menu/{id}/sonata/menu/menu-item/{childId}/delete
admin_app_menu_menuitem_show ANY ANY ANY /admin/sonata/menu/{id}/sonata/menu/menu-item/{childId}/show
admin_app_menu_menuitem_export ANY ANY ANY /admin/sonata/menu/{id}/sonata/menu/menu-item/export
admin_app_menu_menuitem_toggle ANY ANY ANY /admin/sonata/menu/{id}/sonata/menu/menu-item/{childId}/toggle
admin_app_menu_items ANY ANY ANY /admin/sonata/menu/{id}/items
admin_app_menuitem_list ANY ANY ANY /admin/sonata/menu/menu-item/list
admin_app_menuitem_create ANY ANY ANY /admin/sonata/menu/menu-item/create
admin_app_menuitem_batch ANY ANY ANY /admin/sonata/menu/menu-item/batch
admin_app_menuitem_edit ANY ANY ANY /admin/sonata/menu/menu-item/{id}/edit
admin_app_menuitem_delete ANY ANY ANY /admin/sonata/menu/menu-item/{id}/delete
admin_app_menuitem_show ANY ANY ANY /admin/sonata/menu/menu-item/{id}/show
admin_app_menuitem_export ANY ANY ANY /admin/sonata/menu/menu-item/export
admin_app_menuitem_toggle
Which is quite different regarding the error.
Hi! Is this a bug in string
Sonata-Menu-Bundle/Manager/MenuManager.php
Line 144 in 74fe08f
self::ALL_ELEMENTS - couldn't find it
Hi, are you planing to integrate Symfony 5 version support?
You have requested a non-existent service "sonata.core.slugify.cocur". Did you mean this: "sonata.page.slugify.cocur"?
I've installed this menu bundle and it works fine in admin like your snapshots. Now I want to add this menu to sonata page builder's dropdown to display it in frontend. How can I do this? Can you guide me?
FYI : I'm using symfony 4 and below sonata bundles are used in my project.
"sonata-project/admin-bundle": "^3.51",
"sonata-project/block-bundle": "^3.17",
"sonata-project/cache-bundle": "^2.4.2",
"sonata-project/datagrid-bundle": "^2.5.0",
"sonata-project/doctrine-orm-admin-bundle": "^3.10",
"sonata-project/media-bundle": "^3.20",
"sonata-project/notification-bundle": "^3.6",
"sonata-project/page-bundle": "^3.11",
"sonata-project/seo-bundle": "^2.7",
Thanks in advance!
When I install the bundle it returns this error.
Cannot autowire service "App\Admin\Menu\MenuItemAdmin": argument "$menuClas
s" of method "Prodigious\Sonata\MenuBundle\Admin\MenuItemAdmin::__construct
()" is type-hinted "string", you should configure its value explicitly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.