...
Controllers in Admin Panel
There are actions for: new, edit, delete and save Brand, for displaying grid of Brands
And also for upload Brand icon and additional icon
...
Code Block |
---|
public function processUpload($imageData = null) { if($imageData) { $fileAttributes = $this->prepareUploadBase64Encoded($imageData); } else { $fileAttributes = $this->prepareUploadImage(); } try { ..... $result = $this->uploader->save($destinationFolder, $fileAttributes['name']); ..... } ..... } |
Observer
There is observer add_brand_group_identifier_to_body
which listens to event controller_front_send_response_before
vendor/creativestyle/magesuite-brand-management/etc/frontend/events.xml:2
Code Block |
---|
<event name="controller_front_send_response_before">
<observer name="add_brand_group_identifier_to_body" instance="MageSuite\BrandManagement\Observer\AddBrandGroupIdentifierToBody" shared="false" />
</event> |
add can add brand group identifier to body tag to class param, for example my_brand
<body data-container="body" id="html-body" class="brands-index-index my_brand page-layout-2columns-left sale-bar">
Frontend
The brand overview page is placed under /brands
url (brands-index-all
layout). It consists of linked brand icons and an alphabetical list with links to specific brand subpages.
...