New answers tagged

0 votes

Views Default Contextual Filter

In the views advanced Provide default value.
Neelanjana Das's user avatar
0 votes

Is there a way to default sort by date when no search keywords have been used, but default sort by relevance for all searches?

I have almost the same use case. I tried your approach but unfortunately it didn't work for me. After two days of research, I got a working version. The key is SearchApiQuery::getSort() where you can ...
John Doe's user avatar
0 votes

How to render formatted text field from paragraphs as is in twig?

Never use raw, it will hurt you, use this instead {{ { '#type': 'processed_text', '#text': item.content['#context'].value, '#format': 'rich_text', } }}
Raiika's user avatar
  • 1
1 vote

How can I return a different number of results per page for a view if a user is accessing the site with a mobile device?

For those that find this like i did, I am running drupal 10, look into Responsive Views Pager It is simple with all the settings in the pager part of the view.
Outcast Creatures's user avatar
0 votes

Custom Flag not appearing in "Configure Relationship: Flags"

I was adding bookmarks for commerce products and saw this issue. How I solved this was I created a new view and selected my custom flag: I then went ahead to configure the view. Using Drupal 10.2.3.
Chike's user avatar
  • 25
0 votes

How to produce GeoJSON from a set of Geofields without a single point error?

The problem was caused by this bug and solved by patching the module.
Interlated's user avatar
  • 1,413

Top 50 recent answers are included