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.
The NavBar doesn't respect menu attributes such as target="_blank" (supplied by menu_attributes module).
Is this a possibility in a future release, or is it an issue with BootStrap?
Comments
Comment #1
pirog CreditAttribution: pirog commentedplease provide some more details here. Where are you trying to add in _blank?
Might also want to check out this.
Comment #2
pirog CreditAttribution: pirog commentedJust following up here. Any additional details you can provide?
Comment #3
pirog CreditAttribution: pirog commentedComment #4
pirog CreditAttribution: pirog commentedComment #4.0
pirog CreditAttribution: pirog commentedadd relevant module details
Comment #6
shortspoken CreditAttribution: shortspoken commentedHello,
I just came across this issue when I was trying to add a "title" attribute and additional "class" to the main menu. I was wondering, why the Menu Attributes module is taking no effect on the main menu in Kalatheme? In the menu block it does.
Its probably an issue how the menu gets called in the page.tpl?
Any is help is highly appreciated! Thanks for the great theme by the way!
Cheers, Moritz
Ps. Using Kalatheme 1.1
Comment #7
pirog CreditAttribution: pirog commentedThanks for the info here... definitely something we can check out and might already be resolved in the 3.x branch if you want to give that a try first.
My guess might be that we might be dropping some normal drupal convention in favor of a Bootstrap one and maybe that is something Menu Attributes needs to get started. Will look into it.
That said, and in the meantime you can actually directly add classes and titles to the main and secondary menus via page.tpl in Kalatheme.
Comment #8
shortspoken CreditAttribution: shortspoken commentedWow. Thank you for the quick reply!
As I started a huge project when Kalatheme 1.1 was released (with Bootstrap 2) I didnt want to upgrade to Bootstrap 3... But I will have a look at the code in 3.x
Cheers.
Comment #9
pirog CreditAttribution: pirog commentedMakes sense and prudent decision.
Will check this issue out for you and get back.
Comment #10
pirog CreditAttribution: pirog commented@shortspoken, i've pushed a fix for this to both the 1.x and 3.x dev versions however since you might not want to upgrade in your circumstance here is the code diff to get it to work:
http://drupalcode.org/project/kalatheme.git/blobdiff/57e5e3801c8c0b0446c...
Comment #11
shortspoken CreditAttribution: shortspoken commentedGreat success! Thank you very much! Works like a charme. :)
Comment #12
BarwonHack CreditAttribution: BarwonHack commentedThe Dude abides :)