Ok, i appreciate your looking into this. Let me give you an example of how this would be useful in the case jReviews users.
jReviews allows the user to create multiple directories. So a user creates a separate menu link for each directory and then he wants to assign a different navigation module to each directory. That's just a simple example, but there are a lot of other useful things that can be done with jReviews modules and specific menus, like narrowing down search results using fields that are specific to a category and require separate modules, etc.
The only thing I need is for SEF Advance to not find an Itemid if one is already found by the sef_ext.php file. It sort of works already, but not always, because sometimes it seems like SEF Advance is overriding the one I am outputting in the sef_ext file. What I did for my urls is that if it is a menu link I put something like /m/15, which means that it's a menu and the Itemid is 15, so when I revert the friendly url to it's non friendly one I do:
$_REQUEST['Itemid'] = $_POST['Itemid'] = $_GET['Itemid'] = 15
I am guessing that SEF Advance overwrites this in some cases. I can also find the Itemid myself even if the url is not in the /m/15 format. I just need a method to override SEF Advance's discovery of the Itemid.
I have not finished my tests yet, but jReviews also uses Joomla content and the content links inherit the Itemid of the directory they are in, or like with Joomla content, if a jReviews section list or category list menu exists, then they inherit that Itemid. I created my own getItemid function to do this. So I need to check whether the correct modules show up depending on what directory the content belongs in.
Thanks for your help.
Alejo