Advanced Search
Search Results
418 total results found
How do I add lenses to my custom report?
You need to create a class for your lens that extends Aero\Admin\Reports\ReportLensand implements the required public value function. The value function will return a string used to display your lens. <?php namespace Acme\MyModule\Reports\Lenses; use Aero\Admi...
How do I add a table to my custom report?
You need to create a class for your table that extends Aero\Admin\Reports\ReportTableand implements the required public columns function. This columns function will be used to return an array containing your tables columns. <?php namespace Acme\MyModule\Report...
How do I add exporters to my custom report?
To add an exporter to your report you need to ensure the report uses the Aero\Admin\Reports\Traits\CanExporttrait and that the exporter class is in the reports protected static $exports array. By default Aero provides a CSV, XML, and JSON exporter. <?php names...
How do I extend existing reports?
Reports can be extended using a pipeline from your modules service providers setup method or your projects app service providers boot method. You can read more about pipelines here (link). Adding a Column To add columns to a table you can use the addColumn, ad...
How do I add admin filters to my custom report?
You need to create an Admin Filter class as shown in the article "How do I create a custom report? To register your newly created admin filter with your report you need to ensure the report uses the Aero\Admin\Reports\Traits\HasFilterstrait and that your admin...
Admin Slots
Admin Slots
What are the available backend admin slots?
For more information about using backend admin slots please see our article "How do I inject a view into a backend admin slot? The following slots can be injected into. app- scripts- login.header- login.form- login.footer- login.footer- catalog.product.n...
How do I inject a view into a backend admin slot?
Any view you wish to inject into a slot should be defined in a Service Provider. If the code is unique to a particular store it could be placed in the boot method of the AppServiceProvider. If it is to be included as part of a module, then it can be added in t...
Admin Transformers
Admin Transformers
What are the available transformers?
The following classes are in the Aero\Admin\Transformersnamespace. Class Description AttributeTransformer This transformer is used in the ProductTransformer to transform the product's attribute groups. BaseVariantTransformer This transformer is used to generat...
How do I add custom data to a transformer?
To add custom data you need to use the static **add()**method on the relevant transformer. This method expects a closure that will return an array of the field(s) to merge into the transformers array. The closure will be passed an array of data that you can us...
Admin Vue
Admin Vue
How do I add custom clips to the redactor editor
Clips is a plugin for the Redactor editor that allows you to create a list of frequently used code to be used in the editor. In the following example we will add a label clip that will allow users to use a label in the Redactor editor that looks like this: You...
How do I use Vue in the admin?
When in an admin's Blade view file you can use any Vue directive (such as v-for, v-if, @clicketc). Putting Vue into Dev Mode Putting Vue into dev mode allows you to use the Vue dev tools. You can put the Admin Vue into dev mode by putting this code snippet ...
How do I add a custom Vue component to the admin?
This repo (https://github.com/aerocargo/admin-example-vue You need to add the assetLinksfunction to your modules service provider so that your modules assets are publicly linkable. An example module service provider can be found here in the repo (https://gith...
Blocks
Blocks
How do I import content blocks?
In order to export content blocks, we will require an Aero package. To install this package, type the following command in the project root directory: composer require aerocargo/blocks-import-export After installing the package, we can navigate to the adminthe...
How do I export content blocks?
In order to export content blocks, we require an Aero package. To install this package, type the following command in the project root directory: composer require aerocargo/blocks-import-export After the package has been installed successfully, we can navigate...