Kunal Chawla
Kunal Chawla

Reputation: 55

Consume values of fields defined in Page Type in Page Template - Kentico 11

I have a set of fields defined in custom page type. After I create the page (with this respective page type) and enter the value for the fields, I want them to get displayed on the page through a custom page template. Can someone help to know how to get the values of the fields in a page template?

Upvotes: 0

Views: 135

Answers (1)

Zach Perry
Zach Perry

Reputation: 756

If the template is on the custom page you should be able to do something like {% CurrentDocument.GetValue("FieldName") %}

Upvotes: 1

Related Questions