Tweeted twitter.com/#!/StackTridion/status/438806133139337216
2 added 566 characters in body
source | link

WeWhen client publish one News Component, they want to push the News to different location, include some external system.

  1. This action must be invoked when client publish the News component, so we have to use Event system.
  2. The only way to communicate with this external system is invoke its own API, push the News content inside it;
  3. 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 onethe News component, we get the rendered resultcatch it and push it to some place elsethis external system. This

The trick part is this News Component contains one Image Multimedia Image, and inside the Component parameter, it only contains the Multimedia Image's TCM URI instead of the real URL.

Right now insideInside 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

We want to add one Post Publish Event. When we publish one component, we get the rendered result and push it to some place else. This Component contains one Image Multimedia Component.

Right now 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? Thanks.

Best regards, Qiang

When client publish one News Component, they want to push the News to different location, include some external system.

  1. This action must be invoked when client publish the News component, so we have to use Event system.
  2. The only way to communicate with this external system is invoke its own API, push the News content inside it;
  3. 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

1
source | link

Get Component Render result inside the Post Publish Event

We want to add one Post Publish Event. When we publish one component, we get the rendered result and push it to some place else. This Component contains one Image Multimedia Component.

Right now 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? Thanks.

Best regards, Qiang