Try our conversational search powered by Generative AI!

UIHint.CatalogNode results in blank properties window in CMS

Vote:
 

Hi,

In a commerce website I'm using a content reference on my "HomePage" content type that to links to a content node in the commerce catalog.

The property looks like this:

[AllowedTypes(typeof(ChannelNode))]
[UIHint(UIHint.CatalogNode)]
[Display(Name = "Product Catalog Root Node", GroupName = Global.GroupNames.SiteSettings, Order = 151)]
public virtual ContentReference ProductCatalogRootLink { get; set; }

This property was working perfectly for version cms 10 and commerce 11, but after I upgraded the solution to version cms 11.9.0 and Commerce 12.3.1.0 it stopped working. I noticed the pages that use this content type HomePage are no longer rendering the "All Properies" view in episerver CMS (Editing mode). It is left blank. The rendering of the page on the frontend is still works as it was.

There is no error in the logs that helps finding a solution to this issue, other than the log trace than i added below:

Only when I remove the UIHintAttribute from the property the cms part starts working again and I am able to edit the properties. But obviously, I can't select a catalog content node for my field because it uses the default cms content selector to render the control.

So for some reason the [UIHint(UIHint.CatalogNode)] attribute is preventing the cms editor to render the all properties view in CMS editing mode.

Im not entirely sure, but I think it has something to do with the packaging.UI package and/or the virtualPath settings..  but then again they did nog change after the upgrade...

Also the upgrade of the packages was done correctly as fas as i can see and the database update was performed successfully.

Please help,

thnx!

Pierre

LOGS:

#194433
Edited, Jun 21, 2018 9:50
Vote:
 

Does it work if you have something else, AllContent or Entry, instead of CatalogNode UIHint?

#194440
Jun 21, 2018 10:52
Vote:
 

Hi Quan,

Thanks for your reply,

No, I have the same issue if I use any other catalog related UIHint. e.g. I tried the UIHint.CatalogEntry and CatalogContent and had the same issue. I did not try the AllCOntent, but just did. this seems to work! so AllContent does solve the issue, but still, CatalogNode should also work right?

Just thought of something els. the code also implements a custom router (HierarchicalCatalogPartialRouter) could this be interfering with the UIHints?

cheers,

Pierre

#194443
Edited, Jun 21, 2018 11:27
Vote:
 

AllContent should display all cms content AND catalog content so you probably see it, but it might not be working properly. I'll check in our default installation to see if I can reproduce the problem. If I can then we will fix it, but if not then you would have to contact our developer support service for further assistance :) 

#194444
Jun 21, 2018 11:30
Vote:
 
<p>Thnx.&nbsp;</p> <p></p> <p>Pierre</p>
#194445
Jun 21, 2018 11:32
Vote:
 

Works fine for me 

#194446
Jun 21, 2018 11:37
Vote:
 

I didn't expect anything else. :)

It was working before the upgrade for me as well. I expect it is some config.. or code that is interfering with the UIHint. I'll investigate further and update this thread if I find a cause.

thnx Quan! for your help.

cheers,

Pierre

#194451
Jun 21, 2018 13:52
Vote:
 

Was there any resolution on this? I'm seeing the same issue when trying to use [UIHint(EPiserver.Commerce.UIHint.CatalogContent)]

#216531
Feb 07, 2020 18:18
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.