Developer forum

Forum » Templates » Page Item Type ID

Page Item Type ID

Yasharth Tahiliani
Reply

Hi,  

I have these pages in my website that are items of a particular type. Now, is there a way in the Razor template to get the ID of the Item Type of these pages. I am using 

Dynamicweb.Frontend.PageView.Current().Page.get_Value("PageId").ToString();

but that gets me the pageId and not the ID of the item type.

How is this possible in the Razor template?

Many thanks & Regards,

Yash.


Replies

 
Yasharth Tahiliani
Reply

Sorry,

I just realised it will be Item.Id

Silly me!

Thanks and Regards.

 

You must be logged in to post in the forum