Transformation for mobile page

Merete Nor Midtskog asked on March 5, 2014 02:54

Trying to use <%# Eval("DocumentContent") %> in my transformation, but it will not show pictures and tags right. Any idea how to show this right?

Correct Answer

David Stula answered on March 5, 2014 07:20

You cannot use Eval with the DocumentContent column. DocumentContent holds the content of all editable regions on a page. Using Eval with the column's value renders the raw XML representation of the content.

To display an editable region using a transformation, use GetEditableValue(string controlId) where controlId is the value of the Web part control ID property that you set for your editable region.

For example: <%# GetEditableValue("mainText") %>

Source: http://devnet.kentico.com/docs/7_0/cmshelp/index.html?newedit_transformation_methods.htm

1 votesVote for this answer Unmark Correct answer

Recent Answers


Petar Kozjak answered on March 5, 2014 05:50

Whay do you want to show DocumentContent? DocumentContent is holding webpart information as I know.

If you want to show content from document type use <%# Eval("SomeTitleOfColum") %> or for images <%# GetImate("SomeColumImageName") %>

0 votesVote for this answer Mark as a Correct answer

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