On Tuesday 16 December 2003 13:27, James Marca wrote:
> > From: Clifton Wood <cl...@sl...>...
> >
> > > First, I can only seem to access the menu entries in the
> > > menus...
> >
> > No, this is in the API, you can either do it through Perl:
> >
> > perl -MSlash::Test=virtualuser -le \
> > 'print Dumper($slashdb->getMenuItems(<menuname>))'
>
> ...
>
> > [% menus = Slash.db.getMenuItems("admin") %]
>
> I'm sorry, I wasn't clear. I can't see any way to *edit* the menu
> items from within the admin interface. Of course I can fetch the
> data programmatically as you suggest, but I can't change the
> entries from within a running slash site. I have to either write
> a sql script or run mysql console.
Oooh! Then may I suggest this attached plugin? ;)
(Unzip in your /usr/local/slash/plugins directory and then install
it using /usr/local/slash/bin/install-plugin) -- Ping me on any
bugs you might find. I hope you are running from CVS, as that's
what this code is based on.
- Cliff
|