This forum is for assistance with theme development.

Drupal Custom Theming for list view

I am new to drupal. I want help to create a custom theme for list view in drupal 7? What hook function do I need to use?

Zen Drupal 8 "Error parsing twig template" while running gulp styleguide

Hello,

Running the default gulp task (or any other that creates the styleguides) is throwing several errors regarding the .twig files. Moreover it seems that in every include statement, eg.:
{% include "@THEME_NAME/components/messages/messages-icon-error.svg" %}
@THEME_NAME is set to /D which is incorrect and is in turn trying to access a file that does not exist.

Getting Keys from Select List

This is my first Drupal 8 site. I have a content type with a select list field. In my twig template I can print out the values. But I would like the keys too.

field_colors:
red_oak|Red Oak
white_oak|White Oak
.....

I can get the values easy...

{{ content.field_colors }}

But what I want to do in my twig template requires access to that key..

drupal multisite breadcrumbs

So here is my issue. I have 70+ Drupal sites all set up in a multisite install. Each site is it's own database.

Adding classes to links

Hello Everyone!!!

I am new to Drupal and I love it very much. I am learning it on my own but I am stuck on a problem right now.

I created a custom block that display a title and a list of links. So the only fields in that blocks are of type links. It's a block for my footer region. So when the user clicks, it opens a new website in a new tab.

I want to alter the html output just for this block type, so I took out this theme suggestion:
field--block-content--field-links--footer-links.html.twig

Overriding the base theme object.tpl with a sub theme

Hi All,

Newbie to Drupal. Added the theme Tao to my drupal installation, then created a sub-theme using Skeleton.

Copied over the tpl files from the Tao install and everything is overriding the base theme great apart from the object.tpl file?

Ive googled everything and tried loads of functions in my template.php file for skeleton but nothing is workin. I make a change in Tao object.tpl and i see the change, i do it in the Skeleton.tpl and nada.

Pages

Subscribe with RSS Subscribe to RSS - Theme development