This forum is for assistance with theme development.

twig to check value of field

Hi Folks

I am trying to check a value that is returned in the view-view-fields--classes--block-1.html.twig page

I have the page override working the way I want but Im stuck with two things actually that I am hoping you can assist with.

1. I want to change what is displayed based on the fields value, I've tried the following which I thought should work but doesn't 

How to scroll a modal window on Bootstrap ?

I have a site with Drupal 8 and Bootstrap 3

I created a custom module to display a page in a modal window. The page contains a lot of text and I want it to have a scrollbar on the modal window.

How can I do this ? Here is the code of my module and the information I found :

https://getbootstrap.com/docs/4.3/components/modal/#scrolling-long-content

Why does the animation not work if I change pages ?

I have a Drupal 8 site with Bootstrap 3 theme.

I created a homepage with a newsfeed. Whenever there is a publication on the site, it generates a message in the newsfeed. The messages can have the status read or unread.

I want that when the .action-flag class is in the page, an animation is applied on the logo of the site.

The CSS and JS file is included on all pages of the site.

The .action-flag class is only on the home page, when a message is not marked as read.

correct path to a node edit form

Can anyone tell me why this isn't working please, I ve read all the naming convention stuff

I have node--alive.html.twig (Which works as expected) to edit the view of my node page for entity type alive

I now want to theme the whole edit page, but I can't figure out the correct twig template

I have tried

page--node--alive--edit.html.twig (The recommended one as far as I can tell)

And

page--node--edit.html.twig 

neither get picked up (I am clearing the cache)

Removing bold from text

I have an accordion view where all the text is showing up as bold. I think I have just looked at this for too long and as such am missing the styling that is causing it. I've tried a bunch of solutions, but none thus far have fixed the issue.

Thanks for any help you can give!

https://www.tgci.com/webinar-sliders

Adding custom text to the 'Add menu link' page

I am creating a custom theme for Drupal 8. I would like to have it so when the theme is installed it adds some custom text to the admin add link page for only the main menu.

For example:

The page url is /admin/structure/menu/manage/main/add?destination=/admin/structure/menu

under the link field it reads:

Pages

Subscribe with RSS Subscribe to RSS - Theme development