Is it possible to specify markets for NodeContent?

Vote:
 

Hi,

We are currently implementing custom markets.
Some products only apply on a specific market. We do this using productContent.MarketFilter, which works great.

However we would like to apply markets to categories too.

Does something similar exists for nodecontent?

Thanks in advance,
Brecht Vanneste

#201509
Feb 21, 2019 9:30
Vote:
 

Technically you can just add this property to your NodeContent types

        [Display(GroupName = SystemTabNames.PageHeader, Order = 400)]
        [UIHint(SystemUiHint.MarketsSelector)]
        public virtual ItemCollection<string> MarketFilter { get; set; }

But of course you will be responsible for any filters work. Some places can be tricky to override the default behavior (they use the EntryContentBase.MarketFilter internally)

#201513
Feb 21, 2019 9:57
* 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.