This forum is for assistance with theme development.

Drupal 8 Twig, does it allow filters in blocks?

Twig allows several different ways to extend templates. But will it let me define a filter to use in regular text areas? For examples, I used to include PHP in various blocks to print the current date with a bit of PHP, but apparently that is a security issue now.

For example, how do I replace <?php echo date("D j M Y") ?> with something like {{date("D j M Y")}} in blocks, or text areas, and have Twig replace it with the date?

Stuck on Hover/Active Menu Background Image

I'm so stuck on this part, I've tried every combination of CSS I can to try to add a hover/background image. You can see what I have up there now, which isn't working. Please let me know if you have any solutions.

Let me know if I can provide any further information. Thanks so much in advance.

User login: can't disable block on home page

I don't want the login block occupying most of the home page. I've gone to admin/structure/block and changed the user login region to -none-. Yet it still appears on the home page (when logged out). Have cleared caches. Also tried configuring the visibility and have the login appear on another page, but can't. Why is my login block so stubborn?
I'm using an omega subtheme. Couldn't find references to the login block in the code, but maybe I need to add something.

missing some links in admin menu

hi 2 all! I have some problem with my administration panel in drupal 7.
I've migrate d6 to d7, but some links (such as "edit" in content page) and all of admin menu were missing. I've installed admin_menu module - there is no such problem. But "edit" links not come back.
There are some screenshots of this problem.
P.S. drupal add empty ul class="menu".

How to create a Bootstrap subtheme with bootstrap 7.x-3.1-beta3

There are lot of tutorials for creating a bootstrap subtheme with version 7.x-3.0. Does exist an tutorial for creating a subtheme for bootstrap version 3.1 and newer without the starterkit folder?

Regards, Ingo

print taxonomy term in blog template

Hi,
I created URL aliases for a vocabulary leading to /categorie/term
http://tmp.physiotek.com/categorie/sante
But i created a different view under /categories/term (notice the s)
However the taxonomy term link to /categorie/term while i would like it to point to /categories/term (not in the block but in the node links)
http://tmp.physiotek.com/categories/sante

Pages

Subscribe with RSS Subscribe to RSS - Theme development