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

Projects
None yet
2 participants
@ahilles107
Copy link
Member

ahilles107 commented Aug 21, 2014

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

This comment has been minimized.

Copy link
Member

takeit commented Aug 21, 2014

👍

ahilles107 added a commit that referenced this pull request Aug 21, 2014

Merge pull request #800 from ahilles107/master
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