[Explained] double category in URL

More
12 years 5 months ago #25803 by ameliste
Hello,

when I create menu of category / subcategory and I want to display the article the url of article is

domain.com / category / subcategory/id-subcategory/article-alias

Is it possible to remove id-subcategory from URL?

Thanks
Ameliste

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

More
12 years 5 months ago #25807 by micker
wihout sef component ... no
witch version of flecxicontent ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 5 months ago #25810 by ameliste
Last version of Flexicontent. I am not sure if I have good explained what I wanted ;) ...

I would like not to display in url the same subcategory,

for example if I have in menu
category fruits and subcategory apple

in url of article I have

www.domain.com / fruits / apple / 123-apple / article

I would like to not have to times apple category :)

Thanks

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

More
12 years 5 months ago #25811 by micker
we 2 version .... 1.5.6 and 2.0 ... please tell me version
did you test pathway option in flexicontent global config ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 5 months ago #25812 by ameliste
this version 1.5.6 - for joomla 1.5

And yes I have tested the pathway options.

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

More
12 years 5 months ago #25813 by ggppdk
i am guessing that the 2 first segments (category/subcategory/) after domain are 2 menu items (their alias) on inside the other.

The 3rd segment id-catalias is the current category:
category id + category alias = category slug

and 4rd segment id-itemalias is the displayed item:
item id + item alias = item alias

Joomla decides the component to give the URL to (a procedure called routing) via the 2nd menu item 'subcategory'

if flexicontent code is then given the URL after the menu item aliases, meaning it is given part 3 and 4.

Then flexicontent url parsing code tries to decide by the first segment (in our case is the 3rd segment of the original URL) which page to show

we have 2 ways of deciding the page to show:
-- 1. first segment must be the 'view' (method 1): item,category,tags,favourites, etc, then it is followed by various variable values that depend on the view.

-- 2. first segment is not view (e.g it is 45:contact) then we decide by the number of segments (this is method 2) : If it is length one it is category view, if it is length 2 it is item view

you see that if we remove the 'id-category' then the code will no longer recognize item view but instead it will recognize item view,

so we can not remove segment 'id/category' because then the 'id-item' will be then considered to be the id of a category !!!

Also we can not do something more radical would mean that we would break compatibility with existing URLs

In short it is not possible without causing more problems and headaches, only other alternative is to use some SEF component that uses DB tables to map the SEF urls to appropriate pages

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