No Editor Content Objects

The content object can be used in editor mode, or no editor mode.  The editor mode is default, and what you will use most of the time.  No editor mode is useful when you want the editable object to not utilize the editor built into Savvy and to instead present a basic text area.  You can past any html, javascript or other information into it.  You can not paste any ColdFusion, ASP, PHP or other server side code as it will not be processed, but instead saved to the page as display.

This feature is triggered in the template via the create content object tag.  Note the Editmode attribute below.

<cfmodule template="../actionfiles/createcontentobject.cfm" Title="UniqueObjectName" ObjectType="Unique" basetemplate_name="#url.basetemplate_name#" page_ID="#url.Page_ID#" stylesheet="#stylesheet#"  bgcolor="ffffff" editmode="editor">

There are four attributes to edit:

  1. Title: The title given to this object.  Make this unique if the object isn't shared.

  2. ObjectType: This determines if the content in the object will be shared with other content areas.  See Shared Content Objects for more information.

  3. Bgcolor: This is the default background color shown in the editor.  The default is ffffff which is white. (standard hex colors without the #).  Change this to a different color if you need the editor to preview differently. Such as if you have a footer area that is dark blue, with white text, and you want the editor to preview as such.

  4. Editmode: Editmode instructs Savvy to use the editor or not.  It is possible for you to create a content object which will not use the editor.  This is useful if you need to put in javascript or other code that may not work with the editor.  To turn the editor off set editmote="no editor". By default this parameter is set to 'editor'.

NOTE: You only need to update four parameters of this tag. Do not change any other parameters.  The Title of each unique cfmodule needs to be unique. Rename the title to reflect the content area, for example: HomePageCenterContent. Please do not use spaces or other special characters in the object title name.