I need to retrieve the CME path of dynamic components in Rendition Engine. Is it possible using oData or Ambient framework API. OOO just provides me the path of pages and not dynamic components.
Tridion has a loosely coupled architecture that means that the CD side it not tight to the CM side, there is no information about the dynamic component path in the CD side.
If it is necessary to use the path in your web application I would suggest to use custom metadata for it. There are few ways to do it.
- Add a path field in the metadata section of your dynamic component schema, then you can populate the path of your dynamic component via event system (save, move, copy).
- Use the AddMetadata method (RenderedItem) in your template to pass the path as an XML node, then you need to write a deployer module in the CD side to read that field and do something like append it to the item custom metadata.
I am curious, why do you need the CM path in the CD side?