CodePlexProject Hosting for Open Source Software
I'm overriding the default theme in orchard and I would like to include the current being served page Id on the Layout.cshtml file. Is anyone able to help me on this please ?
Many thanks for your help.
You won't be able to do it in layout because that shape has no idea what is going to be displayed in the Content zone. Now from the template of any part you can do something like @Model.ContentItem.Id.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.