drupal

$Body_Classes Variable in Drupal

I'm working with the Zen theme in Drupal and have discovered that I can get to the $body_classes variable through the _preprocess_page function in template.php. What I'd like to know is exactly how that $body_classes variable is populated? Where do the terms such as one-sidebar, etc, come from? Thanks ...

Searching views in Drupal

How do you add Search form to your Views in Drupal? Do I have to edit specific view template and add to it form-creating code that posts arguments to my view? Should form's method URL be simply view's URL and form fields the same as view arguments? Is that all the tricks I need to know? ...

How powerful is Drupal really?

I've been using Drupal for a long time, and know that it's robust and has tons of features. My question is, is it a framework that you can build REALLY big sites on? And can anyone give some examples of REALLY big sites that have been built with Drupal? To answer my question about whether or not it's a good idea to build really big sit...

How do I theme an aggregator category in Drupal 5.x?

Yes, I am still on Drupal 5. Don't make fun. I created a category with the Aggregator module, and the URL for the category is www.example.com/aggregator/categories/2. How do I theme this? Is it a node that can be themed with a template, or is there some other process I must use? edit: To clarify, I want to add some text right below th...

Drupal Webforms module - Form results say "Array" instead of form values

I have a simple form built with the Webforms module in Drupal. The standard textfield form fields work perfectly. However if I use the preset date or time form values, they don't get emailed properly when the form is submitted. For instance, if there was a date field in my form, it would submit fine and render on the results page just...

Calendar + Events in Drupal 5

"Events" module introduces Event content type, which has such two fields as event_start and event_end. While "Events" module has own calendar, I am need a few different calendars - so I chose Calendar module - which is based on Views. And here goes the problem: I create a new View, select View Type = Calendar, in Fields section listbox ...

How to redirect request coming from a domain to a subdirectory invisibly?

Hi, I am trying to redirect all requests coming from example.com to a subdirectory. The code below accomplishes this but I cannot make the subdirectory invisible. (The subdirectory contains a Drupal instance with its own/htaccess file. Could that be the problem?) RewriteCond %{HTTP_HOST} ^example.com$ [NC] RewriteRule ^(.*)$ http...

Drupal : adding status field to node

What's the best way to create in Node additional status field that is a list of fixed string values, and is visible to users, but modifiable by admins only? I am limited to Drupal 5, but interested in Drupal 6 solutions too. ...

Drupal best practises for custom admin section

Is this a common task in your Drupal work when you're asked to create a custom admin section in Drupal for your content? For instance, you have a few content types and user wants not only to view them, but to search using different filters, to add new items - all inside the same admin subsection. In essense, this is classic search/gri...

Drupal *_preprocess with a module

I'm new to Drupal dev, and was trying to add an existing region variable to my module's preprocessor function. Basically, I've created a new region for my site (here's the definition from within side my theme's .info file): regions[feeds] = Feeds From Administer->Blocks, I've added the blocks I want to the new "Feeds" region. Then, ...

Changing CCK Title for Form

By default a CCK form creation has a title of the form Create [Your Content Type Name Here] I want to change mine to Register for Such and Such It was suggested that I could use string-override, but I can't find the string to replace. I've also tried writing code to form_alter, but can't seem to figure out how to get the "title" ...

Slider problem for buttons

I am using slider module for sliding the content page. I want change the "next" and "previous" button. When the slider page is loaded, I want to hide the "previous" button. When I click the "next" button, the "previous" button should display, and when I go to the last slide, the "next" button should hide. How can i do this? I am using ...

How to reference *just* the image part of an image node in Drupal 6

Hiya, I'm building a recipe management system for a cooking website in Drupal, and I have to say the whole node / view / template thing is working very nicely! I've got one problem though and that is that I can't get a view to display JUST an image - it always comes bundled with it's title and a link through to the gallery. Can anyone...

Drupal, SQL Server and IIS7

Is there a SQL Server Provider for Drupal? I know that there is a SQL Server Client for PHP in beta and I wonder whether it would be hard to change the database provider to point to SQL Server instead of MySQL. ...

How to resolve an "Illegal choice detected " error in Drupal 6

Hi, Drupal is giving me an error message which says : "An illegal choice has been detected. Please contact the site administrator" on the site : http://naplesres.designbracket.com Whats worse is that this error is preventing me from logging into the website . Each time i input the uname/pwd of any of the users it throws an error.(I have...

Linking products in 2checkout with product in UberCart/Drupal?

If I setup products in drupal, how do I link them to the products created in 2checkout? is this possible? ...

Redirecting back to your site after checking out in 2checkout?

I've setup a drupal site before where I DID NOT specify an approved URL in 2checkout, and it returned back to my site. However, on another site, this is not happening. What am I missing? I am using Drupal, with Uber Cart and the standard 2checkout payment module. ...

Drupal: replacing field value in View

I have Drupal 5 View (must be "Views 1" so), which contains Event_StartTime field, which shows up normally for the fields that have a real date inside. But I also have a number of records with Event_StartTime field value like Dec 31 1969 - 8:00pm which looks bad in view and I need to replace them with some custom label, like "No Date Ava...

Expand Drupal menu by default

For the menu system, is there a way to set one of the menu items to be expanded by default? I can't get my home menu item to be expanded on the homepage (at the least), and I'd like it to be expanded whenever one of the other ones isn't. I'm using Drupal 5, and the Taxonomy Menu module. Taxonomy Menu is pretty good with 95% of my pages,...

Drupal's SimpleTest not creating copies of custom tables

I am using the SimpleTest module version 6.x-2.8 with Drupal 6.13. I wrote a custom module, for which I wrote some tests. However, SimpleTest doesn't seem to be creating a copy of the table associated with my custom module, because I get an exception message for every time I try to insert something into the table or query it in the Simpl...