Im creating a Carousel control for my site and Episerver is creating an unwanted div around my control.
Basically, Im creating an "Outer Carousel Block" which starts an UnOrdered List <ul>. I then have a CarouselSlide Block where the user can add unlimited slides into the Outer Carousel block. This block has the list items <li>.
Episerver seems to add in a Div around my CarouselSlide block so it renders the UL incorrectly: see below
<ul description="Container for Slides" class="slides" style="height: 700px;"><div class=" carouselslidetype clearfix">
<li class="no-style active" style="display: list-item; opacity: 0.38175;">My question is: How do I stop Episerver from doing this?ThanksJon
Sorry - the strong tag is not being added by Episerver - I added that to highlight the code but the html has been displayed too - sorry for any confusion.
Have you tried the ChildrenCustomTag attribute?
Hi, thanks for the reply - Im not sure this would work - the Carousel is one block and the CarouselSlide is another block which sits inside the Carousel block.
Do you mean that it sits inside by using a ContentaArea on your Carousel Block?
Yes. Thats right :)
Then in your CarouselBlock renderer, when you render your Carousel Slides, you shoud be able to add the ChildrenTagName..
Are you using MVC or WebForms? So I can try to find an example for you.
Hi, Im using webforms
Hi Alf, did you manage to find any code?