Drupal 6: Better Formats + WYSIWYG => Input Format bleibt immer "Filtered HTML": Lösung!

Better Formats settings

Zwei sehr praktische und sehr häufig verwendete Module in Drupal sind Better Formats, zur Festlegung von Standard-Eingabefiltern je Benutzergruppe und WYSIWYG als Brücke für WYSIWYG Editoren.

Diese Module funktionieren auch in Kombination sehr gut, allerdings muss man einige Dinge beachten, um nicht auf Probleme zu stoßen.

Explizit hatte ich mit dem Problem zu kämpfen, dass unabhängig von den Better Formats Einstellungen das Eingabeformat immer dem Standard Eingabeformat der Website für alle Rollen (default: Filtered HTML) entsprach.

Ich rechnete zunächst mit einer Inkompatibilität der beiden Module, womit ich allerdings falsch lag, wie sich herausstellte.

Zudem war die Festlegung der Filter je Inhaltstyp aktiviert, was die Komplexität zusätzlich erhöhte.

Ursache war aber nicht etwa das Zusammenwirken der Module, sondern schlichtweg, dass ich vergessen hatte die Rollen in den Better Formats Einstellungen absteigend nach "Rang" zu sortieren. Soweit so gut! Nach dem Hinweis auf der better formats Modulseite behob ich diesen Fehler also, jedoch ohne Auswirkung auf das Standardformat.

Ich suchte also weiter und fand heraus, dass die Rangfolge auch (logischerweise) in jedem Node Typ erneut festgelegt werden muss (ein riesen Haufen Arbeit bei vielen Node-Types!). Zudem bedeutet die Auswahl "Standardwerte für die Website" anscheinend nicht, dass die better formats Global-Einstellungen je Rolle übernommen werden, sondern einfach das Standard-Eingabeformat laut Drupal (Filtered HTML), sodass hier alle Filter noch einmal je Rolle gesetzt werden müssen.

Fassen wir die best practices / Tipps also noch einmal zusammen:

  • Die Rangfolge der Benutzerrollen müssen unbedingt absteigend auf der better formats Standards-Seite festgelegt werden. Beispiel siehe Screenshot!
  • Wenn "Steuern von Formaten in Abhängigkeit des Inhaltstyps" aktiviert ist, müssen diese Einstellungen identisch noch einmal manuell in jedem Inhaltstyp vorgenommen werden!
  • "Standardwerte für die Website" meint den einen globalen Standard Eingabetyp der Seite!

Fazit für mich ist dieses mal: Wer lesen kann, ist klar im Vorteil. Die Ursache ist ja auf der better_formats Modulseite ausreichend beschrieben Wink

Wenn ich euch mit diesem Tipps ein paar Minuten Zeit sparen konnte, freue ich mich über einen kurzen Kommentar!
Vielleicht habt ihr auch noch weitere Anmerkungen?

AttachmentSize
drupal_better_formats_wysiwyg_filter_settings_node_settings.png31.48 KB
drupal_better_formats_wysiwyg_filter_settings.png66.3 KB

Comments

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Internal paths in single or double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or path. Paths to files in single or double quotes, written as "files:somefile.ext", for example, are replaced with the appropriate URL that can be used to download the file.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • Pairs of<blockquote> tags will be styled as a block that indicates a quotation.
  • You can enable syntax highlighting of source code with the following tags: <c>, <cpp>, <css>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <smarty>, <xml>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Textual smileys will be replaced with graphical ones.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.