248 Posts
Giuse
7 years ago
5
Topic

Hi, I tried to pass [lang] from a content view to a Form & List field (the commercial plugin) to filter only article of a certain language:

art_language = "[lang]"

but it seems not to work. It is not the same as filtering directly in the Form&List plugin, since I need to call it with a specific language or with "*" to display all language articles.

Is it a bug or is it a feature request?

Also "[lang]" or [lang] seem not to be supported as live values parameters. Is there another variable that can be used?

thanks a lot

Giuse

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
2
Level 1

You can set filter to live value lang variable, why would you need [lang] ?

248 Posts
Giuse
7 years ago
1
Level 2

I have a list type that is called by different content types via the form&list plugin.

In some cases the list must show only articles in a specific language, in other cases it must show articles in all languages.

That's why I am trying to pass a language parameter to the list: if I pass current language => the list will show just one language, if I pass an asterisk => the list will show all languages.

But passing lang does not seem to work..

Does it make sense?

Thanks

248 Posts
Giuse
7 years ago
0
Level 3

Hi, I hope to have explained better the use case. Is it [lang] supported as a value passed to a Form&List field?

Or can I pass a value that has no storage in the Form&List field? I mean, can I pass something like "child_option=value" where child_option is a field in the child list type being used to tune the list output so without storage?

Thanks a lot

cheers

Giuse

4229 Posts
Kadministrator
7 years ago
1
Level 1

You shuld pass current alnguage and follow this tutorial to add  *

248 Posts
Giuse
7 years ago
0
Level 2

Thanks Klas, but I have two problems:

  • you say "You should pass current language" => how to do that? If I pass "[lang]" from parent content, it does not work: the debug mode shows that child content filters "WHERE art_language = [lang]" that is not correct.
  • I need to pass a parameter from parent to child to trigger filtering "all" languages or "currrent" language. If I define a new field with no storage for passing this parameter, it does not work. Is there a proper way to do that?

thanks a lot

Giuse

Get a VIP membership