Collonges au Mont d'Or
Account created on 16 February 2009, over 15 years ago
#

Recent comments

πŸ‡«πŸ‡·France anou Collonges au Mont d'Or

Hello,

searching to filter search results by language, I had hard time to find the right "TAG" for the search exclude query. I put here my solution to filter the search results by language using search_exclude module:

In a [MY–MODULE].module file:

use Drupal\Core\Database\Query\AlterableInterface;
/**
 * Implements hook_query_TAG_alter(): tag search_$type with $type search_exclude_node_search
 * the TAG part = search_search_exclude_node_search (!!!)
 * 
 *  @return Search results in current language
 */
function [MY–MODULE]_query_search_search_exclude_node_search_alter(AlterableInterface $query) {
  $language = \Drupal::languageManager()->getCurrentLanguage()->getId();
  $query->condition('n.langcode', $language, '=');
}

Once you find the TAG, so simple :-)

πŸ‡«πŸ‡·France anou Collonges au Mont d'Or

anou β†’ created an issue.

πŸ‡«πŸ‡·France anou Collonges au Mont d'Or

UPDATE: if I check my JS settings the allowed tags are there but maybe it is something related to the treatment of the input field used in views?

Or maybe I need to use the 2.0.x-dev version? (currently using the 2.0.2 version)...

πŸ‡«πŸ‡·France anou Collonges au Mont d'Or

Hello,

I maybe missing something but I'm using views to output images in colorbox. I use the "custom with token" caption field. I've put a [MY_THEME]_preprocess_views_view(&vars) or [MY_THEME]_preprocess_views_page(&vars) and even your proposed code but without success.

I still get only <strong> and <a> tags has possible HTML in caption.

I've clear my cache and run cron.

Something else maybe I'm am not aware?

Thanks for your help.

πŸ‡«πŸ‡·France anou Collonges au Mont d'Or

Hello,
Is this patch #36 πŸ› Term name with translation doesn't work Needs review fix this issue: issues/2765297 β†’

I thought so but applying the patch doesn't seems to change anything for my title not being translated with the override {{ arguments.term_node_tid_depth }}

Thank you for your time.

Production build 0.69.0 2024