This forum is for assistance with theme development.

print $author according to user role commenter

hi, i want to print two codes for two roles

if the author will make the comment i want to print that code

print $author; 

and if others will make the comment i want to print that code

Drupal 8 image path in twig template

Hi,

I was wondering, how do you get an image from the images folder in a .html.twig template.
Is there something like in Drupal 7 path_to_theme() ?

Gr

Drupal 8 Template caching

Hello!!!

I need some help with the following problem:

In Drupal 8, I have a website that has a custom template for page and another for node.

I want to have 2 versions of these templates for mobile and for desktop. The problem is that despite the page template is rendered everytime the page is reloaded the node template is only run at the first time the page is build and after that loaded from the cache.

How to disable cache for theming

Hello,

I'm new here so forgive me if it's not the right place to ask this. And english is not my native language.

I'm completely new to drupal (8) and need to improve. I've never use drupal before so i'm a bit lost.
To understand template system i want to build my own theme to get used to twig logic.

But even before starting i can't success to disable the cache. Everytime i do some change on a template file (like htm--front.hmtl.twig) i have to clear the cache manualy from back-end admin.

Zurb Foundation + Codekit + local dev via git

Howdy all! Serious newb to the workflow, but I'm over on Pantheon now. So, I'm using the git method, and so I have a local install running off the remote db. Not sure how much that plays into this, but here's my problem:

multiple language-specific urls

This is just a quick question, really, to be sure I understand.

I've got a quick project to complete - it has three urls... subdomains really -
uk.websitename.com
ca.websitename.com
int.websitename.com (primary url)

In order to user the Drupal language core components, and have the language switch based on url, do I just need to point/park all these domains to the same IP address? Sorry, I know it's a dumb question - I just wanted to be sure.

Pages

Subscribe with RSS Subscribe to RSS - Theme development