This forum is for assistance with theme development.

Drupal Developer or Themer Duties

New to Drupal and am looking to hire a consultant but not sure what questions to ask when drafting a scope of work.

Every site with a different banner image

Hi guys,

first of all.. sorry for my bad english..
i'm very new in Drupal and i'm stuck in a maybe very basic task..

i try to tell you guys what i'm trying to archive.

Add some code to template if a field is filled in and not if empty.

Hi,

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

How to print raw data in twig file.

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.

Is there a simplified way.

Vertical submenus next to main menu.

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:

Only local images are allowed.

The basic logic is as follows:

1 1.1 [when "1" is selected]
2 1.2
3 1.3
4 1.4

1 2.1 [when "2" is selected]
2 2.2
3 2.3
4 2.4

and so on.

User online/offline status on drupal 8

Hi.
How to show user online/offline in layout user.html.twig on drupal 8 ?
Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Theme development