Support » Plugin: Content Aware Sidebars - Unlimited Widget Areas » [Plugin: Content Aware Sidebars] More advanced control over replacement rules

  • Let’s say I have the following post types:

    Cars, Boats, and Planes.

    And then I have a tag called “vintage”.

    And I want my sidebar to appear on any content tagged with vintage, and all posts with Cars, regardless of whether they were tagged with vintage or not.

    There are two ways of handling this “and”. A boolean intersection, or a boolean union (which in this case would be more like an “or” rather than an “and”).

    This plugin seems to choose the intersection approach, whereby if I check off Cars and vintage, it doesn’t apply the sidebar to all content tagged with vintage, and all cars. It only applies it to all car posts tagged with vintage.

    (the same is true for page templates, categories etc – the plugin seems to let you get more and more exclusive, rather than more and more inclusive).

    So that got me thinking that it would be nice if the plugin let you define your own boolean logic rules for determining which pages/posts/taxonomies get which sidebars.

    Any thoughts on this?

Viewing 1 replies (of 1 total)
  • Plugin Author Joachim Jensen


    If Cars, Boats and Planes do not support any taxonomies themselves, then the setup could work, but you are right about the dependency.

    While you can make extremely focused rules for your sidebars, this also comes with some inflexibility as you have described. To fix this “issue” I have thought about implementing Rule Groups, which also will bring some other nice possibilites to the plugin. While steps has already been taken in this direction in the latest versions, there are still lots to do, and I do not have as much time for the plugin as I wanted, so it will probably be some months before this is implemented.

    Defining logic rules yourself could be a good idea, as done in the popular Widget Logic plugin, but I doubt that most WordPress users understand PHP, and at the same time Content Aware Sidebars’ current rule handling is faster, because most is done in SQL.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Content Aware Sidebars] More advanced control over replacement rules’ is closed to new replies.