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?

  • Have you ran the page in Template Builder? DO you see the value / is the Page object populated? Commented Jul 10, 2014 at 17:31
  • 1
    Please enter a code snippet to help diagnose Commented Jul 10, 2014 at 17:37

1 Answer 1


Please try @@Page.ID@@


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


Master.PageID = "tcm:35-32789-64";
Master.PageID = "";
Master.PageID = "";

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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