Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To manage the groups within the catalog, naviagate to

Panel

Login Main Menu Catalog [choose a host] Manage Catalog Groups





The group list will show you the hierarchy of your entire site including the name of each group, the path to the group, the group template name, and the item template name. Below is a list of the groups from the simple Hello World example in chapter 2.



From this list we can see there is only one group "Hello World" that is our root group and it is using the group template "template_group" and the item template "template_item". Continuing on the theme of the electronics from the Hello World example we would want to create a hierarchy for our site that looks more like a modern e-commerce website:

...

In order to complete the example hierarchy of this chapter and test it out the "template_group" will need some modification to support navigation to the child groups and back up to the parent group. Click on the "template_group" link in the group list. This is a shortcut to the template editor. The updated template is shown below:

Code Block
languagexml
themeDJangolanguagexml
linenumberstrue
$group.getTitle()<br>

You are currently at ${group.getPath()}<br>

#if ($group.getChildren().size() > 0)
  The following subcategories are available:<br>
  #foreach ($child in $group.getChildren()) 
    <a href="${baseUrl}${child.getPath()}">${child.getTitle()}</a><br>
  #end
#end

#if ($group.getItems().size() > 0)
  The following items are available:<br>

  #foreach ($item in $group.getItems())
    <a href="${baseUrl}${group.getPath()}${item.getMerchantItemID()}.html">${item.getDescription()}</a><br>
  #end
#end

...