Disappearing modules + other minor issue jReviews

17 years 3 months ago - 17 years 3 months ago #199 by alejo
Hi Saka:

I downloaded the trial and have been testing it with the jReviews sef_ext.php file I had created for OpenSEF. Amazingly it works perfect, without changes. There are a couple of issues though:

1) Itemid on pagination: In jReviews, when I send a link to the pageNav class I use $_SERVER to send all the url parameters. For some strange reason, when SEFAdvance is on, it adds a second Itemid with the wront number right after the option parameter which ends up messing up the pagination. I had to put a bit of code to strip the first Itemid found on the url so it works ok.

2) Disappearing modules: I read on this forum that someone else had a similar problem with iJoomla. The problem is that modules assigned to specific menus don't show up. Only modules assigned to all pages work. I understand that this is related to Itemid and that after reverting the friendly url to it's non friendly state the Itemid is lost and the module does not show up.

Is figuring out the Itemid part of the work that needs to be done in the sef_ext.php file in the revert function and then add it as a url parameter? I guess OpenSEF's easy way of doing this is to append the Itemid to the urls,  how do you typically resolve this issue?

Thanks!

Alejo

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

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

17 years 2 months ago #202 by Saka
Both are Itemid issues. SEF Advance finds the correct Itemid for you so just make sure you don't have duplicates or trashed menu items according to: www.sakic.net/support/faq/sef_advance/#16

You don't have to worry about adding or appending Itemid in the extension file because Itemid is calculated by SEF Advance instead.

Emir Sakic
www.sakic.net

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

17 years 2 months ago #203 by alejo
I don't have duplicate name menus or trashed menus, but I guess the problem is that I do have multiple different name menus that look like this:

index.php?option=com_jreviews&Itemid=x
index.php?option=com_jreviews&Itemid=y
index.php?option=com_jreviews&Itemid=z

It seems SEFAdvance picks up the first Itemid it finds for jreviews and that's why it is adding the wrong one to the pagination and why modules disappear. Is there a solution to this? Each menu has a different functionality depending on the menu parameters chosen.

Thanks for the previous response,

Alejo

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

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

17 years 2 months ago #204 by Saka
That's not standard Joomla! behavior. You should always have only one Itemid for a single component.

You could, however, use alias as workaround.

Emir Sakic
www.sakic.net

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

17 years 2 months ago #205 by alejo

That's not standard Joomla! behavior.


What do you mean? It's a lot easier for users to create menus this way than having to look up somewhere that they should create a url menu and put in:

index.php?option=com_jreviews&task=this¶m=that&so=so

I understand the Item ids get messed up with SEFAdvance, but as long as it is possible to retrieve the Itemid it works ok, as is the case with Joomla core sef.

At what point does SEFAdvance append the Itemid? Maybe I can strip it and put in my own? I just want to use this as a work around, but I understand the problem and will try to instruct my users to use the "other" way of creating component menus.

Thanks again,

Alejo

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

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

17 years 2 months ago #206 by alejo
Hi again.

Apart from the following problem everything seems to be working great. I would be nice to solve this because my customers will be happy to be able to use SEF Advance.

So the problem, as stated in my previous posts is disappearing modules or they simply never appear.

If a person wants to have multiple menu links for different jReviews tasks
and for each menu he wants to assign a different module, the modules just don't show. The links need to be created as url menus, per your comment above about using parameters not being a Joomla! standard. This is what the menus look like:

index.php?option=com_jreviews&task=listsection&dir=1§ion=1
index.php?option=com_jreviews&task=listsection&dir=1§ion=2

I am really looking forward to figuring this out. The FAQ about pathway, etc. is fine and I understand what needs to be done for core Joomla content, but what about 3rd party components?

Thanks,

Alejo

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

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