Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / AdsManager: wrong ItemId with multilanguage

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

AdsManager: wrong ItemId with multilanguage

More
11 years 2 months ago - 11 years 2 months ago #3648 by immonnezza
I have 2 Menu (English one and Italian one)
Into the English menu i have the menu_item (id 226) pointing to Adsmanager "Home".
Into the Italian menu i have the menu_item (id 228) pointing to Adsmanager "Home".

When i recall the English Adsmanager Home menu (com_adsmanager&view=front&Itemid=226&lang=en),
links for each Ad present on the page correctly show ItemId (com_adsmanager&view=details&id=7&catid=11&Itemid=226&lang=en)

But, when i recall the Italian Adsmanager Home menu (com_adsmanager&view=front&Itemid=228&lang=it),
link for each Ad present on the page show a wrong itemid (com_adsmanager&view=details&id=7&catid=11&Itemid=226&lang=it)

I tryed to create an English "Home" menu with Highter itemid (id 230), and in this case AD links point always to the italian one (228).

Basically with multilanguage menu, the component take the Home menu with lower ItemId, ignoring the language.

I suppose it is connected to router.php or route.php file, but before i make any change, can you tell me if you already know about this wrong behaviour?

Thanks.
Last edit: 11 years 2 months ago by immonnezza.
The following user(s) said Thank You: adarr
More
11 years 2 months ago - 11 years 2 months ago #3649 by immonnezza
Replied by immonnezza on topic AdsManager: wrong ItemId with multilanguage
Maybe i can answer myself and receive an explanation:

Link is calculated by file /components/com_adsmanager/lib/route.php

In line 241 $url is defined using the view details ('&view=details%').

In the next query, $url is defined to find the right menu,

BUT i do not have a "details" menu.
(Actually i only have Adsmanager Home menu, and i don't understand why should i create a menu that open an empty AD...)
so the query give no results!

What am I missing?
Last edit: 11 years 2 months ago by immonnezza.
The following user(s) said Thank You: adarr
More
11 years 2 months ago #3658 by tompap
Replied by tompap on topic AdsManager: wrong ItemId with multilanguage
Normally the process is the following, check if there is a specific details view for the item, if no check if there is a details view for the item, if no, check if there is a list view of the same category, if no check if there is a list view, if no check if there is a front view.

And in the same time we should take care of the language also.

Just to try to reproduce:

Could you give me the list of menu item of type adsmanager (details, list, home with corresponding language)
The link that is not taken the correct Itemid
The following user(s) said Thank You: adarr
More
11 years 2 months ago - 11 years 2 months ago #3668 by immonnezza
Replied by immonnezza on topic AdsManager: wrong ItemId with multilanguage
Hi,
I reproduced the issue, and this is the situation starting from the English List View:
/index.php?option=com_adsmanager&view=list&catid=0&Itemid=180&lang=en
Clicking to recall Details of an Ad present on the page, it will use ItemId 167 instead 180.

Menus related to AdsManager are:
WriteAd(EN) /index.php?option=com_adsmanager&view=edit&Itemid=168&lang=en
WriteAd(IT): /index.php?option=com_adsmanager&view=edit&Itemid=167&lang=it
ListAd(EN):/index.php?option=com_adsmanager&view=list&catid=0&Itemid=180&lang=en
ListAd(IT):/index.php?option=com_adsmanager&view=list&catid=0&Itemid=179&lang=it


Other considerations:
-i removed any hidden menu
-main menu do not contain any item to AdsManager
-The are 2 menu (italian and english) and each of them contain the corresponding WriteAd and ListAd (as specified above)

Sorry if i made some mistake, but i did this very quickly
Hope this help ;-)

Edit: i had to modify my development, so i modified the present message leaving the example, but removing the real link
Last edit: 11 years 2 months ago by immonnezza.
The following user(s) said Thank You: adarr
More
11 years 2 months ago #3681 by tompap
Replied by tompap on topic AdsManager: wrong ItemId with multilanguage
I added this to the check list (next week I think)
The following user(s) said Thank You: immonnezza, adarr
Moderators: perry
Time to create page: 0.135 seconds
Powered by Kunena Forum