10 years ago
7
Topic

Hello :)

I have discovered this issue, when creating a mulilingual Blog via Search Type:

The Language Switcher doesn't respect the url path created by SEBLOD for Blog posts.

1 - My Joomla multisite is set up exactly following the Joomla! rules with languages, categories, articles and menus properly configured,
like in this manual: http://multilingual.demojoomla.com/

2 - SEBLOD is set up properly and language switching works fine on usual Joomla pages.

3 - A Search Type is set up and used in a menu. It lists articles of selected categories.

(url is <domain>/<language>/seblod/blog.html)

In the Search Type under item view, the link for the Article title is set to link to the article view with an associated menu item "seblod-blog",
so I have control about the Joomla template to use for the Blog posts.

About the issue:
For the articles, that are displayed once I click on an item in the SEBLOD search result list,

(url is <domain>/<language>/seblod/seblod-blog/<article>)

a problem arises: the language switcher loses control and composes the url to the associated article in the form:

<domain>/<language>/<tree to home menu item>/<category tree>/<article>

So, the switching works and I get the associated article, but the Language switcher is totally ignoring the fact,
that I am accessing the article not from just anywhere, but from within the Blog Search.

Is this normal behaviour and SEBLOD cannot work together with the language switcher in Search result views,
or am I missing something?

Cheers

Get a Book for SEBLOD
10 years ago
1
Level 1

It's not just the Language Switcher.

I just noticed, that the page / article navigation buttons below the Blog article "previous" + "next"
use the same wrong menu-and category-tree urls.

4229 Posts
Kadministrator
10 years ago
0
Level 2

Hi,

please report this to the tracker, could be router needs some adjustements.

137 Posts
root
10 years ago
4
Level 1

Hi Foto Vi

I think you must first create the menu item necessary for displaying your category or categories as joomla articles, blog view. Create the menu items in all your languages, with its translated aliases too. Is not necessary to link the menu to a module. Then, the url of your seblod search or list is based on this menu item, and is not invented.

In the worst case, you can build the url by hand through html tipography invoking the fields you want to display in the url on a hidden position. For example: art_cat, art_id, art_alias and some more maybe, and doing:

<a href="/$cck->getValue('art_category');/$cck->getValue('art_id');-$cck->getValue('art_alias');">*label*</a>

This should construct always a perfect url with no problem.

Best regards.

10 years ago
3
Level 2

Hey root,
thank you for this valuable tip.

So, basically the functionality of the menu item type "Category Blog" is what SEBLOD / Joomla
uses as a the means for / fallback for routing?
WOW. I thought SEBLOD had a way of its own for content routing list results.

But then again, I haven't seen that SEBLOD has any menu item for creation of article collections like "Category Blog".

Thank you again

4229 Posts
Kadministrator
10 years ago
2
Level 3

Seblod has its own Search&List type menu, for good results you should create such menu pointing to your search type -you should not mix Joomla and Seblod menus if you would liek to have good urls. In the search type, when you create a link to the item view, you can choose which menu to use for that link, often it is necessary to specify this as Auto option does not always work ok.

10 years ago
1
Level 4

Hello Klas,

if I do that and use two separate SEBLOD list menu items for both, list and article view,
the language switcher and prev/next navigation go crazy.

I need two different menu items so I can assign different Joomla templates to list and article view.
The issue is already reported.

Thank you for helping me :)

4229 Posts
Kadministrator
10 years ago
0
Level 5

Pehaps this detail can help you - you need to edit your list field links and select right menu, automatic menu is the one you are already in so to assign different one you need to chage this.

Get a VIP membership