Skip to content

Create a warning inside plugin configuration when Article's manager parameter "Show article options" is disabled #5

@ggppdk

Description

@ggppdk

Check and show messages inside plugin configuration, e.g. check Article Manager parameter show_article_options which will prevent SocialMeta TAB from showing inside article form


  • Either create a new form element (parameter) (for better placement):
class JFormFieldSocialMetaChecks extends JFormFieldList
  • or via enqueueing a message on as system event of the plugin
JFactory::getApplication()->enqueueMessage('..', 'warning');

So to avoid user wondering why social TAB is not showing when:

JComponentHelper::getParams( 'com_content' )->get('show_article_options') == 0

We need to add a warning message like:

'Article manager' parameter: "Show article options", needs to be enabled otherwise,
plugin's 'Social' parameter TAB , will not be shown in the article form

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions