Why does the HTML block do this?
Permalink
I was playing around with the HTML block today (actually trying to debug a non-related CSS spacing problem) and I noticed that if I add something to the content of that block it takes what I add, puts it under the first real HTML paragraph, and then duplicates that paragraph all in one fell swoop.
Here is the original content in my HTML block...
Now this is what I added...
After updating this is what is left...
The "Etc..." is not actually there. That's just my way of indicating that there is more below the above.
Notice what the HTML block did. It took the "sdafasdf" and put it below the first paragraph. Then it duplicated the first paragraph. Or I suppose you could say it made a copy of the first paragraph and put it first.
Is this a bug in that block or in C5?
Just curious.
Carlos
Here is the original content in my HTML block...
<p>This is the /blocks/html/form_setup_html.php file.</p> <h2 class="centered-heading">Testimonial</h2> Etc...
Now this is what I added...
sdafasdf <p>This is the /blocks/html/form_setup_html.php file.</p> <h2 class="centered-heading">Testimonial</h2> Etc...
After updating this is what is left...
The "Etc..." is not actually there. That's just my way of indicating that there is more below the above.
Notice what the HTML block did. It took the "sdafasdf" and put it below the first paragraph. Then it duplicated the first paragraph. Or I suppose you could say it made a copy of the first paragraph and put it first.
Is this a bug in that block or in C5?
Just curious.
Carlos
My mistake.
I'd forgotten that I put "This is the ..." inside the view.php or whatever file is responsible for editing the content of an HTML block to help me get a better handle on what part of C5 does what.
C5 was just doing what I told it to do. Namely output the name of the file being used to render what I see on the screen.
Sorry about that.
Carlos