Skip to content

Inventory View

Callum Newman edited this page Sep 17, 2024 · 2 revisions

For ecommerce websites you can create a bespoke content view of the products that works independant of the layout and design.

If it does not exist create /admin/adminmenu.xml in the root folder, this will allow you to extend the admin menu. Give it the following contents.

<AdminMenu>

    <MenuItem name="Inventory" cmd="ByType.Product.Location" feature="Cart" display="true" icon="fa-box-open">
      <MenuItem name="Inventory by Location" cmd="ByType.Product.Location" display="true" icon="fa-box-open"/>
      <MenuItem name="Search" cmd="ByType.Product.Search" display="true" icon="fa-box-open"/>
    </MenuItem>
  </MenuItem>
</AdminMenu>

If you want this to work for other content Types replace "Product" with the content name.

You may want to create overiden admin xsl templates to display the content in a more bespoke fashion.



Clone this wiki locally