xajax classAttributes

Features

The Xajax ClassAttributes extension allows you to add class attributes to a content class or reorder class attributes without the need of a page refresh. It is especially useful when editing large content classes.

License

the xajax eZ publish extension is copyright © 2005-2006 SCK•CEN and is distributed under the GNU GPL.

It was written by Kristof Coomans.

Usage

The extension adds a second button "Add attribute with Ajax" to the class/edit view, at the right of the "Add attribute" button. Click on the "Add attribute with Ajax" button to add a new class attribute of the selected datatype.

There's also a second row of "up" and "down" buttons for each class attribute. Use these buttons to reorder class attributes by using Ajax.

Demo

A live demo will be available soon.

Requirements

Needed extensions

xajax_classattributes depends on the following other extensions:

Supported user agents

The requirements of the xajax extension also apply to xajax_classattributes, so you'll need a user agent that is supported by the xajax library:

Installation

Before installing xajax_classattributes, please install all other required extensions.

Download

You can download xajax_classattributes from it's contribution page at ez.no or you can check it out right from the community subversion repository at pubsvn.

Install the extension

Follow the steps described in the eZ publish technical manual to extract and activate the extension.

Clear caches

Clear the INI and template caches.

Technical notes

Replaced templates

To integrate well into the admin interface, this extension replaces the following templates :

  • design/admin/templates/class/edit.tpl
  • design/standard/templates/class/datatypes.tpl

Provided xajax functions

The xajax_classattributes extension provides the following xajax functions:

  • addClassAttribute( $classID, $datatypeString )
  • moveClassAttribute( $attributeID, $direction )

Contributions

If you'd like to contribute to this extension, either with a new idea or your own code, then contact Kristof Coomans.

All text is available under the terms of the GNU Free Documentation License

Powered by eZ publish 3.9.0