-
-
Notifications
You must be signed in to change notification settings - Fork 43
Description
This Feature is About
[x] admin experience UI
[x] JS development
[x] Content Types or data management
Feature request
Is your feature request related to a problem? Please describe.
I migrate data from legacy ASP.NET sites into DNN/2sxc using custom WebApi controllers. These controllers read the legacy database and populate new 2sxc Entities using:
App.Data.Create(contentTypeName, values)
This works well for unilingual sites.
However, on multilingual sites (e.g., en-CA as the primary language with fr-CA as a secondary language), there is currently no way to create or update values for the non-primary languages.
In other words, App.Data.Create() only populates the primary-language fields, and there is no API to set the fr-CA variants during creation or update. This makes automated migration impossible for multilingual sites.
Describe the solution you'd like
I would like an API that allows programmatic creation and updating of multilingual entity values. Ideally, this could be an overload of App.Data.Create() and App.Data.Update() that accepts a dictionary of values per language. There may be better approaches as my suggestion could result in a breaking change to the API.
Describe alternatives you've considered
Since no programmatic solution currently exists, I’ve been exporting the legacy SQL data to XML and importing it into 2sxc. This works for smaller datasets, but fails once the dataset grows beyond roughly 2,000 records. I’ll provide the details of this limitation in a separate GitHub issue
Additional context
None.