How does a package change in terms of "publishing a single page" and "Publishing a bundle with a single page"? Also, how does the package change when "publishing a bundle with a page AND a dynamic component"?


I don't think the package will have any difference, since you're still rendering a page or a DCP (there is a package instance for each rendering). If you need to render something differently based on this data, then you'll have to look at the PublishTransaction (accessible under engine.PublishingContext.RenderContext.PublishTransaction) - the Items property will contain the item that was sent to the publishing queue.

  • Oh! Is this the magic 'new' property that allows us to find the publish transaction from within the template without the 'dirty hack'? Is this 2013+ or 2011+? Dec 30 '14 at 13:02
  • 2013 SP1 for sure, not sure about GA.
    – Nuno Linhares
    Dec 30 '14 at 13:13
  • 1
    Just checked on 2013 GA and it works there too. Dec 30 '14 at 13:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.