4

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?

2
  • 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
  • 1
    Please enter a code snippet to help diagnose – Chris Morgan Jul 10 '14 at 17:37
10

Please try @@Page.ID@@

Code

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

Output

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

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.