logo

Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

Two arguments in Views

22/02/2025, by Anonymous (not verified)

Views 7.x-3.5. Hello. How can I combine 2 contextual filters in views? There is a content type with two titles in Russian and Latin (2 fields: title and field_latin, for example). For this content type, the standard glossary that comes by default in views has been cloned and configured. The whole problem is that I can't set up the contextual filters for the aforementioned fields in such a way that the search is performed on both of them at once. In the query generated by views, there is a condition (when the filter 'д' is present in the URL): WHERE (( (SUBSTRING(node.title, 1, 1) = 'Д') ) AND (( (node.status = '1') ))) but ultimately I want to achieve something like this: WHERE (( (SUBSTRING(node.title, 1, 1) = 'Д') OR (SUBSTRING(field_data_field_latin_title.field_latin_title_value, 1, 1) = 'Д')) AND (( (node.status = '1') ))). I'm not sure I've described the problem clearly enough, so I'll try to add a bit more clarity: I want to find all materials where the values of different text fields specified in the contextual filters of views start with L, using a URL like mysite.ru/glossary/L. If you're interested in this issue, my Skype is ivan-malenko (I've already sent you a request). I will share a working version for a similar solution and would be happy to hear your comments or a simpler solution to the described problem.