sanPuerquitoProgramador / simple-awesome-gallery

Plugin for OctoberCMS. Create photo galleries and display them in a single way or link it to a RainLab Blog Post and display inside the post
2 stars 3 forks source link

Allow Standalone without Rainlab.Blog #5

Open sqwk opened 6 years ago

sqwk commented 6 years ago

Since the plugin uses a many to many table for handling the relationship with Rainlab.Blog, it can also be used without it. I have been using an edited version of the plugin in production without any problems.

In case a check for Rainlab.Blog needs to done, this would work:

if (PluginManager::instance()->hasPlugin('RainLab.Blog')) { }