This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
30 Posts
tiagovareta
9 months ago
Topic

Hi,

I have a website in 3 languages (Portuguese, English and Spanish). I have 3 menus for each language, and everything works. And I use JText in Seblod.

Within these 3 menus, I have a menu for a Seblod List / Search. At this moment the articles to be listed are: http://prntscr.com/kla55v (That is, I have 4 articles in Portuguese and 1 in English).

Regardless of the active language I have, when I click on the list / search menu, the articles of all languages appear (in this case 4 Portuguese + 1 in English).

How can I show articles according to the active language?

PS: I tried to put a hidden field (Article Language), set the default language, and only filter the articles with the language I selected. The question is if I do this way I have to create 3 List & Search type. Is this the right way to do it?

Get a VIP membership
4218 Posts
Kadministrator
9 months ago
1
Level 1

You need to add article language field to the search view, than set it's live value to Url variable "lang" and it should filter by the active language. You can also set value for this field from the menu.

30 Posts
tiagovareta
9 months ago
0
Level 2

Hi Klas,

Many thanks for the reply!

Through your tip I did:
- I added the "Article Language" field in the Search Form;
- I put the Field as Hidden;
- In option 2: Live: Variable & Live Value: Configure, Variable: "Lang"

And I think it's working fine!

Get a VIP membership