Creating a Drupal 8 website and creating a theme for it (twig templates).
My problem:
I have a field (link URL) where my client can fill in a url-link OR NOT.
Depending if this field is filled in I wanne show a button on the front-end OR NOT.
1. When the field is filled in I want to add some code (a-tag and fixed title) with the URL in my twig template.
2. But if the field is not filled in... the code in the twig template should not be active (appear in source code for visitor).
Is there a way to print raw data in template files of Drupal 8. I know that in drupal 7 we can print and see the available variables from tpl.php files and decide how to use the values to print inside template files.
In Drupal 8, I used Kint or Dump. But i am not getting the data alone to decide how to print the data inside twig. I can understand that this is not as simple as D7. Some times Kint or Dump kills the whole page by loading too much of data.
Hello, we're creating a theme that has a vertical submenu to the right of the main menu. Our menu is full-width fixed menu at the bottom of the viewport, to appear on all pages as shown here: