A little off-topic, but wondering if someone can shed some light on the CategorySources plugin.

A client site has hundreds of articles (in an 'articles' structure) that are currently assigned to categories via a categories field. It would be great if they could view the articles by category (which I assume is what the plugin is for?). I installed, activated, and selected the category groups in the plugin settings, but I'm not seeing any obvious changes to the CP. Where are these mysterious category sources? Or am I missing the point? The plugin docs are a bit light on specifics.


IMO, the plugin serves two purposes... one of which is simply to serve as an example for how to use the modifyEntrySources hook.

Beyond that, the plugin will provide you with an alternative way to view your Entries. You'll notice that the categories which you selected now appear as entry sources on the left sidebar under the Entries tab.

Oh, and Craft 2.3.2629 is required... that's when modifyEntrySources was introduced.

  • I'm getting old... you beat me.
    – Brad Bell
    Feb 21 '15 at 5:57
  • 1
  • hmmm... that's what I assumed as well. But I'm on the entries index page and see nothing in the left hand column. Must be broke?! I assume it works with entries defined in both channels and structures? Feb 21 '15 at 7:56
  • Triple-check that the plugin is enabled and the Category Groups you want are selected in the plugin's settings. It's working great for me! If you're still having problems, maybe file a bug report with P&T.
    – Lindsey D
    Feb 21 '15 at 8:05
  • 2
    haha... ah yes... having a version of craft which supports categorySources would probably help a lot! Just updated. Much better. Thanks. Feb 21 '15 at 8:11

The plugin is mainly an example of how to use the new modifyEntrySources hook.

Go to the entry index page and you should have the category groups you selected in the menu on the left hand side.

If so, click one of the categories in the left hand menu and you'll see any entries that have category fields with them selected.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.