Geta / geta-optimizely-categories

An alternative to Optimizely's default category functionality, where categories are instead stored as localizable IContent.
5 stars 10 forks source link

Configuring Geta.Optimizely.Categories 'Select Categories' tree #35

Open geonetric-matt opened 4 months ago

geonetric-matt commented 4 months ago

Greetings:

I'm new to Geta.Optimizely.Categories and to Optimizely CMS and I have built a Categories prototype with using the Alloy demo site. Everything seems to be working well and I can control my categories in the way that's needed except for one case...

In my 'Select Categories' tree, I need to only display the parent-child category types for a given category and only child types should be selectable(allowed). I've tried the following combinations of appsettings and AllowedType attribution but, at best, have only been able to meet 2 of my 3 goals.

I'm hoping that you can provide some guidance about whether all 3 goals can be achieved and, if so, how to go about achieving it -or- if this is a new capability that should be added to the App?

Regards, Matt

Goals:

In Select Categories tree:

  1. Display ProductCat1(parent) as RestrictedType
  2. Display ProductChildCat1 & ProductChildCat2 as AllowedTypes
  3. Do not display any other parent types such as NewsCat1 and SearchCat1

image

Try 1:

Config:

Result: In Select Categories tree

  1. Fail-ProductCat1(parent) displays as an AllowedType
  2. Pass-ProductChildCat1 & ProductChildCat2 display as AllowedTypes
  3. Pass-Do not display any other parent types such as NewsCat1 and SearchCat1

image

Try 2:

Config:

Result: In Select Categories tree -

  1. Fail-ProductCat1(parent) does not display.
  2. Fail-ProductChildCat1 & ProductChildCat2 do not display.
  3. Pass-Do not display any other parent types such as NewsCat1 and SearchCat1

image

Try 3:

Config:

Result: In Select Categories tree -

  1. Pass-Display ProductCat1(parent) as RestrictedType
  2. Pass-Display ProductChildCat1 & ProductChildCat2 as AllowedTypes
  3. Fail-Do not display any other parent types such as NewsCat1 and SearchCat1

image