I've been looking at some work related to Content Types in Content Hub recently, and while this is a bit like Data Templates in the good old DXP, I had a couple of things I had to spend time researching as part of this work. So maybe if you're looking at using the CMP features, this might help you understand a couple of quirks too...
url copied!
If you create some content from a Content Type, one of the things you can do is associate images with it. But if you upload a new image here (rather than picking an existing one) then after you've done that you won't see that image in any of the standard asset-view pages. So where did it go?
A good debug approach when you're not sure about the properties of a specific Entity and how they might affect searches is to go and look at the Entities view page under the "Manage" cog in the title bar. Using that to look at all the entities of type
M.Asset
will show normal assets, as well as ones which have been added direct to content:
They have been stored "the usual way" even if they're not visible. If you drill down to one of these content assets via the "details" link (left here), and compare that with a normal asset (right side of image below) the key difference is what the "Content Repository" field says:
So an asset added directly to a content page gets put in the 'Content' repository not the 'Standard' one which normal assets use.
Why does that mean we can't see them?
The place to look into that is the Page definition for the "Assets" page. That defines all the controls used on screen and will include the default settings for the search which is returning the assets. That can be found under the "Manage" cog again and then selecting "Pages" and finding the "Assets" page in the left column. And that contains a "search" component in the main zone of the page:
That search component is greyed out by default however, and in that state it's not clickable. That's because it's inheriting its settings, and you need to click the little "person" icon on the right to allow custom settings. Once that's done it will stop being greyed out and you can click on the "search" title of the component to get to its settings:
And that shows why we only see one type of Asset: The search includes a filter which says "only show assets whose 'Content Repository' field is set to 'Standard'" - which ties in with what we saw above.
So if you want to be able to see these other assets, you can make use of this filter...
url copied!
You probably don't want to change the behaviour of the main assets page - that might confuse users? So creating a new page which shows only these content assets seems sensible. The settings for a page can be complicated though, so it would be much easier to copy the existing one that set up something new.
But where's the copy option for a page? Clicking the ellipsis next to an existing page doesn't show one?
After a bit of frustrated digging in the docs, I realise there isn't a direct copy option. If you need to duplicate a page, you have to make it into a template and create a new page with that. To achieve that you first need to switch to the "Info" tab for the page and edit the general section to turn on "Is Template":
And then when you create a new page you can select "From Template" and pick the one you've enabled:
Simple when you know how...
↑ Back to top