Propel properties

1 view
Skip to first unread message

nian

unread,
Jan 29, 2008, 9:44:00 PM1/29/08
to Steer CMS Developers
I am wondering about the "steerCMSPropertiesBehaviorPlugin". It adds
properties on objects and it looks like it's used to manage the rights
and roles of users. Is this correct? What are the properties supposed
to used for if this is a wrong assumption?

I was wondering if it was possible to add properties to a "site
folder", for example. Then for links and "site pages" in that site
folder I could read the properties for various data.

For example:
"site folder" metadata has "property name" with "property value"
... and in "site folder/site pages", in the code, I could replace as
follows:
{{{
Here is some page, it has some "%%property name%%".
}}}
... and the output would be:
{{{
Here is some page, it has some "property value".
}}}

I guess I could use interpolation (similar to sprintf() ) but it would
be great if I could use name/value pairs.

Konny Zurcher

unread,
Jan 29, 2008, 10:19:41 PM1/29/08
to steercms-...@googlegroups.com
Hi Nian,

The steerCMSPropertiesBehaviorPlugin allows to add properties to any object (site folders, pages, etc).

For a short abstract check here:

The documentation will be extended soon with some more detailed descriptions.

Cheers,

Konny Zurcher
Steer CMS - Development Team

dreglad

unread,
Jan 30, 2008, 4:25:46 AM1/30/08
to Steer CMS Developers
II think it would be great enhancement to impleent namespaces within
the proprties behavior, to be able to store different types of
metadata in an object.

For example:

getPRoperty(string $property, [string $namespace])

$object->getProperty("background-color", 'css_styles');
$object->getProperty("foo", 'other_namespace');
Reply all
Reply to author
Forward
0 new messages