URLs in category

More
10 years 2 weeks ago #50295 by Tomoe
URLs in category was created by Tomoe
Hi,
First of all, it's a site in Joomla! 2.5.27 with FLEXIcontent version 2.2.0 r1974. Quite a large site with 525 items.

Problem. Some pages are displaying categories. Each item of these categories is linked to a menu, especially for 'clean' URLs. For some categories, URL of items are a mix of 'clean' URLs and system URLs. For example, www . tourisme-japon.fr/a-voir-a-faire/art-et-culture. On this page, if you click on 'Musées et galeries d'art', URL is .../art-et-culture/musees-et-galeries-d-art, but if you click on 'Sélection de musées' from this same category page, URL is .../art-et-culture/selection-de-musees/58-art-et-culture/297-selection-de-musees, which is obviously a system URL. But if you click first, let's say on 'Musées et galeries d'art' and then on the sub menu on the right on 'Sélection de musées', this time it's the right URL .../art-et-culture/selection-de-musees.

Unsatisfactory solution is to suppress each menu item linked to problematic article and reconstruct it. But there is quite some, and in addition there is 3 websites, French, Italian and Spanish, each of them about the same size. So quite time consuming (of course, it's not only menu item but also modules linked with it). I tried to rebuild menu on menu manager, but it didn't solve the problem.

Do you think about a solution to solve this problem ? Thanks in advance.

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

More
10 years 2 weeks ago #50300 by ggppdk
Replied by ggppdk on topic URLs in category
Hello

-- for ALL item url, the MENU ITEM e.g. menu item no 453, that points to the closest parent category of item's category is selected


so you always get:
/menu-alias1/menu-alias2/.../cat_menu453-alias/



The above is STEP 1: that will tell Joomla that the URL is a FLEXIcontent URL because last menu-item is a FLEXIcontent menu item



Then STEP 2: After this, we need to tell what to display, and append to URL the information not already in the menu item, here are most cases:



-- CASE a: menu item points to some parent category of item's category (*), so after above is done we append
.../catid-catalias/itemid-itemalias.html

(*) or does not point to item's current category


-- CASE b: if the matched menu is item's category, then we append:
.../item/itemid-itemalias.html


-- CASE c: you have a menu item pointing to the item, then you get:
.../menualias.html


-- 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...

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

More
10 years 2 weeks ago #50302 by ggppdk
Replied by ggppdk on topic URLs in category
Hello

besides my above answer, your question is already answered in our FAQ, please read:

1. Creating shorter/nicer SEF urls and structure of item URLs

2. Structure of FLEXIcontent SEF URLs




please NOTE:
-- The ways URL is constructed is that we use what Joomla provides:

a. select a menu item, so that Joomla knows which component to use

b. then all information not already in the menu item, is appended with some extra segments to tell what exactly to show


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...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.289 seconds
Save
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