Site and Article editor CSS styles

Site styles

Normally you would have external CSS static stylesheets linked to your HTML code when developing websites. We request you to include also link to /styles.php script by adding the following line to your HTML HEAD:

<link rel="stylesheet" type="text/css" href="{$wwwroot}/styles.php">

Styles.php outputs the following definitions:

  • Styles used by v-shaped buttons in editor’s environment.
  • Styles which you can enter manually in Admin > Visual Design > CSS styles > Site CSS styles. This is an optional feature which allows you to manage styles using Saurus CMS Admin.

Styles used by Article editor

In Article editor, there is a dropdown which the content editor can use to insert tags and format article contents with predefined CSS. You can manage those from Admin > Visual Design > CSS styles > “Styles in article editor dropdown”.

You can create both tags, CSS classes or combinations of those. For example:

Definition Content editor sees Will be inserted in article HTML
h1 {} h1 <h1>
.quote {} quote <… class=”quote”> or <span class=”quote”>
p.normal {} normal <p class=”normal”>

Those definitions are used only by Article editor and are not included in styles.php output so you have to add them to your site CSS as well. The reason for this is that you might have different CSS definitions for H1 in your site CSS e.g. div#main h1 and div#rightcolumn h1.

Values in Admin > Visual Design > CSS styles > “Styles used only by article editor” allow you to configure Article editor’s main area. For example if your site has black background you can set Article editor’s background accordingly here.

Site development

About Saurus API / Creating page template tutorial / Creating content template tutorial / Applying custom design to page template checklist / Moderated comments / Stationary articles (header, footer etc) / First, last and n'th item in a foreach loop / Creating zebra tables (cycling values) / Site and Article editor CSS styles / How to set up website aliases / Customising v-shaped editor buttons / Using PHP in templates / Exchanging variables between templates and PHP / Profiles and Custom Assets / Site languages / Printer friendly pages / Enabling browser cache / Creating WAP pages / Configuring sitemap / Saurus 4.1 technical notes