Brian
Brian

Reputation: 340

Kentico - Using value of added field (page type)

I need some help adding a field to a page type. I added it via "New Field". I set the field name to "ModalDataTarget".

new field

I inserted it in the page type transformation as {% ModalDataTarget %}.

code

I put the value in the text field.

value

It isn't populating with the value I add.

return

Thanks in advance for any help!

Upvotes: 0

Views: 196

Answers (2)

Zach Perry
Zach Perry

Reputation: 756

Which Web Part are you using? I would verify the column is returned in the query that is being run for it.

Which transformation type are you using? ASCX? If so, you need to use <%#%> Format.

Upvotes: 1

Peter Mogilnitski
Peter Mogilnitski

Reputation: 998

You are calling macro method in transformation . You need to use transformation methods instead: try <%#Eval<string>("modaldatatarget")%>

Upvotes: 1

Related Questions