Skip to content

Commit

Permalink
Merge pull request #512 from denbatte/feature/working-with-adminlists
Browse files Browse the repository at this point in the history
[Documentation] Working with admin lists follow naming conventions
  • Loading branch information
Roderik van der Veer committed Jun 30, 2015
2 parents e322cc4 + 213e461 commit 1ff7991
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Working with adminlists
# Configuring adminlists

The default adminlist allows you to add a new item to the list. It also allows you to modify or delete each item. If you want to customize your adminlist, you have to modify the adminlistConfigurator file of that adminlist.

## Adding or removing default actions

There are some simple methods build into the Kunstmaan CMS give you control over the default action buttons. You can disable them for your adminlist by overriding them in the adminlistConfigurator to false or true.

```
```PHP
canAdd()
{
return true;
Expand Down Expand Up @@ -88,11 +88,10 @@ Bulk actions are actions that can be applied to multiple adminlist items at once

To add a bulk action, add the following lines to your adminlistConfigurator `__construct` method

```
```PHP
public function __construct(EntityManager $em, AclHelper $aclHelper = null)
{
...
...
$bulkPath = array('path' => 'acmewebsitebundle_route_name', 'params' => array());
$this->addBulkAction(new SimpleBulkAction($bulkPath, "Action_name", "Action_icon"));
}
Expand All @@ -103,7 +102,7 @@ It's possible to export your adminlists. At this moment, you can export to a csv

Its also possible to define custom export fields by adding the following to your adminlistConfigurator:

```
```PHP
public function buildExportFields()
{
/**
Expand Down

0 comments on commit 1ff7991

Please sign in to comment.