Skip to Content

Helper

Pathauto

Categories:

[New for Bryght's 4.6 list]

The pathauto module automates the creation of so-called "friendly URLs". All Bryght sites have "clean URLs", without question marks, equal signs, or other query string artifacts. And, of course, you have always been able to create custom addresses for any page using the path module.

Pathauto automates the creation of friendly URLs, allowing you to come up with custom settings for every node type. An example of such paths might be news/2005/10/13/my-news-title. See the how to section for more info on How to configure pathauto.

Configure the TinyMCE Rich-Text Editor

Categories:

The TinyMCE module enables a rich-text editor for users of your site. A rich-text editor gives you a good idea what your text will look like when you publish it. That is, it will give you buttons for bold, italic, and other text formatting, including ordered and unordered lists, tables, and inserting graphics, all the while showing you the text in that formatting. The formatting is not truly WYSIWYG, as that will depend on the site's design, but the rich-text editor is still useful for users who are not familiar with HTML or who find it too time-consuming.

Initial Setup

  1. Enable the 'TinyMCE' module under Administer (top menu) » Site building » Modules.
  2. Click Administer (top menu) » User management » Access control to setup permissions.
    • The "access tinymce" permission gives roles the ability to use the rich-text editor, though administrators still need to modify the tinymce settings for those roles. See below.
    • "administer tinymce" permission gives people the permission to change its global settings, so should only be given to trusted user groups.

TinyMCE Profiles

TinyMCE has a concept of profiles, which are settings for each role that has the 'access tinymce' permission. Each role can have different amount of buttons, and can have the rich-text editor show by default or not, or you can say which groups can disable the rich-text editor and which roles cannot.

Creating a New Profile

  1. Click Administer (top menu) » Site configuration » TinyMCE.
  2. Click the "Create new profile" link.
    • If creating a new profile you see an error message which begins with "You will not be allowed to create a new profile", that means you need to edit one of the existing profiles and remove from that profile at least one role.
  3. The title field will be blank in this screen. Type in something that very briefly describes the profile. It will only be visible in the TinyMCE module's settings page, and not to users.

Editing an Existing Profile

  1. Click Administer (top menu) » Site configuration » TinyMCE.
  2. Click the "edit" link in row for the profile you want to edit.

Profile Settings

  • Profile name: a descriptive title that only appears in your list of TinyMCE profiles.
  • Roles allowed to use this profile: Each individual role can only be used once, and cannot be used in any other profile.
  • Theme: this setting controls how many buttons users will see.
    • advanced: gives users more formatting options. Choosing this theme also lets administrators choose more advanced options, such as where the toolbar appears and the HTML block formats allowed in a drop-down. The advanced setting also gives users the ability to create and modify tables as well as some other less-often-used formatting, like superscript, subscript, and a special character insertion tool.
    • simple: only text decoration, undo/redo, and list creation.
  • Specific pages: where the rich-text editor will display.
    • "specific pages" in the setting above, then you can choose which pages the rich-text editor appears. This is useful if you know some text boxes should only have plain text, such as administration settings. The initial settings are:
      node/*
      user/*
      comment/*
      which means that all individual pages (including the comment boxes if they display at the bottom of individual pages, as well as editing sections), all user profiles, and all comment text boxes will use the rich-text editor. This applies to system paths like node/42, not path aliases.
    • "all textareas", means the "Specific pages" settings (see previous item) will have no effect.
  • the Options box will display different options depending on what theme you chose. If you selected "simple" as your theme, skip to step 12.
  • if you selected "advanced" as your theme, you should see a box titled Advanced theme options; settings. Here you can choose the location of the toolbar, the toolbar's alignment, the path location (which tells users how deeply they have nested their HTML), and the HTML tags that show up in a "Format" drop-down. (You can only remove tags; adding tags will have no effect.)
  • Editor width and Editor height are optional settings which control how big the rich-text editor looks. If no values are present, then the editor will use the maximum width of the text boxes as specified by the site's design.
  • Auto cleanup Word lets you clean up HTML created by Microsoft Word (which some argue is verbose).
  • Verify HTML checks to see if they HTML users type in is valid.
  • Preformatted determines whether or not to preserve preformated (i.e. extra) whitespace.

Forms

Categories:

The forms module is a utility module that implements dynamic creation of web form fields. It is meant to be accessed by other modules. The survey module depends on it.

聚合内容