I have multiple modules set to display on all pages except those selected. Most of the views in my component have a regular menu item assigned and as such I can add them to the 'BUT the selected list'.
Now I also have a view without a menu item. Since this view is called with different parameters, I can not use the hidden menu option since the
GetMenu()->GetItems('link' ...) function will NOT find the menu item if it end with
&cid=13 the next time.
I would have to create 30 or 50 hidden menu items, for each parameter .. then exclude each from the module. I would rather not do that.
Is there another way to avoid loading a module in my component view?
EDIT: I am aware I can use some code to switch to a template without the module positions in question, but since that's more of a hack I would rather not fall back to using the template switch.