Header - Repeated entry - Footer does not render properly

Header - Repeated entry - Footer does not render properly

by Maria C. -
Number of replies: 2

I have some code like this:


<ul class="cards">

-------------------------------------

<li class="card_item">some_data_here</li>

------------------------------------

</ul>


And I am supposed to get this:

<ul class="cards">

<li class="card_item">some_data_here</li>

<li class="card_item">some_data_here</li>

<li class="card_item">some_data_here</li>

.......

<li class="card_item">some_data_here</li>

</ul>


but as soon as I save the list template it renders like this:

<ul class="cards"></ul>

<li class="card_item">some_data_here</li>

<li class="card_item">some_data_here</li>

<li class="card_item">some_data_here</li>

.......

<li class="card_item">some_data_here</li>


Any idea what goes wrong? Thanx!


Average of ratings: -
In reply to Maria C.

Re: Header - Repeated entry - Footer does not render properly

by William Lu -
Picture of Particularly helpful Moodlers

Make sure you have clicked on the 'Disable Editor' button, then your code will be rendered properly.

I just tested for you, all version works perfectly as expected.


In reply to William Lu

Re: Header - Repeated entry - Footer does not render properly

by Maria C. -

Thank you!

Works perfectly this way. Switch to code button in the editor menu did not work for some reason.