can a system plugin display error message?

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
helives
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Oct 23, 2007 7:28 pm

can a system plugin display error message?

Post by helives » Wed Jan 30, 2008 7:12 pm

I've written a simple access control system plugin that blocks access to certain areas of the site based on privileges i've stored in the db.  I block the access by changing the task in "onAfterInitialise()" from edit or save or new to nothing, but I want to also display a message on the page when it loads that says something like "you do not have access to edit this page"

How can I add this kind of error message to the page from this plugin?  I saw that I could set the message from a controller, but this isn't a controller... help?

thanks in advance

Post Reply