This forum is for assistance with theme development.

Views Block template empty if custom file

Hi,

I'm trying to create a custom template for a views block I created.
When I copy the views-view-unformatted.tpl.php file to the theme folder /sites/allt/themes/
/templates/views-view-unformatted.tpl.php

block content disappears from page.

If I remove this file, the one form the views module is used and block content is rendered.

I'm refreshin the theme information in the view and emptyiing cache. Devel module is installed and I can see:

How do I indent text to align neatly

Hello all

I have created several new content types for different information about our business (e.g. the courses we have developed).

At the moment each piece of information displays the heading (label) and then the content. If the content runs over multiple lines I want to indent it. In other words I want two columns of information: the headings (labels) and the content.

How do I do that? I'm new to Drupal and I can't work it out.

Twig - if and content.field

I really feel stupid. I am quite new in drupal (i use drupal 8). I created a new content type with a lot of files. Also i created a new template for the content type.

Now i want to display several fields. That works:
Example: {{ content.field_shops }}

But i also want to add some html, so i wanted to check if there is something in content.field_shops and only let it be displayed if it is like that.

So i tried:
{% if content.field_shops %}{{ content.field_shops }}
{% endif %}

But it does not work ;-(

Facebook video added change the sidebar position

Hi, I have a theme with right sidebar. A webform is on the sidebar and the content in the left.

i added a field (multimedia asset with facebook video provider) to the page of content.

If the field is empty or a picture, the right sidebar is ok and containes the webform. But once I add a facebook video instead of a picture it changes the right sidebar position. it diplays the webform under the content (with the video) and the right sidebar is empty.

Any ideas ? i am not good with Css but i think the media field css (in case of video) shift the position.

Can't get out of maintenance mode.

I went into maintenance mode to upgrade from Drupal 7.32 to 7.42. Now every link that is clicked comes back with "404 Not Found" The requested URL was not found on this server. I have backups of my site on my computer and on my server. In the meantime I can't even click the administration links to get tout of maintenance mode. Using News Center theme from MM Themes, if that matters.

Breadcrumb in Home page

Hi,

I want that the breadcrumb template appear even in the home page.

For now, on the home page, the template isn't included in the configured section. the hook "mytheme_preprocess_breadcrumb" isn't call in the home page neither.

I don't know at all where to change that :

A hook in the .theme file? a configuration thing ?

I found some few class in core to try to understand the logical and find a way to override it, but for now drupal is too complicate for me *.*

EDIT :

Pages

Subscribe with RSS Subscribe to RSS - Theme development