We use USync to sync content from test, to acceptance to production. This works great except for links to external applications. These links point the the corresponding environment of ours. So when published the links on production will point to acceptance environments.
We are looking for a way to transform links and maybe other content like email addresses when publishing the content via USync. A simple string replace in all published content would be sufficient. Is there anything like that already build? And if not where could I extent USync of Umbraco to make this happen?
I would probibly go with using the events uSync files when it imports items.
if you hook into the ImportingItem event, you could - do a search and replace on the xml element that is passed, updating any links from your acceptance to production urls.
in a Compoent Intialize event (example)- you can register for the ImportingItem event.
USync link transforms
We use USync to sync content from test, to acceptance to production. This works great except for links to external applications. These links point the the corresponding environment of ours. So when published the links on production will point to acceptance environments.
We are looking for a way to transform links and maybe other content like email addresses when publishing the content via USync. A simple string replace in all published content would be sufficient. Is there anything like that already build? And if not where could I extent USync of Umbraco to make this happen?
Hi,
I would probibly go with using the events uSync files when it imports items.
if you hook into the ImportingItem event, you could - do a search and replace on the xml element that is passed, updating any links from your acceptance to production urls.
in a Compoent Intialize event (example)- you can register for the ImportingItem event.
then in the event you could read in the xml, do some replacements and put the xml back (i think! - haven't actually tried this code)
is working on a reply...