Brands Sidebar Menu
Create a sidebar menu which displays your brands as a text list.
Wireframe
Preparation Checklist
Before you start this tweak, it's a good idea to run through our Preparation Checklist below:
- Read through the Introduction to Neto by Maropost Document to get a better sense of how the Control Panel, Database and Front End store interact.
- Learn our recommended Simple Workflow. This makes the implementation process as easy as possible.
- Create a new Staging Theme for this tweak. This allows you to preview any changes before they are visible to live customers.
- The code snippet in this tweak doc uses Bootstrap 4, you may need to alter this code depending on what version of Bootstrap your theme is using. You can find out what version your theme is using here.
Coding Instructions
Step 1: Open the Sidebar template
The sidebar template can be found here /httpdocs/assets/themes/[THEME-NAME]/templates/cms/includes/sidebar.template.html
.
Step 2: Add the code into the template
Paste the following code into the template where you would like the element to appear. This is most commonly placed before the closing </aside>
at the bottom of the template.
<!-- Sidebar Brands Menu -->
[%content_menu content_type:'brand' sortby:'sortorder,name'%]
[%param *header%]
<div class="card d-none d-md-block mb-2">
<div class="card-header"><h3 class="h4 mb-0">Brands</h3></div>
<div class="list-group list-group-flush" role="navigation" aria-label="Brands menu">
[%/param%]
[%param *level_1%]
<div class="border-bottom">
<a class="text-dark list-group-item list-group-item-action" href="[@url@]">[@name@]</a>
</div>
[%/param%]
[%param *footer%]
</div>
</div>
[%/param%]
[%/content_menu%]
Final Result
Customising this Section
More information on how to customise this section can be found within the Content Menu Documentation.