[SOLVED] SEF URLs not correct for category and search view

More
9 years 5 months ago - 9 years 5 months ago #54400 by agata
Hi, I'm having problems with SEF URLs on my flexicontent site in category view:
sandbox-select.wilddog.co.uk/tours/destinations/france
as well as the search view:
sandbox-select.wilddog.co.uk/search?sear...archphrase=all&areas []=flexicontent

For example a URL leading to an item should be:
sandbox-select.wilddog.co.uk/tours/mfl-t...oach-4-days-3-nights
but what I get is:
sandbox-select.wilddog.co.uk/tours/mfl-t...oach-4-days-3-nights

All articles have menu items linking to them so the URLs should respect the structure of the menu. I figured out that in the file category_items.php in the template if I change
Code:
<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug, 0, $item)); ?>
to
Code:
<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug)); ?>
the URL generated is correct. However I don't know what to do with the code for the search override, which is as follows:
Code:
<?php echo JRoute::_($result->href); ?>

Any ideas as to how to resolve this?
Best,
Agata
Last edit: 9 years 5 months ago by ggppdk.

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

More
9 years 5 months ago #54424 by ggppdk
Hello

you need to mention FLEXIcontent version

it should be good with v3.0.0 BETA6b:
www.flexicontent.org/downloads/latest-version.html


also v3 BETA7 (do not install yet in live site), renders all multi items views (default for new installation not when upgrading) via category
- favs, tags, author, myitems, mcats
adding new type of URLs and updating SH404SEF plugin


-- 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...
The following user(s) said Thank You: agata

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

More
9 years 5 months ago #54432 by agata

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

More
9 years 5 months ago #54434 by agata
Thank you, that worked like a charm and the back-end looks snazzy too, glad to see the project is still very much active.
Cheers,
Agata
The following user(s) said Thank You: micker

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

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