Fork me on GitHub

Plugins instead of blocks?  Bottom

  • I've noticed an increase in performance as well as flexibility replacing blocks with plugins. It also allows greater control of output and placement and removes the issue of blocks loading on pages from which they're not called on. The "block" methodology is pretty old, I'm just curious if anyone else has considered this method as a possible replacement?
  • Hypothetically, we have spoken in the past about replacing / removing blocks with special module outputs - since a block is just a module output templated in a particular manner. It's something to think about post .8 anyway.

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • Devin,

    Yes it's something i've thought about. You've identified the most of the positives. There are a few negatives though.... The first is usability; new users need to get down to templates and plugins very quickly.

    The next is that any configurable options need to be passed as plugin parameters. This makes setting up the plugin harder than configuring a block via the GUI. This also places limits on potential input - imagine, for example, how the menu block would work as a plugin.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Hi Simon, Mark,
    I thought about those issues some.. but I don't have any good answers :) ..maybe "plugin" configurations on the module level.. say an admin type hook that looks for plugins (ie: function.block_someblock.php), etc. maybe a "plugin registry", ala blocks .. yeah, I don't know, I don't think that puts the ease of use back into the equation. Anyway, it's not obstructive, seems a valid utility.. look forward to seeing what you guys come up with though.

    thanks for the input
  • 0 users

This list is based on users active over the last 60 minutes.