Jump to content

Cannot had html content to new CMS page


Recommended Posts

Hi everyone,

 

First of all I'm quite new here and not sure I posted this message in the right place, if not I'm sorry.

 

I created a new CMS page, I wanted to add some html so I did it in the code area, though when I try to validate I get the message that the content field is invalid.

 

I don't see what's wrong in my html :

<form action="/nous-contacter" method="post" class="contact-form-box" enctype="multipart/form-data"><fieldset>
<div class="clearfix">
<div id="contact_form_container" class="col-xs-12 col-md-6">
<div class="form-group selector1 hidden"><label for="id_contact">Objet</label>
<div class="selector" id="uniform-id_contact"><span>Service client</span><select id="id_contact" class="form-control" name="id_contact">
<option value="0">Choisissez</option>
<option value="2" selected="selected">Service client</option>
<option value="1">Webmaster</option>
</select></div>
</div>
<p id="desc_contact0" class="desc_contact"></p>
<p id="desc_contact2" class="desc_contact contact-title unvisible"><i class="icon-comment-alt"></i>Pour toute question sur un produit ou une commande</p>
<p id="desc_contact1" class="desc_contact contact-title unvisible"><i class="icon-comment-alt"></i>En cas de problème technique sur ce site</p>
<p class="form-group contact_input_container"><label for="customer_name">Nom</label> <input class="contact_from_input grey" type="text" id="customer_name" name="customer_name" value="" /></p>
<p class="form-group contact_input_container"><label for="email">Votre email</label> <input class="contact_from_input grey validate" type="text" id="email" name="from" data-validate="isEmail" value="" /></p>
<div class="form-group contact_input_container"><label for="message">Demande de renseignements :</label> <textarea class="form-control" id="message" name="message">Date : 
Lieu : Nombre d'invités : 
Durée de l'évènement : 
Besoin de personnel : oui / non 
Besoin matériel type tables buffets / nappes / vaisselle en dur (verres - maintien au frais des boissons - seaux à boissons) : 
Canapés chauds / froids : 
Alcools / Boissons : 
Commentaires culinaires</textarea></div>
</div>
<div class="col-xs-12 col-md-6 contact_info">
<div id="address_block" class="col-md-12">MyTraiteur.com - <br /> <br /> Paris France</div>
<div class="col-md-12">
<h2>Devis et Commandes en Ligne</h2>
<span> <i class="ss-phone"></i><span id="shop_phone">01 76 54 05 29</span> </span> <span> <i class="ss-mail"></i><span id="shop_email">[email protected]</span> </span></div>
</div>
</div>
<div class="submit"><button type="submit" name="submitMessage" id="submitMessage" class="mt_standart_btn mt_green_button pull-right"><span>Envoyer<i class="icon-chevron-right right"></i></span></button></div>

</fieldset></form>

 

Edit : I see that Validate::isCleanHtml() returned false because the allow_iframe parameter was at false, I switched it to true, I don't get the error anymore though my html code disappears. It only saves <form action="/nous-contacter" method="post" class="contact-form-box" enctype="multipart/form-data"></form> and not whats in between this form tag.

 

Edit 2 : Ok I had to turn iframe on from the general tool and not inside the code because I think its used elsewhere and that's probably what was cleaning my code after the validation. Can someone mark this as solved ? Cheers

 

Thanks for your help,

Mathieu 

Edited by Zalayeta (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...