How do I go about retrieving the page's tcm id and insert it as a comment in the page source using a Dreamweaver Template?

  • Please eddit your question with some more information like what you have tried, what you are using... Most of us arent mindreaders ;-)
    – user219
    Apr 8, 2014 at 20:11
  • @Chris: are you sure your edit is valid? The OP didn't specify DWT. Apr 8, 2014 at 21:41
  • @Puf - no not sure - but the post was flagged for deletion - So I figured I would make it relevant to the only answer so that it at least makes sense. If the OP wants to update it to be more specific, then they can do so. Would you have rather deleted the Q & A? Apr 9, 2014 at 17:40

1 Answer 1


The easiest way is to modify the Tridion Page Template(s) to include something like this in your Dreamweaver Template Building Block:

<!-- PageId: @@Page.Id@@ -->

At publish time Tridion will resolve Page.Id to the current page's ID and output something along these lines:

<!-- PageId: tcm:123-123-64 -->

If you're not using Dreamweaver templating, or you don't want to use Tridion templates for this, then please expand on your question.

  • This solution should work.
    – Freq
    Apr 11, 2014 at 13:15

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.