Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ggppdk opened this issue May 15, 2016 · 1 comment
Assignees

Comments

@ggppdk
Copy link
Collaborator

ggppdk commented May 15, 2016

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

@ggppdk ggppdk self-assigned this May 15, 2016
@ggppdk ggppdk changed the title Create a warning inside plugin configuration when "show article options" is disabled Create a warning inside plugin configuration when Article's manager parameter "Show article options" is disabled May 15, 2016
@vistamedia
Copy link
Owner

Agreed, I didn't even know this option. I will add a notice for the superusers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants