Try our conversational search powered by Generative AI!

Content Blocks create an unwanted div

Vote:
 

HI,

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?

Thanks
Jon

    

#82371
Mar 11, 2014 12:19
Vote:
 

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.

#82372
Mar 11, 2014 12:21
Vote:
 

Have you tried the ChildrenCustomTag attribute?

#82373
Mar 11, 2014 12:28
Vote:
 

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.

#82374
Mar 11, 2014 12:40
Vote:
 

Do you mean that it sits inside by using a ContentaArea on your Carousel Block?

#82376
Mar 11, 2014 12:46
Vote:
 

Do you mean that it sits inside by using a ContentaArea on your Carousel Block?

#82377
Mar 11, 2014 12:46
Vote:
 

Yes. Thats right :)

#82378
Mar 11, 2014 12:47
Vote:
 

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.

#82379
Mar 11, 2014 12:49
Vote:
 

Hi, Im using webforms

#82380
Mar 11, 2014 12:50
Vote:
 

Hi Alf, did you manage to find any code?

#82382
Mar 11, 2014 13:24
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.