Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Content Editor Discussions /

Forum for content editors and CMS users.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Silverstripe is changing my source code!!


Go to End


1512 Views

Avatar
mhdesign

Community Member, 216 Posts

22 February 2016 at 11:28am

Edited: 22/02/2016 11:31am

Hey, I have to do a custom layout for just one page (featuring YouTube vids). This worked fine in earlier versions of the site where this part of the page was laid up as a table, but now I want to make it responsive layout (using <DIV>s, etc). So I'm coding as follows:

<div class="row">
<div class="col_6 first">
<h3>Video 1</h3>
</div>
<div class="col_6 last">
<h3>Video 2</h3>
</div>
</div>
<div class="row">
<div class="col_6 first">
<h3>Video 3</h3>
</div>
<div class="col_6 last">
<h3>Video 4</h3>
</div>
</div>
<div class="row">
<div class="col_6 first">
<h3>Video 5</h3>
</div>
<div class="col_6 last">
<h3>Video 6</h3>
</div>
</div>

When I save page and open HTML editor again I see:

<div class="row">
<div class="col_6 first">
<h3>Video 1</h3>
</div>
&lt;div class="col_6 last"&gt;
<h3>Video 2</h3>
</div>
<div class="row">
<div class="col_6 first">
<h3>Video 3</h3>
</div>
&lt;div class="col_6 last"&gt;
<h3>Video 4</h3>
</div>
<div class="row">
<div class="col_6 first">
<h3>Video 5</h3>
</div>
&lt;div class="col_6 last"&gt;
<h3>Video 6</h3>
</div>

Anybody else seen this? What gives?

ps If anybody knows of a lightbox-type module that will actually play videos can they advise? Thanks.