This forum is for assistance with theme development.

Merge 2 attachments for same pagination

Hello, I want to know how to "merge" 2 attachments. I have 1 attachment doing 1 filter, the second is also doing 1 filter. 

Both attachment are attached to my page, but the pagination isn't working, this makes 2 paginations (1 for the first attachment, 1 for the second). I want to "merge" theses two attachments to have one and only one pagination.

How can I achieve this ?

Theme suggestions for node preview page

Hi Team,

We have content types with panel and panelizer enabled. We have added theme suggestions for content view page as follows.

function HOOK_theme_suggestions_page_alter(array &$suggestions, array $variables) {
    $node = \Drupal::routeMatch()->getParameter('node');
    if(!empty($node)){
        $type = $node->getType();
        if($type == 'abc'){
            $suggestions[] = 'page__abc';            
        }
   }
}

How can I downgrade Jquery3 to Jquery 2 in Drupal 8.5+?

Hello folks,

Currently, Drupal is using jQuery 3.2.1. But I need to downgrade it to 2.2.4. So I have followed the guidelines from here and from Drupal answers here. My bartik.info.yml file currently looks like this:

Filter with Page + attachement

Hello, I'm trying to filter content based on user data.

I've created taxonomy and made the "link" between my user and my element. For this part, it's working. 

Taxonomy is "Privilege" which contains "Gold" and "Silver"

User also contains this taxonomy.

In my first view, I have some filter (if article and user are premium, show article), this is working.

Now, I want to show all articles which have 0 Privilege (but the user can have one).

Add current data value as filter in view

Hello, I want to add my current user data "Privilège" (which is a checkbox list containing "Gold" and "Silver" values) as a filter criteria of my view "List articles". 

In "liste articles", I've already added some criteria (such as the date). 

In my user data, I have a select where I can choose "Gold" or "Silver". 

If the user is Gold, I want to show only Gold article (same for Silver). If the user has no Privilege, show all articles.

I want this to be done as much as possible in backend, how can I do that ? 

Break Tags in Menu Items

Hi , I want to add break tags in menu item titles.

I added one menu item with title as "test <br/> cases". But it is not considering html tags in title. It is displaying as normal text.

my menu-main.html.twig file is like this.

Pages

Subscribe with RSS Subscribe to RSS - Theme development