Home > Tip & Trik > [Drupal] Mengubah tampilan menu local task dari tabs menjadi dropdown

[Drupal] Mengubah tampilan menu local task dari tabs menjadi dropdown

Postingan singkat tentang drupal secara teknis. Materi kali ini adalah tentang mengubah tampilan menu local task yang biasanya berupa tabs diubah menjadi dropdown.

Tampilan awalnya adalah seperti gambar berikut:

Menu local menggunakan tabs.

Kode untuk mengubah tampilan tersebut menjadi dropdown adalah sebagai berikut:

Kode diatas harus dimasukkan dalam file template.php dari theme yang sekarang aktif. Jangan lupa ganti MYTHEME menjadi nama theme yang sekarang aktif. Dari contoh diatas, saya hanya mengubah pada primary menu local task, sedangkan untuk secondary menu local task saya biarkan seperti aslinya.

Oh iya, theme yang saya gunakan berbasis twitter bootstrap, jadi saya menggunakan class-class dari bootstrap untuk menampilkan dropdown menu.

Hasil dari coding diatas adalah sebagai berikut:

Menu local dalam dropdown

Mudah bukan?

You may also like
Drupal: Bulk Insert
Ciyeee, Drupal dan WordPress minta update barengan.
Membuat Chart di Excel menggunakan Drupal
Tabulasi data menggunakan views pada Drupal 7

27 Responses

  1. Pingback : ★廃番 キャスター付メタルマルチハンガーPI-M120【アイリスオーヤマ】【R

  2. Pingback : 山善(YAMAZEN) CDラック SCD-2(DBR) ダークブラウン CD収納 オープンラック 【送料無料】【10

  3. Thanks so much for providing individuals with remarkably memorable possiblity to read articles and blog posts from this website. It’s always so enjoyable and stuffed with a good time for me personally and my office acquaintances to visit the blog particularly thrice per week to study the newest guidance you will have. Of course, I am at all times fascinated concerning the astounding advice served by you. Certain 3 areas on this page are surely the best we’ve ever had.

  4. I used to be very happy to search out this internet-site.I wanted to thanks to your time for this glorious learn!! I positively enjoying every little little bit of it and I have you bookmarked to check out new stuff you blog post.

  5. I not to mention my friends have already been following the nice items found on the blog then immediately developed a terrible suspicion I never expressed respect to the web blog owner for them. Most of the people are actually absolutely happy to see them and already have without a doubt been tapping into those things. Thank you for genuinely considerably kind and also for pick out varieties of essential ideas millions of individuals are really wanting to learn about. My sincere regret for not expressing appreciation to sooner.

  6. Good post. I study one thing more difficult on different blogs everyday. It will at all times be stimulating to read content material from other writers and apply slightly something from their store. I? desire to make use of some with the content material on my weblog whether you don? mind. Natually I?l provide you with a hyperlink on your web blog. Thanks for sharing.

  7. I am glad for writing to let you be aware of what a awesome experience my cousin’s princess went through going through your web site. She realized a lot of pieces, which included what it’s like to possess a great giving mindset to get most people effortlessly know precisely a number of multifaceted issues. You really surpassed our expected results. Thanks for delivering the effective, healthy, edifying and fun thoughts on your topic to Sandra.

  8. After research a couple of of the weblog posts on your web site now, and I actually like your manner of blogging. I bookmarked it to my bookmark website listing and shall be checking again soon. Pls try my web page as properly and let me know what you think.

  9. Thank you for your whole hard work on this website. Betty enjoys engaging in investigations and it is simple to grasp why. We notice all of the dynamic medium you render simple items through this web site and boost contribution from some other people on this article then our favorite child is actually becoming educated a great deal. Enjoy the remaining portion of the new year. You’re the one doing a glorious job.

  10. I? impressed, I must say. Actually rarely do I encounter a weblog that? both educative and entertaining, and let me tell you, you’ve got hit the nail on the head. Your idea is excellent; the issue is one thing that not enough individuals are talking intelligently about. I’m very happy that I stumbled across this in my search for one thing relating to this.

  11. I just wanted to compose a word to express gratitude to you for these superb advice you are placing at this site. My rather long internet investigation has at the end been recognized with pleasant insight to go over with my relatives. I ‘d assert that we visitors are rather endowed to live in a very good place with many lovely professionals with interesting concepts. I feel somewhat blessed to have seen your entire website page and look forward to plenty of more fabulous moments reading here. Thank you once more for a lot of things.

  12. I? impressed, I need to say. Actually not often do I encounter a blog that? each educative and entertaining, and let me inform you, you’ve gotten hit the nail on the head. Your concept is excellent; the problem is one thing that not sufficient persons are speaking intelligently about. I’m very pleased that I stumbled across this in my search for something referring to this.

  13. The next time I read a weblog, I hope that it doesnt disappoint me as much as this one. I mean, I do know it was my choice to read, however I truly thought youd have one thing interesting to say. All I hear is a bunch of whining about one thing that you could possibly repair should you werent too busy searching for attention.

Leave a Reply