When client publish one News Component, they want to push the News to different location, include some external system.
- This action must be invoked when client publish the News component, so we have to use Event system.
- The only way to communicate with this external system is invoke its own API, push the News content inside it;
- It is forbidden to let this external system call Tridion envrionment;
What we do right now is add one Post Publish Event. When we publish the News component, we catch it and push it to this external system.
The trick part is this News Component contains one Multimedia Image, and inside the Component parameter, it only contains the Multimedia Image's TCM URI instead of the real URL.
Inside the API, it looks like below: OnComponentPublishPost(Component component, PublishEventArgs eventArgs, EventPhases eventPhase). We can find the Component object, but it is not the rendered result. It only contains the image TCM ID instead of the really image URL.
Does anyone know how can we get the real render result or the image's real URL? Thanks.
Best regards, Qiang