category widget conflict
-
Situation: Using the standard categories widget and a widget from a plugin that uses the same code as the post category widget on the same sidebar. The categories widget is set for the posts and in drop down mode. The widget supplied with the plugin set to drop down mode and displays product categories.
Both widgets displayed in drop down mode will cause only one of the widgets to work. Either the categories widget will work and the custom widget will not work or vice versa. I believe this to be a JavaScript instance problem where there can only be one instance of the drop down format being allowed to be active at a time on the sidebar page.
If this is in fact the case, it would be nice to have some admin control over the instance code and allow more than one instance of the similar widgets to run in drop down mode on the same side bar page.
Or to have code in the core that allows whichever widget has the focus at the moment to run as coded. ie. If the custom widget from the plugin has the active focus, it would be allowed to proceed as coded. If the standard categories widget has the focus, it would be allowed to run.
Maybe some kind of function with a wild card setting for the custom widget name and whatever name is used in code for the categories widget being the other switch.
In other words a switch function allowing the active selected (clicked) widget control to run its code.
- The topic ‘category widget conflict’ is closed to new replies.