Drupal Tagadelic: creating my own block

Drupal Tagadelic: creating my own block

Ask Question

10 years, 6 months ago

10 years, 6 months ago

1k times



Tagadelic outputs the content I need but I’m unable to apply the required design with the standard markup it outputs. I need add some markup to get rounded corners and a few other other changes need to be made.

Could some broadly explain how I’d go about this? I know I shouldn’t mess with the module itself, so should I override some of its functions to output my markup?

Here is a list of all the tagadelic functions but I fail to see where the markup comes from exactly.

Thanks 🙂


share|improve this question

asked Sep 15 ’09 at 14:25


21.2k2828 gold badges9393 silver badges136136 bronze badges

Is there a reason you need custom markup? If you must have rounded corners can’t you just do it with a custom CSS file?

– Jeremy French
Sep 15 ’09 at 15:39

I’m also using panels and this ads tons of markup. Also the design was sliced without keeping Drupal HTML in mind. I’d prefer changing the markup than altering the css.

– stef
Sep 15 ’09 at 20:27

add a comment

1 Answer





All Drupal blocks support plenty of CSS customization:

<div id=”block-tagadelic-1″ class=”block block-tagadelic block-title block-odd”>

If the available HTML source is not sufficient for your styling needs, you could override the tagadelic theme function responsible for HTML output. It is in tagadelic.module on Line 308. Look for function theme_tagadelic_weighted($terms).

Remember when overriding this function that it will not override the block theming I explained above. Also, if you do override it in this way, any update to the tagadelic module will not include this modification.

As such, you may want to create the overridden theme function in it’s entirety in your theme itself: Theme Function Overriding

share|improve this answer

edited Sep 15 ’09 at 22:51

answered Sep 15 ’09 at 18:40


3,5661616 silver badges2020 bronze badges

thanks Grayside. I created a function bib_tagadelic_weighted($terms) where bib is the name of my theme and the content comes out as I want.

– stef
Sep 15 ’09 at 20:26

add a comment

Your Answer

Thanks for contributing an answer to Stack Overflow!Please be sure to answer the question. Provide details and share your research!But avoid …Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.

Draft saved
Draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password


Post as a guest


Required, but never shown

Post Your Answer


By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged drupal or ask your own question.

The Overflow Blog

Tracking down performance pitfalls in Vue.js

Ways to Help the Fight Against COVID-19 from Home

Featured on Meta

Planned maintenance scheduled for Saturday, March 28, 2020 at 13:00 UTC (9AM…

An Update On Creative Commons Licensing

Community and Moderator guidelines for escalating issues via new response…

How does the Triage queue work?

Triage needs to be fixed urgently, and users need to be notified upon…


0File downloads using Drupal12Why does the ‘#weight’ property sometimes not have any effect in Drupal forms?0Drupal tagging via tagadelic2Drupal: passing variable from preprocess to template.php?1How to uninstall a module that overrides the core user module?1drupal blocks not ordering according to weight0Drupal Custom Templating Security Issues0Google maps block on contact page is giving offsetwidth error and messing up other modules in drupal 72Drupal Commerce: How to create a payment method?2Grabbing fields from a taxonomy term in XML Feed Drupal 8

Hot Network Questions

How to understand a microcontroller’s name?

Why should one pre-heat an oven?

Aluminium shielding on a cobalt-60 source increases impulse rate

Is there anything special about single vowel words?

Why do people exercise call options at a loss?

Is travelling with 1 friend permitted in the UK now that the lockdown is enforced?

How do Minecraft know where village’s buildings are if the village is not generated yet?

A suit that realistically protects against impact, falling, being thrown around?

Birds on a wire (again) – how is it that birds feel no current ? They are just making a paralell circuit, no?

Did Russia release lions onto the streets to keep people in isolation?

Can I create an image with a specific size in bytes?

What to do when a taxi driver uses the meter but at the end of the ride clears the meter and pretends we had agreed on some higher price for the ride?

What’s the point of Super Star Destroyers?

Cooking shakshuka without burning the tomatoes

Does there exist an aggregation of videos on optimization?

Should I capitalize Brothers?

Word for a small cylindrical glass container (for salves, creams etc.)

Is it true that Netscape Navigator eventually became Mozilla Firefox?

How can my vampires hide in public?

Why did Gandalf bring Pippin along to blind the Nazgul?

In numpy, q1 = p[:] instead of q1 = p, yet p is modified when I modify q1?

Cat Keeps Drinking Unattended Drinks

Were iron skillets shown being sand blasting cleaned on the storm-plagued planet Rigel XII in Star Trek TOS?

Why do all fifth generation fighters (J20, F22, SU57) put their wing above the fuselage?

more hot questions

Question feed

Subscribe to RSS

Question feed
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.


Leave a Reply

Your email address will not be published. Required fields are marked *