Show others what you've been working on and get feedback. For in-depth case studies, check the case studies section.

!!NEW!! Expandable Taxonomy tree in new block

Hi there!


I am new to Drupal, but have spent the day installing and messing around.


I have 3 content sites that I would like to consolidate into one drupal site. Each site has several subcategories, so for lack of better knowledge, I thought the easiest way to do it in Drupal is to create 4 categories (aka "vocabulary") and underneath each one the subcategories (aka "terms").


Then I wanted to have them displayed in their own box as headers ("vocabulary") only, which would then upon click on the header dynamically (via Javascript) open the "terms" underneath, each term linked to the actual subsection, and close it again upon another click on the header - a toggle, so to say.

It took me a while, but now it's working nicely, and I'd like to share the results with you. If you think it's not so clean or there is a better way, please let me know. I'm keen to learn. :)

Instructions:


  1. Save this as menu-builder.inc in your /includes directory
    
    <?php
    
    $js="
    
    <SCRIPT LANGUAGE=\"JavaScript\"><!--
    function ShowHide(divId, divId2, divId3) {
    	var id = document.getElementById(divId); 
    	var id2 = document.getElementById(divId2); 
    	var id3 = document.getElementById(divId3);
    
    	if (id.style.display == \"none\") {
    		eval(\"id.style.display = 'block'\"); 
    		eval(\"id2.style.display = 'none'\"); 
    		eval(\"id3.style.display = 'block'\");
    

TFF Tech site upgrade

i upgraded my Thought for Food Tech site from 4.2.0 to 4.4.1. it took about an hour, with some minor headaches that were subsequently solved by searching the drupal.org site. i "redesigned it" -- basically took pushbutton, and turned it into the "minimal" look of TFF Tech.

the only "3rd party" module currently in use is filestore.

tffech.com

the end.

j.

Canadian Linux Guru Drupal Powered Portal

Ocean Mist

Check out my new site. Now if only I could get the darn cron to work. Built on jseng 4.4.1 4 bloggers. Second installation of drupal on the server. Doesn't seem to show up on the Drupal Site list here. :( What am I not doing right?

Sempre-Crescendo.nl

My new theme and site at Sempre-Crescendo.nl. Please let me know what you think of it, and if it's good enough for an alternative version in the drupal contributions..

Also please let me know if it looks okay in your browser...

Steef.

TurisMoVacanze.com: a portal for your free time (in italian)

TurisMoVacanze.com is a portal where you can find and discuss ways to spend your holidays and vacations. At present it's in italian. Enjoy it.

Pages

Subscribe with RSS Subscribe to RSS - Show off your Drupal site