Path

ez projects / category_datatype__pubsvn_


Category Datatype (pubsvn)

UNIX name Owner Status Version Compatible with
category_datatype__pubsvn_ Paul Forsyth planning N/A N/A

This datatype provides a simple mechanism to allow objects to control
which categories they belong to. This differs from the ezenum and
ezselection datatypes, here control remains with the class. For sites
using categories to control product inventories it is a problem if
categories are managed by the class - any changes needs to force each
product to be republished.

Installing
-------------
Add the category as a normal extension within your site.ini
File: site.ini.append.php
[ExtensionSettings]
ExtensionDirectory=extension
ActiveExtensions[]=category
Create the sql table provided in 'update/mysql/category.sql'. This should
just be a straight forward addition. I don't use PostSQL but
hopefully the table should work with this too.
Make sure your file permissions are correct.
If all is well you should be able to add a category datatype to your
classes.
Usage
----------
In the object view a text line is provided for text input. Multiple
categories are entered by means of seperating
each with a comma, e.g.
"There, are, five, categories, here"
To remove a category when editing simply remove it from the string and
save the object.
Future work
------------------
For this to be more useful a management tool must show which products
are using which categories and
provide editing functions.
The file here is the first release but for development releases please
look at the source code at:
Paul

Screenshot

No news yet.

This project has no reviews yet. Be the first one to review it!

No forum messages yet.