drupal

2 breadcrumbs for 2 menus in Drupal

hi, I'm using 2 different menus in 2 different blocks. They are enabled / disabled depending on the the pages users arevisiting. Now, I have an issue with the breadcrumbs: they only work with the main menu and not the second one. I need to automatically have the breadcrumbs the other menu as well. thanks ...

Locale module and language prefix in url

I had been working on module and well aware of hook_menu for passing url arguments to call back. For instance: $items['webtv/block/%/playlist/edit/%'] = array( ... 'page callback' => 'drupal_get_form', 'page arguments' => array('webtv_playlist_form', 5, 2), ... ); and callback as function webtv_playlist_form($form_sta...

Insert Description Text to Drupal User Registration Form

I am using the profile module and have several categories for different fields. I want to add a small bit of text to the top of one of the categories saying what the category is for. The information would be displayed when a new user registered. Basically I want to tell users to only fill out a category on certain conditions. Can anyone ...

Cron on multisite install

On a Drupal 6 multisite install, whats the best way to have cron run for the requested site only? Going to http://www.mysite.com/cron.php results in a 404. ...

Can't get the search box to show up in custom theme

Hi guys ! I'm trying to make a custom theme for a drupal blog, and I want the search box to appear in the header. To do that, I've put the following code in the page.tpl.php template file :* <?php if ($search_box): ?> <div id="search-box"><?php print $search_box; ?></div> <?php else: ?> <h2>Pas de search box</h2> <?php endif; ?...

Help with Drupal Search Form Display

When displaying the search form in my header, what is the preferred method to use if it cannot fit into my header region?? should I... create a custom region? use some kind of 'print $search_form' drupal_get_form()?? use the theme() function?? please help! I'm new to Drupal and trying to figure out the best 'Drupal Way' of doing thi...

How to update a Drupal 7 AJAX Form?

I am creating a Drupal 7 module. Currently my goal is to get the form to insert something into the database and then tell the user that it worked. I can get it to submit to the database just fine. Getting the form to rebuild and tell the user that their term has been submitted won't work. I keep getting variations on these alert errors: ...

Drupal get site wide email address?

In my module I want to get the site wide email address - the one that is set in the site information admin pages and that is used for all automatically send email messages. How can I do this? ...

Node Reference to Table in Drupal

I have Drupal with CCK, I have a content type named Article. This Article has 5 Node references. I'm using the table field in CCK and I'm trying to connect it to the references, so each article [that holds a table field] would have a table with 5 columns, one for each product and content that can change according to what the user w...

How can I use cck fields on a Location type View?

Hi ! I have a view of type LOCATION. My problem is that when I try to add a cck field the type "content" is not available on the type dropdown. I also tried to add a relationship but the content is not there also. Any ideas ? ...

Drupal HTTP / HTTPS Persistent Sessions?

For some reason my site is not sharing the session between http and https. My setup, Drupal 6 with securepages module installed. You cannsee the example of this here, http://matthewwoodard.com/prducts, if you add to cart you will see the cart empties when it switches to https...any suggestions? ...

expanding / collapsing FAQ

I need to add FAQ list to a page, and I would like to expand / collapse the answers when a question in the list is clicked. Could you suggest any Drupal module for doing this ? If I'm not wrong, the FAQ module (http://drupal.org/project/faq) doesn't include this feature (expanding/collapsing). thanks ...

Simple Hook Menu not doing what it is supposed to do

If a user is logged in as admin, it works fine but if user is logged in, it is sending them their profile page. Why?. What files can I check? $items['go/to/school'] = array( 'title' => 'Some page Title', 'page callback' => 'my_function', 'access callback' => 'my_access', 'type' => MENU_CALLBACK ); function my_function() { ech...

how to replace "Remove" checkboxes in Ubercart

I'm using Ubercart and I'm customizing the shopping cart. I would like to replace the check box to select which items to remove with a link "X Remove" which dynamically removes the items (ajax reqeust I guexx) by fading them out: From this: http://www.designer-daily.com/wp-content/uploads/2009/11/ubercart.jpg to this: http://dl.dropbo...

optional CCK field automatically replacing another field in a View

I have a content type with 2 CCK text area fields. The first field is always filled. The second fields is optional. Now: I have 2 Views. In the first View the first field is always displayed. In the second View the first 2 lines of the first field are displayed. However if the second field is filled, the first field should be ignored...

Custom formatter

Hi to all, I need to create a new custom formatter(using the module custom formatter) to replace some template code. So, for some fields, When I add a new custom formatter(field type: text) I need to print the title and the body. I tried to use $node->title but it doesn't work... How can I do this? Probably using elements? And if yes...h...

exclude CKEditor from pages of a specific Content Type

What's the syntax to exclude CKEditor from a specific content type text areas ? I know where to add the line to specify to not use it, but I don't know how to specify a specific content type. ...

Handling complex data collection with a CMS

I do web work for a group at the university I attend. We’re having a design company redo our site and will be coding the site ourselves. We’d like to build the new site on top of a CMS so that people can easily add content. So far I’ve been looking into using Drupal. The problem I’m running into while thinking through how well Drupal wil...

Drupal date of Birth multiple select

I want to create a form element that gonna output like this select date: [day] [month] [year] and each [box] is select box ... how can I do it with Drupal Form api I wouldn't want to use any fancy plugins / addons. $form['dob'] = array( '#type' => 'select', '#title' => t('select date:'), '#options' => array(1,2,3), ); out...

[Drupal] using a specific node ID to call a template file

The standard template for a node in Drupal is node.tpl.php It's possible to call a different template for a content-type, like 'newsitem'. You will call it like this : node-newsitem.tpl.php. I was wondering if there's a way to call a specific Node ID? node-34.tpl.php does not work. Thanks ...