WordPress.org

Ready to get started?Download WordPress

Forums

Content Aware Sidebars
More advanced control over replacement rules (2 posts)

  1. CrazyPanda
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/content-aware-sidebars/

  2. Joachim Jensen (Intox Studio)
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.