Xmap URL: itemId is wrong?

More
11 years 9 months ago #46822 by Pheno
I am trying to migrate a j1.5 site to j3.x (I have been trying off and on for 2 years now!).

My current problem is that the URLs generated by Xmap with the Flexicontent plugin (v2.0.0-b) are not appending the necessary itemId.

For example, this is a URL on the j1.5 site:

&cid=179:turn-of-the-century&id=2243:carl-oswald-bulla&Itemid=149

This is the URL for the same item on the J3.2 site:

&cid=572:photographer115&id=2243:carl-oswald-bulla&Itemid=119

The category of the item is "Photographer" which is a child category of "Turn of the century".

"Turn of the century" is assigned to menu item 149. "Photographer" is not assigned to a menu item.

ItemId 119 is the flexicontent hidden menu item.

In both the J1.5 and j3.2 sites, the item is listed several times in the sitemap. In the j1.5 site, the item Id is different for every listing. In the j3.2 site, the itemId is always 119.

Would it be possible to change the Xmap flexicontent plugin to make it add the item ID? Ideally, it would find the item Id which corresponds to the nearest category in the heirarchy to the item's main category.

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

More
11 years 9 months ago #46823 by ggppdk
Replied by ggppdk on topic Xmap URL: itemId is wrong?
Hello

let's discuss of this , the XMAP plugin is calling the FLEXIcontent SEF URL creation function, so no changes to the XMAP needed, if any there should be in the

FLEXIcontent SEF URL creation function:
FlexicontentHelperRoute::getItemRoute()

there were some bug with it, due to new features, further more there are parameter in component configuration and in content type that may effect the menu item selected

which FC version/revision do you have in J3.2 ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
11 years 9 months ago #46824 by Pheno
Replied by Pheno on topic Xmap URL: itemId is wrong?
I'm using 2.1.3 r1857

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

More
11 years 9 months ago #46826 by ggppdk
Replied by ggppdk on topic Xmap URL: itemId is wrong?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
11 years 9 months ago #46836 by Pheno
Replied by Pheno on topic Xmap URL: itemId is wrong?
I'm getting the same thing with v2.2.0 : items which are in a category that does not have a menu item assigned are always given itemid 119 (hidden flexicontent menu).

The sitemap is here: www.rusartmarch.co.uk.gridhosted ... Itemid=264

Another strange thing is that the items are included multiple times, even though I have the "In main category only" setting in xmap set to "Always". For example "Carl Oswald Bulla" is in the sitemap 4 times. (If I set it to "Never" it gets included 14 times.)

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

More
11 years 9 months ago #46837 by ggppdk
Replied by ggppdk on topic Xmap URL: itemId is wrong?
Hello


1. about main category only, it works, it will not be included multiple times via secondary categories

but an item can appear multiple times, e.g. example of item appearing 4 times:

- once via a item view menu item
- once via its main category
- once via a multiple category menu item
- once via a tags menu item

can you identify a case that does not fit the above?
for example (problem): under main category CAT1 , the items of the are listed 4 times


2. about the menu item chosen, the current routing does not search for parent categories, i guess it makes sense to use them, will evaluate performance of this for next update,

-- we have an idea how to make menu item searching faster, then possibly the closest parent category found can be used ?

-- currently our routing function does not support this

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
11 years 9 months ago #46839 by Pheno
Replied by Pheno on topic Xmap URL: itemId is wrong?
Thanks for your interest in this ggppdk - it's appreciated.

Here's my answer to your question:

- once via a item view menu item
There are definitely no flexicontent menu items pointing directly to flexicontent items.
- once via its main category
OK
- once via a multiple category menu item
I don't think so. All the menu items on the site are of type FLEXIContent » Category
- once via a tags menu item
There are no tags menu items.

One thing there are, is menu items pointing to parent categories (which are also minor categories of the item). So for example, the item "Carl Oswald Bulla" is in the following categories: Biographies , Russian Artists , 20th Century , Turn of the Century , Photographer

There is a menu item for each of the 4 parent categories, and also one for the main category (I created the latter since my previous posts on this thread).

The item is listed 5 times in the sitemap:http://www.rusartmarch.co.uk.gridhosted.co.uk/index.php?option=com_xmap&view=html&id=1&Itemid=264

Incidentally, none of the URLs in the sitemap have a menu id corresponding to any of the categories. They all use itemId 119 (hidden menu).

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

More
11 years 9 months ago #46842 by ggppdk
Replied by ggppdk on topic Xmap URL: itemId is wrong?
Hello

if you have this:

ParentCat1
|_Cat2
|_Cat3
|_Item4

and you create 2 menu items:
- ParentCat1
- Cat2

then Item4 will be listed twice,
- once in the subTree of ParentCat1
- once in the subTree of Cat2

is the above the case ?


Also the above item will use the "default" menu item because there is no menu item pointing to his category


Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
11 years 9 months ago #46846 by Pheno
Replied by Pheno on topic Xmap URL: itemId is wrong?
Yes that's the case, so that explains why the item is in the sitemap 5 times.

But I do have a menu item for the main category of the item, but none of the 5 URLs in the sitemap have this itemId.

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

More
11 years 9 months ago #46852 by ggppdk
Replied by ggppdk on topic Xmap URL: itemId is wrong?
Hello

the categories of the item should be selected in any case, unless you have set to override this is content type configuration (you can have a default menu item per content type too, which can be configured to take priority over the category)

also, the menu item id selection depends also on the SEF URL configuration of the component, can you post a picture of it ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save