Welcome back to the continuation of our Sitecore Content Hub: Helpful Tips and Tricks series!
Building on our first blog, we’ll dive deeper into practical tips for optimizing your use of Content Hub.
In this post, we’ll cover topics like using HTML components effectively, adding new asset types for better filtering, making custom pages visible in the menu, and correctly setting up and leveraging Copy Profiles.
Tip #1: Smart Usage of HTML Components
HTML Components allow you to embed custom HTML, CSS, and JavaScript directly into Portal Pages.
They're great for quick enhancements without needing a full React component setup.
Common Use Cases:
- Adding banners, instructions, and static messages.
- Lightweight DOM changes based on user roles or conditions.
- Applying simple custom branding touches to portal pages.
Step-by-Step Guide:
For this blog example, I created a test page:
- Click the ➕ sign next to "Home".
- In the popup, just enter the Page Name (example: "Test").
Keep the other fields as default:
- Parent: Home
- Page type: Blank Page
- Master layout: Basic
- Click Save. Your page will be created.
- In the Main Zone, click the ➕ Add Component button.
- Search and select the HTML Component.
- Give your component a Name (example: "Intro").
- Toggle the Visible switch ON to make sure it shows on the page.
- Save the component.
- Click on the HTML Component you just added.
- Open Configuration.
- Click Source to open the HTML editor.
- Paste your HTML/JS code here.
- Click Source again to preview your changes.
- Save and Close.
Tip #2: Adding New Asset Types to Improve Filtering
Sometimes you may want to filter assets based on a custom asset type — like separating "Product Images" from "Marketing Banners" — instead of relying only on the default filters.
Creating a new Asset Type in Sitecore Content Hub helps users quickly locate specific groups of assets, especially when working with external systems or large imports.
Step-by-Step Guide:
- Fill in the Label field (e.g., "AI Asset").
- The Identifier will auto-generate based on your label.
- Review other optional fields if you need specific technical settings.
- Go to Assets → open any asset.
- Edit the metadata to assign your new Asset Type (e.g., "AI Asset") to the asset.
👉 Why It Matters:
- When assets are imported into Sitecore Content Hub (e.g., via automated integrations), being able to filter by custom asset types lets you easily verify how many and which assets have been ingested.
- It improves searchability and reporting for business users.
Tip #3: Making Custom Pages Visible in the Portal Menu
To make your custom page visible for users, you need to enable it manually through the page settings.
Step-by-Step Guide:
1. Navigate to Manage → Pages.
2. Create your own page if you haven't already.
(You can refer to Tip #1 for detailed steps on creating a page.)3. Once your page is created, search and open your page from the list.
8. Save your changes.
9. Refresh your portal pages —
Now you will see your newly created page automatically added to the main navigation menu.
Important Note:
The menu order in Sitecore Content Hub usually follows the structure that appears under the Pages section. You can easily change the order by dragging and dropping pages up or down within the Pages list. If you want your newly created page to appear first in the navigation menu, simply drag it to the top of the list, release it, and then refresh the portal. Your page will now be shown first in the menu without needing any additional menu configuration.
Tip #4: Creating and Configuring Copy Profiles
A Copy Profile defines the methods applied to each property and relation when copying an entity, determining whether a field is copied, kept, ignored, removed, overwritten, or appended.
Step-by-Step Guide to Create a Copy Profile:
1. Navigate to Admin → Copy Profiles.
2. Click the ➕ button to create a new Copy Profile.
3. In the dialog:
4. Click Save.
👉 Configuration Field:
(Optional) You can leave the Configuration field empty when creating a Copy Profile.
When you later edit the Copy Profile, the system auto-generates a configuration that lists all entity members (properties and relations) with their methods initially set to Ignore by default.
You can manually edit this configuration to change the methods (Copy, Keep, Remove, Overwrite, Append) for each member based on your copying requirements.
Step-by-Step Guide to Configure a Copy Profile:
1. After creating, find your new Copy Profile and click Edit.
Available Methods:
Method | Description |
---|---|
Copy | Copy the value from the source entity to the target entity. |
Keep | Keep the existing value in the target entity. |
Ignore | Skip this member during the copy operation. |
Remove | Remove the value of this member from the target entity. |
Overwrite | Overwrite the value of this member on the target entity with the source value. |
Append | Add the source value to existing values on the target entity (used for relations). |
👉 Example Practical Setup:
Suppose you create a Copy Profile named "Test Profile" for the entity definition M.Asset.
When you edit the Copy Profile:
- For fields like Title and Description, you can assign the method Copy.
- For fields like Approval Status, you can assign Keep.
- For system or audit fields, you can assign Ignore.
- For multi-relations like Associated Products, you can assign Append if needed.
This configuration defines exactly how each member behaves when an asset is copied.
Important Note:
- A Copy Profile does not initiate a copy operation itself. It defines how the copy should be performed when a copy is triggered.
- Only the methods Copy, Keep, Ignore, Remove, Overwrite, Append are available for configuration.
- When a Copy Profile is first created and auto-populated during editing, all members are initially set to the
Ignore
method by default. - You can manually adjust the Configuration to set the appropriate method for each member based on your copy requirements.
📋 Final Thoughts
Each of these small but important configurations can significantly enhance how users interact with your Content Hub implementation.