Page type class id

Jon Tibbetts asked on February 24, 2015 20:13

How do you access the classid based on a pagetype class name.

Recent Answers


Jan Hermann answered on February 25, 2015 08:24 (last edited on March 24, 2018 12:15)

Hello,

it depends where. For instance by using macros you can retrieve it like this:

{% GlobalObjects.DocumentTypes["class.name"].ClassID |(user)zbynekh|(hash)bec5028604f7cb093a75daf61de95413d06d97da946ec2031748991d4b52c76d%}

so for Page (menu item) it would be:

{% GlobalObjects.DocumentTypes["CMS.MenuItem"].ClassID |(user)zbynekh|(hash)5cf1f024ed0d3bafcf3974c2915e68dd6b3581a1057b30a65d37a5ea99bd014c%}

Best regards,
Jan Hermann

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.