Flexicontent Search view / Advanced Search Plugin

More
2 years 7 months ago - 2 years 7 months ago #80748 by bytekultur
Hi, my client has two searchble types on his website: articles and products, and he has a search module, routing to the flexicontent search view.
It seems that for products, the search results route to the correct product detail view including the correct menu item (which is a category view of the item's category)
For news articles however (everything seems to be set up the same way there), the results are routed to the default menu item, even though there is a menu item (category view) for all news articles. In both cases, there is a categoryslug and item slug available.

In the flexicontent search result view, I see you are using this line for the routing:
Code:
$item_link = JRoute::_($result->href);

I have adapted that in an override to the following (only for flexi items, $item_link will equal $flexi_link):
Code:
$flexiSlug = $result->slug; $flexiCatSlug = $result->categoryslug; $flexi_link = JRoute::_( FlexicontentHelperRoute::getItemRoute($flexiSlug, $flexiCatSlug) );


This way it works fine. Is there a reason why you don't do this, or a configuration that does the same with the standard Routing?
I ask because for sleek updating routine, I would like to avoid overrides if possible.

Terry
Last edit: 2 years 7 months ago by bytekultur.

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

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