Automatic redirect from the article view to flexi item view

More
10 years 1 month ago #45781 by b2z
ok will PM examples

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

More
10 years 1 month ago #45846 by ggppdk
Hello

i have found the reason:
the 1-SEGMENT after CAT_MENU_ALIAS is interpreted differently in com_flexicontent SEF urls:

-- in com_flexicontent it is always a category id
but in com_content it is a article id

-- and you have changed the menu items from being com_content category menu items to being com_flexicontent category menu items



I understand that the above can be a problem in existing Joomla sites. Probably solution is to make this selectable via a parameter:


Parameter
Use /item/ in item SEF urls
- Yes
- No

Description: /item/ is appended after category menu alias to make an item SEF urls, you can select not to use this. This is needed if you are installing FLEXIcontent on an Joomla site that already has bookmarked links and links indexed by google and you want to change Joomla category menu items to be FLEXIcontent category menu items)


NOTE:
the above will not break any FLEXIcontent links using /item/


-- 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 1 month ago #45847 by ggppdk
Hello

added the parameter in r1871

and modified FLEXIcontent SEF creation/routing code to support it (file: route.php at FLEXIcontent component folder)

FLEXIcontentBuildRoute() // Creates /segments/ of SEF urls

and

FLEXIcontentParseRoute() // parses(interprets) /segments/ of SEF urls

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.

More
10 years 1 month ago #45848 by b2z
Great news! Thank you very much for this. I am sure that not only I will be happy - many users want to remove /item/ from the URL. I hope it will not break existing sites running FC.

Happy coding to you ;)

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

More
10 years 1 month ago #45849 by ggppdk
Hello

- it will not break existing sites, even if you remove /item/, because existing URLs will be interpreted correctly (=no integer after menu alias is the FLEXIcontent view to be rendered)

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.

More
6 years 8 months ago - 6 years 8 months ago #68951 by despair
Hi~ I have the same problem on my site.
I use a calendar module to display article.
one of my article link in this calendar is www.gsscloud.com/tw/component/content/ar...my-talk-8?Itemid=101
The content do not redirect to FC view.
The below link is the same article with FC view.
www.gsscloud.com/tw/academy/talk/951-vital-academy-talk-8

Any setting should I do to solve this problem?

www.gsscloud.com/tw/academy
my site is joomla 3.7.4 FC3.1.1.
and run on PHP 7 + ngnix and apache.
Attachments:
Last edit: 6 years 8 months ago by despair.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.329 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