Disappearing modules + other minor issue jReviews

17 years 2 months ago #208 by Saka
alejo: a single component is suposed to have only one menu link and only one Itemid, not multiple Itemids.
What you do (artificially attaching Itemids) is not standard Joomla behavior. While it may work when SEF is off (because you can simply add it to URL) it is not supported by SEF Advance (because you don't pass Itemids in URLs but SEF Advance calculates it instead).

I will see if there could be some workaround used in the extension file but can't do it immediately as I am not at the office. I will get back to the topic in regular working hours.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

17 years 2 months ago - 17 years 2 months ago #210 by alejo
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 = $_POST = $_GET = 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

jReviews :: Directory / Ratings / Reviews
www.reviewsforjoomla.com

Please Log in or Create an account to join the conversation.

17 years 2 months ago #211 by Saka
Yes I understand.
I will look into it and get back to you soon.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

17 years 2 months ago #228 by Saka
Hi,

I have looked into this issue and here is how you can override setting of Itemid from within the extension:

First determine $Itemid. Then set:
$_GET = $Itemid;
$_REQUEST = $Itemid;

Then create this variable:
$QUERY_STRING = "option=$option&Itemid=$Itemid";
Don't forget to globalize it if it's within a function.

This should now override the Itemid setting of the SEF Advance.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

17 years 2 months ago #229 by alejo
Thanks! I really appreciate this and I will try it soon. Would it be possible to extend the trial license for a few days?

jReviews :: Directory / Ratings / Reviews
www.reviewsforjoomla.com

Please Log in or Create an account to join the conversation.

17 years 2 months ago #230 by Saka

Would it be possible to extend the trial license for a few days?

I reset your record so you can download the trial again.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch