Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello Everydrupal !
- I'm a Beginner with drupal, I have a problem with the theming because a footermap dont have a templete (footer.tpl.php for example) I want to create a footer map with a lot lists not one list !
Comments
Comment #1
mradcliffeI know that it is asking much of you, but can you follow git instructions and apply the patch in #637734: Footermap Theming: The Next Step. I do plan on switching how theming is done, but since it's a major change I need feedback.
You may take the render array and split it in the template file. Something like this would split out the first child element under a footermap menu header, and make new headers for each child (and their children underneath them). It's a little hard to explain. I'm sorry.
Original render array:
would be rendered as this originally
New render array:
should be rendered as
Comment #2
missiria CreditAttribution: missiria commentedThanks very much man ;) my salutations !
Comment #3
leanderl CreditAttribution: leanderl commentedFirst of all thanks for a great module!
I am using a main menu to create a list of all the menu-items in the footer.
I have a structure of
I applied the patch and it helped me theme the main category X-items as a kind of header for the sub page:s. But I would also like to create columns. But I just cant get the above code to work even though it is clearly about the main-menu. When I insert it in in footermap.tpl.php the footermap simply disappears. Am i missing something obvious?
Ideally I would actually like to create a split every X items. Lets say every 8 items is enclosed i a new div. So that I can float columns of equal height horisontally.
Comment #4
mradcliffeI will try to answer this as soon as I can. If I can't get to it today it might be several days as I will be out of town.
Comment #5
leanderl CreditAttribution: leanderl commentedTurns out I could achieve exactly what I wanted with the Menu-Block module and some CSS-styling. Other than the "divide after X items". But that idea lost it's appeal to me, since it is more logical and understandable for the user if columns are based on "main category"-items and their children. I'd love to do this with this module in future though, because the css-classes from menu-block are very general and you have style it like this. One would rather have classes more clearly and specificaly named to feel good about it.
Comment #6
mradcliffeClosing issue.