Skip to content

Conversation

mrbazzan
Copy link
Collaborator

@mrbazzan mrbazzan commented Sep 4, 2025

JSON data from this page

@mrbazzan
Copy link
Collaborator Author

mrbazzan commented Sep 4, 2025

@fsbraun
On data import from blog.json, the Picture/Image plugin in the TextPlugin
does not render (It appears in the structure board but not in the actual plugin).

PS: The one that is encoded as <cms-plugin alt=\"Picture / Image - Image (274)\" title=\"Picture / Image - Image (274)\" id=\"274\"></cms-plugin>

@fsbraun
Copy link
Member

fsbraun commented Sep 4, 2025

@mrbazzan Interesting! Indeed, for text plugins the id of the child plugin also has to be changed within the text'S body field (i.e., the 274 be replaced by the actual pk of the child plugin everywhere inside <cms-plugin></cms-plugin>. Would that need to be done here or in djangocms-transfer?

Could be a task for regex.

@mrbazzan
Copy link
Collaborator Author

mrbazzan commented Sep 4, 2025

@fsbraun
That would mean finding the new pk; I'd like to think that's something djangocms-transfer should do?

Could this be done with the import and export processing setting in djangocms-transfer?

@fsbraun
Copy link
Member

fsbraun commented Sep 4, 2025

@mrbazzan Probably this needs to be done at the import - where it is already done for other pk references, e.g., plugin parents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants