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

Add posibility to check if plugin is installed and enabled from template #800

Merged
merged 1 commit into from Aug 21, 2014

Conversation

ahilles107
Copy link
Contributor

Check if plugin is installed and enabled from template.

In Our current newscoop themes we have this problem that we want to show all our features, also those provided by available plugins. So to run theme we need to setup first all required plugins. This takes time and can create issues for new users.

From 4.3 (PR-800) we can use special function in smarty templates to check if plugin is available and enable all cool features in theme.

Use example:

{{ if $gimme->isPluginEnabled('newscoop/community-ticker-plugin') }}
   // show community ticker
{{ /if }}

@takeit
Copy link
Contributor

takeit commented Aug 21, 2014

👍

ahilles107 pushed a commit that referenced this pull request Aug 21, 2014
Add posibility to check if plugin is installed and enabled from template
@ahilles107 ahilles107 merged commit b7f63bd into sourcefabric:master Aug 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants