K12 Custom Field in Media Libraries module not included in export package

Rory Aherne asked on December 10, 2024 10:01

Hi,

I've added a new field to the Media File class of the Media Library module.

But when I go to export and import the module, the new fields aren't there. I tried again and added a report to my export package to verify import/export was working correctly.

I also tried restarting the app pool.

In the cms_resource.xml.export there is no sign of the new field either

There is nothing in the event log.

Is there some other thing I'm not exporting that I should?

Thanks,

Rory

Correct Answer

Juraj Ondrus answered on December 10, 2024 10:30

Do you see the field, column added to the DB records (Media_File table)? Is it also in the CMS_Class table, for the media.file class name and check the ClassXmlSchema and ClassFormDefinition XML definitions - the custom field should be there too.
Then, how are you exporting this? The single module export probably does not cover this - you may need to export the entire site and actual media file objects (media files). Or, use content staging to transfer these changes.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Rory Aherne answered on December 10, 2024 10:46

Hi Juraj, Thanks for your help. I was trying to export it via the Kentico Site -> Export feature but see now it'll need to be a SQL execution. Cheers, Rory

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.