Take the 2-minute tour ×
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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 = "";
share|improve this answer
    
And the documentation for reference. –  Alvin Reyes Jul 10 at 21:27

Your Answer

 
discard

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.