Input Control Used in Transformation Page

Eric Rovtar asked on April 1, 2016 23:19

Hi!

Which form control is used when you're entering a Transformation for a Page Type? Is that the Macro Syntax Highlighter?

Thanks!

Correct Answer

Brian Mandel answered on April 3, 2016 05:05

Hi Eric,

So, in short, the Macro Editor form control is the one that is used for transformations in Kentico 9.

If you want to create your own way to input info like transformation data, then I would recommend checking out the DocumentType_Edit_Transformation_New.aspx file which is how we currently do it. This file uses the TransformationCode control to input the data. Next checkout the TransformationCode.ascx file. The line that holds the transformation info is

<cms:MacroEditor runat="server" ID="txtCode" ShortID="e" Visible="false" Width="100%" />

Which is the form control where you put the content. If you want to know how the transformation is stored, you can see this by going to the Modules application and opening Modules -> Design -> Classes -> Transformation -> Fields. The TransformationCode is the field storing the actual content.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Eric Rovtar answered on April 3, 2016 05:22

Thanks, Brian! I'm asking mostly because I want to use that control an input control for a page type.

It seems to be the control with the best source highlighting.

Are there any potential problems with this? I'd use it with a Long Text field type.

Thanks!

0 votesVote for this answer Mark as a Correct answer

Brian Mandel answered on April 4, 2016 02:35

Shouldn't be any problems. It's just a means to get the text stored into a text field. The only thing you will have to do is make the form control available for page types and you're all set.

0 votesVote for this answer Mark as a Correct answer

Eric Rovtar answered on April 4, 2016 15:35

Thanks, Brian.

Now for the silly question: when it's used in the Content tab, it's width is almost unusable. I tried playing around with it, but I can't seem to find a way to make it wider and taller. Is that possible?

My CSS Styles seemed to have no affect.

Thanks!

-Eric

0 votesVote for this answer Mark as a Correct answer

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