By Rotwang on
For some reason the forum parsed my last question wierdly.
How can I remove this text:
Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
* Lines and paragraphs break automatically.
More information about formatting options
from public facing forms?
Comments
Input Formats
I looks like you need to change your Input Format to Full HTML. Go to Administer > Input Formats and make the change there.
Jason
JC SWAK - web hosting & design
www.jcswak.com
No, I don't want full HTML
No, I don't want full HTML to be entered by users into the field. I just want to remove that notification text.
May need to get into some code
So you want to allow users to enter code, but you don't want to tell them what code they can use. If this is the case, you may need to delve into code and comment out what you don't need.
I found if you comment out lines 161 and 162 of the filter.module, the code that you are filtering out is gone. This may or may not be what you're looking for and may not even be a complete fix. I've only tried it on one theme and one browser, but it should get you started.
If this again is not what you are wanting to do, please provide some background on why you want to remove the text.
Jason
JC SWAK - web hosting & design
www.jcswak.com
I only want to remove it for
I only want to remove it for one form on the site. The reason I want to remove it is only because the client, the designer, wants me to.
Drupal forms seem very inflexible when it comes to design and layout visual stuff...
CSS could be a solution
You can use the CSS below to "hide" it from users...
Nice work
Thanks for backing me up on this. That was an easy fix.
Jason
JC SWAK - web hosting & design
www.jcswak.com
Beginner
Which CSS do I need to make this change in?? Any help will be appreciated.
Thanks
You don't need CSS -
You don't need CSS - http://drupal.org/project/better_formats allows you to hide format tips.
Theme CCK Forms
Another way to do it is to theme the CCK form.
In template.tpl.php, add:
Now every time you add or edit a CCK node, it will look for a file in the form "nodetype_form.tpl.php".
In this file, do something like this:
Call drupal_render for all the fields you want. Unset the fields you don't want. Look at the output of dprint_r($form) to discover the names of things. dprint_r is available when you install devel module (you have installed devel, right?) and enable it for your role; otherwise use print_r.
Great help
Thanks for this. I managed to customize my form a while back but I didn't know about the line
unset($form['field_conference_summary'][0]['format']);-------------------------------
My Drupal site: Download a Book.
webdesigning.ae
Really enjoyed reading your article. I thought the example of using a three-column layout to break up that list was spot on. Several columns of text, in my opinion, are far more aesthetically pleasing than a single block and I also think that they read better too.
However, I also agree with your point about the potential downsides of using lengthy columns of text. I think this is where we can use other web technologies, like the ‘Back to top’ links for example, that are being seen more and more now to assist the user, without having to necessarily adjust the intended layout to accommodate for readability issues.
Remove the "Allowed HTML tags"
//Drupal 7: Follow Below steps