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?
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.
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".
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.
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: