Plugins & namespace

1 view
Skip to first unread message

jsoo

unread,
Dec 17, 2010, 1:49:53 PM12/17/10
to Escher CMS Developer Mailing List
For my current project I'll have a second database for various domain-
specific models. I'm thinking of a separate plugin for each model, and
wondering about the best convention for naming. There will be tags
associated with each model so I think I need to come up with
namespaces with no underscores? Is installing this in /escher/plugins
the way to go, or is there an alternative? Any general thoughts? I was
going to start by copying the manifest, tags & model files from the
comment plugin.

Art Age Software

unread,
Dec 17, 2010, 2:05:55 PM12/17/10
to escher-...@googlegroups.com
Namespaces may have underscores, because nested namespaces are not
supported and I don't anticipate adding them in the future.

/escher/plugins is fine. You can also specify your own custom plugins directory.

See the 'app_plug_dir' config iten in admin-config.php and publish-config.php.
It can take an array of plugin directories to search like so:

'app_plug_dir' => array
(
$rootDir . '/plugins',
'/path/to/my/custom/plugins',
),

I have also written a "Vanilla Comments" plugin that integrates
Vanilla forum posts as blog comments. (It is used on the eschercms.org
site). It is an example of a custom model that pulls from an external
database. I can send you a copy if you like.

jsoo

unread,
Dec 17, 2010, 3:05:26 PM12/17/10
to Escher CMS Developer Mailing List
On Dec 17, 2:05 pm, Art Age Software <artag...@gmail.com> wrote:
> /escher/plugins is fine. You can also specify your own custom plugins directory.

Great, thanks. I take it I could also nest plugin directories, as in /
escher/plugins/jsoo/foo, and that those would load automatically? (I
see this is done with database_installer.)

> I have also written a "Vanilla Comments" plugin that integrates
> Vanilla forum posts as blog comments. (It is used on the eschercms.org
> site). It is an example of a custom model that pulls from an external
> database. I can send you a copy if you like.

Please do.

Art Age Software

unread,
Dec 18, 2010, 2:54:57 AM12/18/10
to escher-...@googlegroups.com
> Great, thanks. I take it I could also nest plugin directories, as in /
> escher/plugins/jsoo/foo, and that those would load automatically? (I
> see this is done with database_installer.)

Yes, but only a single level of nesting is currently supported.

Reply all
Reply to author
Forward
0 new messages