Module Nesting


Module nesting is a feature that allows you to use entries of one module as parent containers of another module, as if they are a part of the same tree structure.

Table of Contents
  1. About Module Nesting
  2. Example 1: Nesting Products Inside Product Categories
  3. Example 2: Nesting Product Variations Inside Products

About Module Nesting

Any Sortable or Multilevel Sortable module can be a part of a module nesting relationship.

Although Photon CMS supports creation of relationships between modules using specific field types (e.g. One to Many, Many to One, Many to Many etc.), you may find this feature useful in specific situations. Also, we've found that our clients love browsing hierarchical tree menus structured using module nesting feature.

View examples below for possible use cases.

Example 1: Nesting Products Inside Product Categories

Steps to accomplish this data structure:

1. Create the Product Categories Multilevel Sortable module

2. Create the Products module and select Product Categories module as the Parent Module


Example 2: Nesting Product Variations Inside Products

Building up on the previous example, it is possible to nest a module under a module that is already nested under another. Let's try nesting Product Variations under the Products menu.

Steps to accomplish this data structure:

1. Create the data structure as outlined in Example 1

2. Create the Product Variations module and select Products module as the Parent Module


Sign-up to stay informed about news and updates.