Duplicate content (sc-content-something) on the same page

Hi all,

I have the following on my site, using a bootstrap template:


<div class="hidden-xs sc-content-boxA"> <!-- This is a bootstrap div, not visible on mobile devices -->
<img src="" />
</div>

<div class="visible-xs caroussel sc-content-boxA"> <!-- This bootstrap caroussel item is visible on mobile devices -->
<img src="" />
</div>

On the desktop, with sitecake, would like to add an image to the first div, like you normally would with .sc-content.
Then the same image will have to be placed in the second div, so the content is repeated.

I can place an image with sitecake in the first div, but when clicking ‘Publish’, the image is not saved in neither of the two divs.

Can someone help me? Should I put the code for the second div in a separate PHP file so sitecake can recognize it as repeatable content? And then include the php file on the right location?

Hi, do you get any error message after hitting publish?

Hi, thanks for your reply.

No there was no error message. I just published it and closed the editor but than the image was in none of the divs with the class sc-content-boxA.

I resolved the issue for now by cloning the content of a regular .sc-content div to the second div using javascript/jquery.

But I would still like to know if the repeatable content feature should work within the same document instead of cross-page though :slight_smile:

Hi, I just tested it and it seems that it’s not working when named container is on same page more than one times. I’ll investigate it further and let you know.