drupal

Drupal node selector strategy?

I've got a content type called "contact". One user can create hundreds of contacts. I need another list of contacts stored somewhere else. Options: Use a view Create a new content type called "contacts" (with an s) and add a selector or node reference so you can just tick the nodes you like. 2 sounds like the best option to me, but I...

Drupal tagging via tagadelic

this module does a good job at creating a tagcloud block - all good here. now id also like to have a page that lists all tags with next to each tag the number of posts that were tagged with this term. all terms are listed ok on http://example.com/?q=tagadelic/list/3 but i dont think tagadelic can add the number of posts per tag? also, i...

SQL last insert in Drupal. Is it really threadsafe?

I have a query that might be executed by several users consecutively. I'm scared that if I run the db_last_insert_id command, some users might not get the last insert id, due to concurrency. But according to: http://api.drupal.org/api/function/db%5Flast%5Finsert%5Fid/6, it sates: Returns the last insert id. This function is thread sa...

Custom products in Drupal or OSCommerce?

I've looked high and low. I think I'm not searching for the right stuff. I want to know of a module, or plugin for either drupal or oscommerce that will allow you to "build your own products". I.e. A customer can go on the site, and say he wants PC A, with X amount of RAM, and Z sized harddrive etc. Is there a plugin or module for eit...

drupal_add_css not working

I need to use drupal_add_css to call stylesheets onto single Drupal 6 pages. I don't want to edit the main theme stylesheet as there will be a set of individual pages which all need completely new styles - the main sheet would be massive if i put it all in there. My solution was to edit the page in PHP editor mode and do this: <?php d...

How do I add two submit buttons to a Drupal 5 form?

I have two submit buttons on my form. One is the normal submit button that calls `my_form_submit` like-ah-so: $form['fieldset']['submit'] = array( '#type' => 'submit', '#value' => 'Show Applications', ); I want to add another button that will submit the form, but call a different submit handler. Is there any way to do this? I have...

Drupal to Drupal Migration

I am attempting to migrate hosts and am having issues migrating from one Drupal instance to another. I have a multi-site install. I am attempting to maintain the files/code as well as databases. I have transferred the files from the instance of Drupal from my old server to the new server. I have exported the databases via phpmyadmin ...

How to sort a view using Drupal Fivestar average ratings?

I am using Drupal 6.13, Views 6.x-2.6, Voting API 6.x-2.3, Fivestar 6.x-1.18. I have a content type with field of type Fivestar Rating. I have a view where my intention is to list all of the nodes with this content type sorted in descending order by the overall average rating. The view is working in that it is showing the correct info...

Drupal: How to change the sidebar width and color?

I am trying to change Drupal 6 garland theme's sidebar color and width. ...

DRUPAL probl [tid] field : in View how to link Taxonomy term to MY view (and not to taxonomy/term)

SUMMARY : I have a view where I need to replace the term link "taxonomy/term" by my view link, because the view uses arguments to find content with terms how can I put in link argument the term which is display : [term_name1] > link "display_view/term_name1", [term_name2] > link "display_view/term_name2" I used [tid] field to put arg...

Drupal: How to change "Title" Label when creating a new node?

Hi Guys, How can I change the 'Title' Label in creating a specific event using Drupal 5. I am using the event module . Do I need to hack the core codes of Drupal? My current URL add event node is: http://cec5/bhutan/?q=en/node/add/event Screenshot: Thanks in advance Cheers, Mark ...

Theming Drupal Panels

I created a homepage layout using Panels 3, mostly of blocks created by Views. Now I'd like to apply the visual look and feel as it was designed & sliced. Panels adds an serious amount of divs to its markup. I dont necessarily need to remove this but I do need to add certain classes, id's and change some of the tags used in its markup....

Drupal Tagadelic: creating my own block

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 ...

Drupal - Breadcrumb and 'In this section'

Hello, I have looked all over the Drupal site to find out how to view the breadcrumbs that the menu breadcrumb module installs, but no one else seems to be having the same problem as me, has any one come across the menu breadcrumb module in Drupal and knows how to use it? Also is there a solution in Drupal again couldn't find an answ...

Theming CCK node in Drupal 5

I need to add a few links to the bottom of node (custom type) form in Drupal 5. I've tried contemplate module, but it actually deals only with custom fields (contemplate template doesn't contain node title, description, taxonomy fields) - while I need to add links below or above actual body field. How can I make this possible? ...

Drupal module for webmaster block management?

The person managing a site I'm working on wants to be able to decide what blocks go where. There is already a nice interface for this in Drupal (selecting the region from a drop down) but I'd like to hide certain blocks from this user. These are blocks he should not be able to move around. Afaik this is not possible via the Permissions....

Finding information about fields in Drupal Views

I have a node type with multiple file attachments and would like a node view to show the latest file attached to the node. In Views, I have options to sort by node:updated or revision:vid, but of course they don't tell me which file was added last. Is there a way to sort by the updated time of a field? And, more generally, is there a ...

Auto generate email account during Drupal account registration?

I was wondering how to auto generate a user email accounts in Drupal? I do not have a host currently but am trying to get my head around how this would be done. ...

Creating New Accounts Remotely with Drupal

I'm presently building (at this point, prototyping is a better term) a paid subscription site using Drupal. After searching through the Drupal modules - I haven't been able to find anything that will allow me to create a new Drupal account once the user has visited my landing page, decided they want to subscribe, and provided their valid...

Drupal: Different output for first item in a block

I have a Block created by a View that outputs the 5 latest posts in the sidebar. For each of those nodes, the Block contains the title of the post and the posted date. Just for the first of those posts I'd like to display more information: taxonomy terms, author name and comment count. In my View I can send all those fields to the Blo...