You are not logged in Log in Join
You are here: Home » Members » aaltepet's Home » Replacement widgets for Silva

Log in
Name

Password

 
 

Folder icon Replacement widgets for Silva

Silva Replacement Widgets is a replacement for some of the widgets that come with the SilvaDocument product (http://zope.org/Members/Infrae/Silva).

The widgets in this release provide per-element css support, which is configurable in the Editor.

Using Silva Replacement Widgets:

Css editor support is disabled by default for tables, but enabled for headings. Table support is disabled so a cleaner interface can be displayed on pages that don't require custom css tables. To enable editor support, add a property somewhere in the acquisition tree called enable_silva_widget_css, and set it to some defined value (like 1).

When you enter the row editor for tables, or the heading editor, you will see text boxes labeled style/css. You can enter either a class name, or a list of style declarations. When the element is rendered (in view or preview mode), if your css has a : in it, it is rendered as a style (e.g. <td style="styles">), otherwise, it is added in the class attribute value (<td class="name">).

Because of this restriction, no : are allowed in class names.

An extra "goodie":

This package also has a new type of table row: custom_row_heading. Please forgive the name, as it doesn't describe well what this element does. Basically, this is a table row with one field (cell) that spans all of the table columns. It's called a row_heading because normal row_headings have the same span behavior. And it's custom because the field behaves like a normal table row field, allowing you to have complex elements in it.

 Title   Type   Size   Modified   Status 
 SilvaReplacementWidgets-0.9.3-srw1 Edit object Software Release   2004-06-29 published