Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've inserted @@Page.Id@@ into a page template and published pages that use this template, but when viewing the source of the page after publishing, no tcmid is shown.

Any idea why this is not happening?

share|improve this question
Have you ran the page in Template Builder? DO you see the value / is the Page object populated? – Chris Morgan Jul 10 '14 at 17:31
Please enter a code snippet to help diagnose – Chris Morgan Jul 10 '14 at 17:37
up vote 10 down vote accepted

Please try @@Page.ID@@


Master.PageID = "@@Page.ID@@";
Master.PageID = "@@Page.Id@@";
Master.PageID = "";


Master.PageID = "tcm:35-32789-64";
Master.PageID = "";
Master.PageID = "";
share|improve this answer
And the documentation for reference. – Alvin Reyes Jul 10 '14 at 21:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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