When is a page not a page? % if not page % fails unexpectedly

In trying to solve the problem of two titles appearing on a taxonomy/term/n page, I've discovered that the Twig statement {% if not page %} doesn't behave as I expect.

Does anyone understand why the D8 core taxonomy.module determines that a url like taxonomy/term/n is not a page? The functions involved in taxonomy.module seem to be
function template_preprocess_taxonomy_term(&$variables) together with function taxonomy_term_is_page(Term $term).

Architecting a comparative item site

Hello everybody,

The last time I used Drupal was Drupal 5 where I used node import to create a directory of pharmacies.

It seemed simple enough: Get the data into CSV, create the template that puts the data into the right places, use Pager to create city-by-city listings, and voila.

Now I'd like to create a site that compares pharmacies. Just Pharmacy A vs B. Not A vs B vs C.

How to get user(or role) permission via Rest API?

I'd like to get user(or role) permissions with JSON format via Rest API.

I found that I can get a list of permissions with a field "User: Permission" . But this format is not appropriate for me, I'd like permissions list with JSON format.

If anyone knows the way, could you tell me the way?

Create image slider from a single node's multivalue image field

I am trying to create an image slider from multivalue field of a node. I used slick slider for the purpose and followed the instructions. But the result is not nice.
Is there a better way to display a single multiple-value image field in a single node display for the slides.

content invisible - only logo & "Skip to main content" shows (D8)

Fairly new drupal 8 instalation with a few pages: https://sensistop.dk
Another administrator tried to insert a video and the pages became invisible. Only things showing are logo and "Skip to main content" - which doesn't do anything (visible).

Fresh install or is there a solution?

How to move main nav menu to right grid [Solved]

I am using Foundation 6 for Drupal 8.

I am attempting to move the "nav#block-testsite-main-menu" to the rightmost grid (12-column grid) in my Header region.

This is what I have pulled together. Is the code to the right of HERE correct? If not, how do I accomplish moving the main menu?

Thanks,

Steve

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x