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? 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

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 and acknowledge you have read our privacy policy.

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