1

Our component depends on the users permission to edit articles, but is intended to intervene with that editing process, so the icon that allows the article editing to occur is a problem for us.

GLobal configuration allows setting some options,etc., but I've been unable to actually stop the icon from being there as long as the permissions allow editing.

Can the feature be turned off without needing a template override of some kind?

2

A Content Plugin can accomplish this. To prevent F/E editing for articles this works:

public function onContentBeforeDisplay($context, &$article, $params, $page=0) {
    if( $context == 'com_content.article' ) {
        $article->params->set('access-edit',0);
    }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.