This forum is for assistance with theme development.

rendering a menu in twig (Drupal 8)

Hi guys,

I'm trying to figure out how to print out a menu with twig. I set up menu.html.twig and it seems to working alright if I put a menu block into a region, but I need to display in in the template. Anyone have any ideas?

Thanks!

PJ

Customizing node--add--product.tpl

Hi Guys,

I am looking to make some custom layout for my product submission form. I have been searching and trying to get the proper way to figure out the name of this file.

If i add the tpl file is this sufficient enough? Nothing is showing.

Thanks.

Gaming theme with MyArcadePlugin

Hey there,
Anyone able to recommend a good Drupal responsive gaming theme? Anything that could work with a MyArcadePlugin type feature?

Thanks

Profile2 image field in place of user picture

I need user_picture, but I want to use a picture from profile2 image field to be that picture.

My users can upload several pictures of themselves. I would like the first image to be the "user_picture" for PM, Author Pane, and so on. And if they reorder their pictures whichever one they make the lightest weight will be their new "user_picture".

Add Logo to center of Drupal 7 Menu

Hi Guys,

I would like to add a logo in the middle of my main menu, having links on each side of the menu. I have been searching, but can not find anything on this. This could be due to my lack of knowledge. I am trying to modify the menu_tree_output function to split the array in half and then add the logo in the middle. No luck.

Is this not the best approach? Any suggestions would be greatly appriciated.

Thanks

[solved] New template file (page--simplepageprivate.tpl.php) not been recognized

Hi all,

I did that many times before, but never had this problem:
I created a contenct type "simplepageprivate" (machine readable name) and according to it two files:

  • page--simplepageprivate.tpl.php
  • node--simplepageprivate.tpl.php

Then after I cleared the cache, and reloaded the newly added nodes of this particular content type.
But it doesn't work!

So I searched the internet for a solution and found I should include in my template.php these lines:

Pages

Subscribe with RSS Subscribe to RSS - Theme development