typeedit


NAME

typeedit - Web interface to Communiware item types.


USAGE

This script allows to edit existing item types/create new ones. On the left side of form list of currently defined item types is shown. Choose one you need or click link ``New item type'' to create new one.

Requires SUPERUSER or DEVELOPER privelegies

Only user with SUPERUSER status can access this script, becouse changes made here would affect all virtual servers on the site. Restarting of APACHE may be needed for changes to take effect.

Link to this script is placed at the top line of moderator interface if current user is SUPERUSER.

EDITING EXISTING TYPE

Following attributes of item type can be changed:

Type name
Descriptive name of item type. It has several values for each of languages defined in the system. This field would be used as value of ITEM_TYPE attribute. At least value for English language should be provided for proper operation of Communiware.

Default template
Menu of page templates which can be set as global default template for this item. Only templates from ``default'' server are shown. If you wish to set default templates for specifdic virtual server, use deftempl script instead.

Additional parameters
No specific usage of this value is currently defined.

Extended attributes
If item has exteneded attributes, read-only list of them would be shown. If there is no exteneded attributes, link to the script to create extended attributes table. Once created, structure of extended attributes table cannot be edited. You have to delete item type completely and recreate it to change extended attributes table.

Status values
Allowed values of status field have following properties:
Name
 internal ID of status. Always uppercase. Cannot be edited - it
can be only created or deleted. This would be used as value of STATUS
attribute
Description
Descriptive name of this status on each of defined languages. Would be used as value of ITEM_STATUS attribute. At least value for English language should be non-empty for proper operations of Communiware.

Ordnum
Order number of status. Status ORDNUM=1 is the default one for this item type.

All changes for existing statuses would be commited into database upon pressing of Update button, along with other changes for item type.

For creating new status value, you should fill last row of the table and press ``Add'' button. New status would be created immediately.

To delete status, you should check ``Delete'' checkbox in approperiate row. Deletion would be carried out upon pressing of Update button.

Allowed link types
Allows to set list of links in which given item type could act as active or passive.

Note that some link types, such as PUBLISHER, USES, HREF are created automatically by Communiware, so you shouldn't change their availability unless you are exactly knowing what you are doing, otherwise it may result in impossibility to create item of this type.

DELETING ITEM TYPE

It is only possible to delete item type which have no instances in the database. Otherwise, number of items with this type would be displayed instead of delete button.

Deleteion of item type destroys all information about this type, including status values, extended attributes (if any) and allowed link types.

CREATING NEW ITEM TYPE

Upon creating new item type you should provide values for type ID (TYPE_ID attribute subsequentually), description, default template and, optionally additional parameters and Doublin core code. Allowed link types can be also set immediately.

Extended attributes table and list of status values can be created only after type was initially created.

module_list

Scans @INC variable for modules with given prefix name and returns array of modules with given prefix.

16 октябрь 2007 13:45