This forum is for assistance with theme development.

Twig dump and ladybug

Hello everyone,
I was creating my own theme and I cannot use the dump in Twig, because I get a blank screen. Searching a bit about it, I learned that it is a problem of memory consumption. I also read that ladybug dump may help. I want to install it on drupal, but I don't really know how to do. I quite new in Drupal 8, even though I was quite skilled on D7.

tpl.php for multiple pages

Hello,

The default template file for a drupal page is page.tpl.php.
I'm creating a custom theme. i need different regions for my pages. And use also another layout.
Now i create a tpl.php file for every page i create but some pages have the same layout.
Is it possible to have 1 tpl.php file that will be used by multiple pages?

for example :
page-node--2.tpl.php & page-node--23.tpl.php have the same layout.
page-node--11.tpl.php & page-node--52.tpl.php & page-node--28.tpl.php have the same layout.

Add CSS class to region div in page.tpl based on custom field selection

I've created a page.tpl with a few regions that I will be using for a landing page. I've also created a custom bean block type with a select list field that I would like to use to add a css class for the specific region.

For example I have the values: red, black, blue in the custom block type. When selected (red) I want to be able to print that value in the regions main div container based on that specific block type.

This is my first time using Drupal and would be open to any suggestions if there's an easier way. Any help much appreciated!

Custom design for content type page and nodes

I am developing a sub-theme based off of the Bootstrap theme.

The design for certain sections of the website is somewhat unique therefore separate css, js and template files have to be used. Here is an overview of the setup:

=> The homepage is using a unique design

=> The user login, registration, password reset and the "Business" node creation form uses the same template/design. ("Business" is a content type)

mapping of menu Name: "Main Menu" with variable name: primary_nav and where is it defined.

HI,
I am new to Drupal and would like to know the details of constant/global variable: $primary_nav
Observed this variable is pulling list of links from a Menu with Title : "Main Menu" .
I try to see the mapping of these in UI and DB, but could not find.
Can you please help me to find out the mapping of this menu Name ( "Main Menu" ) with variable name : primary_nav and where is it defined.

Much appreciated your help.

adding tabs together instead of seperated

Hi,

Im quite new to drupal and currently I have been trying to develop a new ecommerce theme using/costomizing a existing free commerce theme for learning purposes. So i have come acroos a requirement which i need help from the forum.

the requirement is this!!

the current theme has tabs as shown in the picture 01

picture 01

http://s33.postimg.org/kqa1x5iyn/drupal_Q1.png

Pages

Subscribe with RSS Subscribe to RSS - Theme development