drupal

drupal cck image_field and imagecache

I am having trouble getting imagecache to generate a thumbnail based on a preset I have created named 'thumbnail'. I have an cck image_field and a custom node view. The code I am using to output my images is: <?php foreach($node->field_comm_gallery as $galleryItem) { ?> <?php print theme('imagecache', 'thumbnail', $galleryItem['file...

Drupal exposed date filter: remove "-Year" from select

Just what the title says, I can't figure out why "-Year" is being added to the top of my exposed filter select box. What do I need to do to make it go away? ...

Using XDebug for Drupal 6.14 on Snow Leopard?

Just wondering if you anybody has had much luck getting XDebug working for Drupal 6.14 on Snow Leopard? I noticed that Snow Leopard seems to come with php 5.3 which some people say should work with Drupal 6.14, though I haven't had any luck. After that failed, I tried installing php 5.2 using macports (checking out from CVS at a previo...

How to Introduce jQuery auto complete for drupal5

Hey I am new to Drupal. Can someone help me to introduce jQuery auto complete into a drupal text field. I prefer basic coding standards. ...

Drupal onChange auto populate another CCK select list

I have built a multistep form using CCK, however I have a couple of issues outstanding but, not sure if CCK can help. In one step of the form I have 2 select boxes, the first is auto populated from the vocabulary table with the following code and all woks well. $category_options = array(); $cat_res = db_query('select vid, name from voc...

Drupal + LightBox2 component = use body as title (caption) for lightbox

Hi there I am using the LightBox2 component on my website to display the gallery images in a grouped lightbox. I add images to the website by using the Image component and adding all the images to the Photos book. However, images can still be viewed separately on a page, if I so choose. The url would then look something like this: www.m...

How to add javascript to page on login and logout in Drupal 6

I'm working on a module and am trying to add some javascript to the next page a user sees after logging in or out. Calling drupal_add_js() on hook_user (op == login) doesn't seem to work; I'm assuming this is because drupal_goto is called after the login is completed and a fresh page request is initiated. I've considered using hook_use...

How can I have multiple fields with the same taxonomy on Drupal's node creation form?

My designers want to use the same taxonomy for three different purposes. On the node creation form we'd have three different fields where you're choosing from the same set of terms. Ideally, one field would enforce a single choice (and be hierarchical), and the others would allow multiple choices with tags. Any thoughts about how to acco...

Drupal print book navigation

I'm trying to print the book navigation in a block in a drupal book node. This is the previous/next pager and the list of child nodes, templated in book-navigation.tpl.php. Is it something like? print $node->book_navigation ? (I already loaded the node so no worries there). Here's what I discovered when I did a variable dump. This g...

Drupal panel / view not showing in print view

I have a Drupal 5 site that is using the Printer, e-mail and PDF versions module that appears to be creating a print version of a URL like so: screen: country/uk print: print/country/uk Each page is set up using panels and has the country image and a view of most recent country news below. On the print/country/xxx the view isn't pr...

Drupal automatic glossary for specific terms

Greetings all helpers! I have been reading and testing Drupal features recently and I find this CMS very scalable and interesting. I began working with themes, views, content types and ect... but I am looking for something I cannot find on the internet. Context : I am creating a new website for one non-profit organization of mine for t...

Drupal: No themes are rendering

I had a similar problem once after activating Ubercart modules. Certain pages would not render the theme, though all the content was there. I went into performance settings and optimized CSS and all was fine. I heard this was due to too many css files being called at once. The optimize CSS setting streamlines them. Today though I went ...

Crucial Drupal Modules for Dynamic Site Development

I have spent the last few days playing around with Drupal for the first time, and I really like it. Especially after building dynamic sites from scratch. Being that there are thousands of modules, I would like to know what modules SO users cant live (or develop) without. What modules do you always (or always with specific requirements)...

Node titles as menu items in drupal

hi! i've a node type "Gallery" and a menu title "Gallery" which shows all the available galleries with the help of views. Now, when the user creates a new gallery, i want the name(title) of that gallery to add as a child element to the "Gallery" menu item.. is there any module for that? thankx.. ...

Drupal Multi-Module Combinations for Cool Effects

I am looking for a better understanding what truely can be done with Drupal modules. Specifically, module combinations that do something practical, specific to a need, and very cool. Links to sites implementing these are appreciated. +1 for creative and practical uses ...

Drupal 6: Only inserting first character of value to MySQL

I am working with a hook_form_alter on a CCK type (for you drupal-ers). I have a field that is normally a select list in my node form. However, in this instance, I want to hide the select list, and populate its value in the form with an SQL query. Everything was going nicely. I could see that my desired value was showing up in the HTML...

Can I build a real state advertising website using drupal?

I want to build a commercial website such as craiglist but specific for real state business, I was wonder if I could use Drupal to do it .. I ask this because I want to use one CMS rather than going with a scratch or framework approach, and I don't know anyone. So to save me time I need to know if Drupal could be a good choice. Best, ...

Dynamic Select in Drupal

Hi all, In my way of learning drupal, I got stuck in this issue. I have Taxonomy vocabularies that I set as tree with each node have different depth. Now, I need to display it in select box in a way that only one select(the parent terms) at first. On change, it will fetch term's children and display another select box below it. This goe...

jQuery - get a certain range of items within an HTML drop-down menu.

Hi, I have a range of items in an HTML drop-down menu that I need to find with jQuery so I can then hide them [using .css('display', 'none')]. They are (in this example) all the ones between <option>---- Articles</option> and <option>---- Jargon Buster</option> except for the first six items in this range! Other than these first six,...

adding onsubmit to drupal login forms

hi! the default login form in drupal doesn't have any javascript to check whether the fields(Username and password) are empty or not before submitting the form. so, i want to add it onsubmit to the user login form..how can i do that? ...