This forum is for assistance with theme development.

Delete the automatically created contact page

Hi,

I'm trying to do something that sounds theorically basic but actually pretty complex to accomplish.

I have created a contact form and apparently it creates automatically a contact page (how? why? where?), it looks like it's strictly impossible to add content other than the form on that page as the page is not accessible, from nowhere. So my plan was to :

- Delete that contact page : but where/how can I do that?

- Create another page called CONTACT (content > add content) and add the form to it

[DR 8.x][Beginner] Identify the id or hostname of the block, menu, or other twig template and use it in class naming.

Hi, I use the Zen theme for drupal 8.x.

I need to customize the menus so that they have the machine name or element ids that surrounds it.
This example is how I intend it to stay:

    <nav role="navigation" aria-labelledby="block-uni-theme-2018-account-menu-menu" id="block-uni-theme-2018-account-menu" class="contextual-region c-navigation-account c-navigation">
      <h2 class="visually-hidden" id="block-uni-theme-2018-account-menu-menu">User account menu</h2>

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).

Pages

Subscribe with RSS Subscribe to RSS - Theme development