Update topics on checkout

Hi,

I'm on Tridion Doc 14 SP4. I wanted to use the XML Write Plugin to rewrite problematic legacy conref formats - XMetaL used an unsupported structure, and we have now moved to Oxygen. 

I came up with this:

However, after reading the docs, it doesn't look like the Value parameter has any types that handle something complex like value rewrites. 

Is there another, simple way to achieve this kind of rewrite on checkout?

Note that I do have some XSLT ready (code below) if this can be leveraged on topic checkout. I have also contacted Oxygen support to see if they have the native ability to run XSLT when editable topics are opened. 

Thanks in advance for any advice!

emoji
Parents
  • Hi Charles,

    Legacy conversion, depending on your defined data set (the whole Repository, latest versions only, only draft not released, source language only, etc) can be a challenge.

    Your suggestion over IWrite plugin would attempt a conversion on CheckIn/Update, so in essence on change of the xml. I don't think we have standard plugins that cover your "value replace" idea, definitely not over a custom XSLT. If you think this route is the one to transform your legacy, then I think you need to write a custom IWrite plugin implementation.

    If you want to shed the legacy in one go, you could consider crawling your repository and force these changes. Also there are multiple possibilities, if you allow me to call out one to illustrate the idea, then I would point to https://github.com/RWS/ISHRemote/blob/master/Doc/ReleaseNotes-ISHRemote-0.13.md#repository-corrections 

    • The Get-IshFolderContent can be tweaked to your defined data set
    • And instead of the "Add-IshBackgroundTask -EventType "SMARTTAG"" sample you could do a Get-IshDocumentObjData, your custom transformation, and when you are ready a Set-IshDocumentObj. To validate you can actually save a before and after transformation on your file system so you can validate/QA your efforts before the final Set-IshDocumentObj cmdlet.

    Have a read of that release notes section.

    Best wishes,
    Dave

    emoji
  • Just realized I never said thanks... thank you!!

    emoji
Reply Children
No Data