How to use Kentico Banner Rotator as a nested contol using Transformation?

Aashish Khandelwal asked on January 15, 2015 15:39

I want to use Kentico Banner Rotator webpart in the Transformation. Please suggest how can I do that?

Regards,
Aashish Khandelwal

Correct Answer

Brenden Kehren answered on January 15, 2015 16:36

Aashish, check your previous post about this exact question. http://devnet.kentico.com/questions/how-to-use-banner-rotator-webpart-in-transformation.

You cannot nest a webpart inside a transformation. You need to use user controls that do not inherit the CMSAbstractWebpart class, which are not the same as a webpart, in your transformation.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Petar Kozjak answered on January 15, 2015 15:59

Hi,

register it as any user control: <%@ Register src="~/BannerManagement/BannerRotator.ascx" tagname="BannerRotator" tagprefix="uc1" %> <uc1:BannerRotator ID="BannerRotator1" runat="server" />

Only thing that you need to add to this are properties. Best would be to use Visual studio, intellisense will give you entire list and then copy it to your transformation.

0 votesVote for this answer Mark as a Correct answer

Aashish Khandelwal answered on January 15, 2015 16:02

Hi Petar,

I tried that way.. but I am not able to set the BannerCatogory.

0 votesVote for this answer Mark as a Correct answer

Petar Kozjak answered on January 15, 2015 16:16

Hi,

I have just checked this and it is strange that this property isn't public. I could recommend you to customize this control so bannerCategoryCodeName is public and you can add property from transformation. Open any other control and you can see how they work.

0 votesVote for this answer Mark as a Correct answer

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