Hidding the "Split Summary At Cursor" button in drupal 6
The "Split Summary At Cursor" button is a new feature in Drupal 6. It allows you to split your content creation into a summary and the main content. This summary is displayed as the teaser and can be different than the main content. When I first learned of this feature, I thought it was great. From a web-development perspective, it is. However, from a usability perspective, this button very confusing. The average site visitor or user will have absolutely no idea what this button is or can do. Would anyone know of a simple way that I can "theme" this button off of the create content form page for everyone except the administrator role? Is there a way to deactivate or hide the button for certain roles? I would really appreciate the help. Thanks!

No use to my users
This is indeed a confusing and redundant feature for ordinary users on the community site I am building. Even more so because I am using the FCKeditor module, which seems to prevent the button doing anything at all!
I would really like to know how to hide this, but being new to the complexities of Drupal I have not yet managed to trace whatever it is that generates it.
Thanks in anticipation from me too!
[EDIT 23/03/08]
Found how to fix this.
(1) Edit misc/teaser.js to disable it:
Drupal.behaviors.teaser = function(context) {// This breaks in Konqueror. Prevent it from running.
//if (/KDE/.test(navigator.vendor)) { COMMENT OUT THIS LINE
return;
//} AND THE CLOSING BRACKET
(2) Hide the checkbox that is now visible by editing modules/system/system.css:
/* Keeps inner content contained in Opera 9. */.teaser-checkbox {
padding-top: 1px;
display: none; /* ADD THIS */
}
Not elegant, but it works.
Disable button?
Is it possible to completely disable the button?
I too use FCKEditor.
myTechDaily - The One Stop Tech Blog! - http://www.mytechdaily.com
You can disable it
Basically, just make misc/teaser.js impotent by reducing it to a
returnstatement (don't delete it altogether because that would throw up errors). This gets rid of the button.For some reason, removing the button reveals a checkbox, but you can remove this by editing modules/system/system.css, adding
display: none;to the .teaser-checkbox style.This solved the problem for me.
thanks
ariite thanks for the advice.
myTechDaily - The One Stop Tech Blog! - http://www.mytechdaily.com
You don't need to hack the
You don't need to hack the core css or anything else for that matter, in your themes style.css file or equivalent you can just write:
.teaser-checkbox {
display:none;
}
Granted this just hides it, but at least there are no core hacks involved.
+1 for this being a configurable option in the node types settings and/or permission controlled.
note: when I installed TinyMCE the button goes away, interesting...
thanks rrabbit for this
thanks rrabbit for this solution
FormDefaults Module. This
FormDefaults Module. This module allows you to hide it per content type. The nice thing about this is it is per content type and you can re-enable it at anytime. No php code necessary.
I have installed this module
I have installed this module and I am able to disable the "description" of a content type but not the "split summary at cursor" button.
Where exactly could I disable the button?
so have i
but where is it?
I agree, not for everyone.
I agree, not for everyone. In fact it really begs to be a feature of 'site editors'. It should be controlled by permission and roles.