drupal-6

Configuring Drupal modules from within another module

When I create a new Drupal site I usually end up with at least one custom module and several community contributed modules. To get the site working as it should, many configuration values need to be set on the various modules. This makes deployment onto a fresh Drupal instance painstaking and error-prone. I would like to give my custom ...

Drupal view and path urls..

Hello, I've a problem with drupal paths in one view that I building. Right now my view has this form: contents/2/6. Where 2 and 6 are the Ids of two nodes, I'd like to manipulate these ids to translate them let's say the title of those nodes. I can not do this from the view because I'm sending these values to a panel, and the panel MUS...

Drupal: Create a custom page

I am working on developing a drupal site right now. I have created a custom homepage and it works fine with a module called (front page). However, I need to create a custom page for an internal page. Meaning, I need to have a different design than the general drupal theme I have right now but I am not sure how to do that (in an easy way ...

adding id to a tag in drupal's primary menu

hi! i want to add id tags to primary links menu.. it should look something like this: <li><a id="home" href="#">Home</a></li> <li><a id="about" href="#">About</a></li> <li><a id="contact" href="#">Contact</a></li> currently, it's just <li><a href="/test/drupal/content/home">Home</a></li> <li><a href="/test/drupal/content/about">About...

Problem in IE 7 and 6 with Drupal and jquery tools

While the Jquery tools code seems to work well in chrome and FF it is not working in IE 6 or 7 ... http://designbracket.com/ I am using Overlay on the Our Services Link and the links under it (please excuse the formatting for now... still working on the site) <?php jquery_plugin_add('overlay'); ?> <?php drupal_add_js( '$(function...

Drupal CCK field type with complex fAPI child fields

This question is basically a follow-up to this one: http://stackoverflow.com/questions/1640534/drupal-custom-cck-field-with-multiple-child-fields I need to build a CCK field type that stores several pieces of data, and fAPI form elements to accept the input for each piece of data already exist. These elements are built out into multip...

grouping items in a view

I have a content type called "convention" and a content type called "convention session". Each session has a node reference to a convention. A convention has a "from date" and a "to date", and each convention session has a simple "from date". When a user browses to the full node view of a convention, I want a block to be displayed on th...

Drupal/Ubercart - Ubercart Fee - Applying taxes to fees

Hi, I am using the newest Ubercart and Ubercart Fee (http://drupal.org/project/uc%5Ffee) modules. In the taxes configuration I checked the fees. On the checkout the tax is applied correctly. However if you move on with the process (to order review and/or invoice e-mail) the tax is missing. Can anyone confirm this bug or help me out? I ...

Is it possible to change the content type on nodes in Drupal 6?

I have inherited a Drupal site on which (for some reason) there are two different content types for news: one for press releases and one for everything else. I would like to combine the two and use a taxonomy to categorize the press releases and other news types. Is it even possible to do this? The site is using a number of modules, inc...

Why is php_template_preprocess_page function not called in Drupal 6x?

From another forum I found the following example: "I was looking for a way to pull node data via ajax and came up with the following solution for Drupal 6. After implementing the changes below, if you add ajax=1 in the URL (e.g. mysite.com/node/1?ajax=1), you'll get just the content and no page layout. in the template.php file for y...

change user_profile_form form fields order

When a user login , the user will be redirect to a user profile page, which has a My account field set. the field set has 2 fields, "Username: ", "Email address:". those 2 fields are generated by drupal. those 2 field contained in a form which has a id ("user_profile_form") . I want to change the order of those 2 fields. I have tried...

Drupal Profile alter: hook_form_alter

After reviewing some posts here and elsewhere, I still can't seem to manually add a select field to the profile. (I need the select list to be populated with a SQL query, not supported with core profile module.) So far, I am trying two different ways: hook form alter ($form_id == 'user-register' & hook user ($op == 'register') -- but I ...

Drupal6 auto creation of node

Hi all, I'm working with Drupal 6. What i'd like to accomplish is to have a node created when a user registers. The node should be owned by the new registered user and have, for example, a title with username in it scenario: 1) user "bunny" registers 2) a new node (of some kind) is created for that user 3) the new node title is "title_...

Drupal: re-selecting taxonomy terms in advanced search

I'm sure I'm not the first one to try to address this, but Google isn't doing me any good. If you use the Advanced Search in Drupal to filter on taxonomy terms, the search form comes back with the term IDs in the keyword textbox like so: search phrase category:32,33 The chosen values are NOT selected again in the taxonomy select box....

Why is my Drupal web form not working with IE?

I have a web form (built by the Drupal web form module) on my site. After a user has completed the form and clicked submit button, it should redirect their browser to the web form node page (node/1028/done?sid=26). But it just did not work with all IE browsers. There was no JavaScript error shown in IE 8, but in IE 6 and IE 7 a script e...

Creating a custom content type in drupal

hi!! i tried to create a custom content type in drupal but unnecessary features like Title, Menu settings, and Revision Information, URL aliases come with it which i don't really want ..coz it doesn't mean anything to the user.. how can i hide all those things, just preserving the fields(say only 3 fields from CCK) that i want only for t...

adding id to unordered list in views

hi!! i've created a view with all the recent node titles and styled them as an HTML unordered list .. it generates the list but, the ul tag doesn't have an id :( how can i add that? thanks.. ...

"context" on a drupal page

This question is a general one, and I've already posted a version of it here. I'm hoping, though, that I'll have a better chance of getting a response, and of being useful to more people, by asking in this forum. Associating content together when it all loads on a drupal page is tricky business. In drupal, each page, no matter the site,...

Theming the default search results page in Drupal

I'm trying to customise the mark-up of the default search results page in Drupal 6. Specifically I'd like to remove the search box and the title from the page - I know I can hide it with CSS, but I'd rather it wasn't rendered in the first place. Ideally, in the same why that you theme a particular content type node by copying the node....

Drupal 6: Can I automatically load a template for forum access permissions?

Is there a way to have it automatically load a template? It would be convenient for what I am doing. Right now you have to push a button each time you create a new forum to load a specific template. You can set which template is selected by default, but you can't automatically load the template. Any suggestions? ...