Kentico / xperience-by-kentico-kentico-migration-tool

A customizable tool that migrates older Kentico solutions to the latest version of Xperience by Kentico.
MIT License
8 stars 5 forks source link

Reusable Field Schema not assigned to content types who inherit it #283

Closed GeorgeKaragiannakis closed 5 days ago

GeorgeKaragiannakis commented 3 weeks ago

Hello, I am migrating from Kentico 13 to XbK. I am using the latest version of both the Toolkit and XbK.

I don't know if I'm missing some config in the appsettings.json According to the migration readme, this is all I need: download1

So I'm telling the Migration Tool to create a Reusable Field Schema for my Page Type with code name "Base.PageInfo" This Page Type in Kentico 13 is getting inherited from a lot of other Page Types.

The Migration Tool indeed creates a Reusable Field Schema for the Base.PageInfo, as you can see below: download2

But that's all it does. It doesn't get assigned to the page types that inherit it. For example the Home Page should inherit that, but instead it just has a copy of the fields: download3

Also, the migration tool creates a content type of Base.PageInfo, as you can see below: download4

I don't know if that's correct. Can you please help me solving this issue? I think I'm missing something or there is a bug in the migration tool.

Thanks a lot!

tkrch commented 3 weeks ago

Hi @GeorgeKaragiannakis, this feature (CreateReusableFieldSchemaForClasses) only converts Page Type to Reusable Field Schema (and will be deprecated soon). New feature was implemented to give developers more control over how Page Types will be converted to Reusable Field Schemas (documentation is currently in progress). See samples here and sample implementations here