You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
symfony/intl v4.4.7 A PHP replacement layer for the C intl extension that includes additional data from the ICU library.
symfony/mailer v4.4.7 Symfony Mailer Component
symfony/maker-bundle v1.15.1 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.
symfony/mime v4.4.7 A library to manipulate MIME messages
basically everything works fine - but the menu from sonata were the datagrid filters are located (aka navbar) is not showing up. in that menu you can usually switch the view modes (grid, list, tree) and set up some filters. it worked at the start but once i tried the tree view for the first time, everything was gone and did not show up again.
so what we basically do is: src/Admin/CategoryAdmin:
namespace App\Admin;
use RedCode\TreeBundle\Admin\AbstractTreeAdmin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Symfony\Component\Form\Extension\Core\Type\TextType;
final class CategoryAdmin extends AbstractTreeAdmin
{
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper->add('name', TextType::class);
}
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper->add('name');
$datagridMapper->add('product_id');
}
protected function configureListFields(ListMapper $listMapper)
{
$listMapper->addIdentifier('name');
}
}
The text was updated successfully, but these errors were encountered:
we work on a projekt with symfony 4 and sonata. we are using the SonataAdminTreeBundle to manage our Categories.
symfony packages:
sonata packages:
basically everything works fine - but the menu from sonata were the datagrid filters are located (aka navbar) is not showing up. in that menu you can usually switch the view modes (grid, list, tree) and set up some filters. it worked at the start but once i tried the tree view for the first time, everything was gone and did not show up again.
so what we basically do is: src/Admin/CategoryAdmin:
The text was updated successfully, but these errors were encountered: