This document provides steps to add pages to OMS that do not show on the menu but have valid URLs, and a guide for pages where data is present in OMS, but still page is still not visible to OMS.
For example, the Shopify Solr Search page is useful for verifying updates through GraphQL and debugging API request errors. Since this page is not directly visible in OMS, we will add it under the relevant section in the hamburger menu.
{% hint style="Info" %}
- Please verify that the user has the necessary permissions to access the page.
- Additionally, check if a "thru date" is set on the
content assoc
orsecurity group permissions
entity, as this could be preventing the page from being visible in OMS. - If a "thru date" is applied, the permission will expire once the date is reached. To resolve this, remove the "thru date" from the
content association
orsecurity group permissions
. - If the page is still not visible after removing the "thru date," please ensure that all the below-required data is present in the database.{% endhint %}
Creating any page requires a data resource, content, content association, and permission to view the page. Lastly, it involves a security permissions group where we can define which group can view its page.
{% hint style="warning" %} Perform these steps in your local/test/dev instance first before applying changes to a client instance.{% endhint %}
Please make sure that you have access to this git repository:
Check if the page data is present in the Below files:
🔗 Reference files:
Ensure that the required objectInfo
exists in these files, as it specifies the location of external content.
Define the data resource with a unique identifier and screen URL name.
The Data Resource entity stores actual content data (text, URLs, binary files like images and PDFs).
Key Fields:
dataResourceId
→ Unique identifier for the data.dataResourceTypeId
→ Type of data (e.g., electronic text, link, image).dataTemplateTypeId
→ Template format (optional).objectInfo
→ ObjectInfo is a parameter that defines the location of external content, such as a URL pointing to an image or document. If this information is missing, the page may not be rendered correctly.
<DataResource dataResourceId="SHOPIFY_SOLR_SRCH"
dataResourceTypeId="LINK"
dataTemplateTypeId="NONE"
objectInfo="SHOPIFY_SOLR_SEARCH"/>
Defines relationships between different content items (e.g., linking a data resources to an article).
Key Fields:
contentId
→ Unique identifier for content.contentTypeId
→ Categorizes content into types (e.g., Article, Blog, Image, Document).statusId
→ Status of content (e.g., Approved, Draft).contentName
→ Name of the content.description
→ Short description.dataResourceId
→ Links to DataResource, which stores the actual data.permissionEnumId
→ Short description.
<Content contentId="SHOPIFY_SOLR_SRCH"
contentTypeId="DOCUMENT"
dataResourceId="SHOPIFY_SOLR_SRCH"
contentName="Shopify Solr Search"
permissionEnumId="SHOPIFY"/>
A Content Association defines relationships between content items, such as linking a submenu item to a main menu.
Key Fields:
contentId
→ Primary content item.contentIdTo
→ Related content item.contentAssocTypeId
→ Type of relationship (e.g., "includes", "related to").fromDate
,thruDate
→ Validity period of the association.
{% hint style="info" %}We have multiple menus; ensure you add your page to the correct menu. In this example, we are adding Shopify Solr Search to the Shopify menu.{% endhint %}
<ContentAssoc contentId="SHOPIFY_MENU"
contentIdTo="SHOPIFY_SOLR_SRCH"
mapKey="sub_menu_item"
contentAssocTypeId="SUB_CONTENT"
fromDate="2025-02-06 01:01:01.000"
sequenceNum="00"/>
Security permissions control who can view or interact with the page. If permissions are not added, users will not be able to see the page, even if it menu data exists in the OMS.
<SecurityPermission description="View Shopify Solr Search Page"
permissionId="SHOPIFY_SOLR_SEARCH"/>
- For Hotwax internal users: Add permission to
SUPER
Group - For clients: Add permission to
COMMERCE_SUPER
orMERCHANDISE_MGR
<SecurityGroupPermission fromDate="2025-02-06 06:22:36.783"
groupId="SUPER"
permissionId="SHOPIFY_SOLR_SEARCH"/>
After completing these steps, confirm that the page appears in OMS.
If the page is still not visible:
- Review the objectInfo field to ensure correct configuration.
- Check security permissions.
- Ensure the associated screen exists in OMS.
If issues persist, consult a senior developer or engineer at HotWax Commerce.