drupal

Is there a Drupal module for importing text and images?

I'm very new to Drupal, and am wondering if there's an API that external programs can call to transfer text and images directly into my Drupal site. ...

Drupal 5 views -- can I have a random block and a sorted page?

I keep running into the same problem, and I feel like I'm solving it the clunky way. Do you have a better solution? I have a site that with the content type "Staff Bios". I've created a view page that lists all the bios in alphabetical order. I want to have a block that shows just one bio (like a sidebar teaser), and I want the choic...

Drupal 6 add node form close when submitted

How do I have a submit form close when you hit save and then force the next page to reload and update with the data from the form? This is drupal 6. ...

Drupal wizard form: Validation and previous button

In my drupal6 site I have wizard form. I implemented it with FormAPI using form storage and the rebuild property. My form validation is being done with the #required property and with functions in the #element_validate property. It's working fine but for one thing, when I click on the previous button the form is being validated and I don...

Drupal Views: Generate xml file

Is there a views plugin that I can use to generate a xml file? I would like something that I could choose the fields I would like to be in the xml and how they would appear (as a tag or a attribute of the parent tag). For example: I have a content type Picture that has three fields: title, size and dimensions. I would like to create a v...

Scaling Drupal

I am working on a Drupal based site and notice there are a lot of seperate CSS and js files. Wading though some of the code I can also see quite a few cases where many queries are used too. What techniques have you tried to improve the performance of Drupal and what modules (if any) do you use to improve the performance of Drupal 'out o...

Drupal: how to change taxonomy header on page with items?

I have a menu item like http://localhost/drupal/?q=category/articles/php It's supposed to output all stories about PHP, But in resulting page header (with term name (PHP) ) doesn't look very well. How can I remove header or change its CSS style? ...

What is the difference between a theme and a template?

I am trying to migrate my site to Drupal and I am confused about themes and templates. The look and feel of the pages in my current site are completely controlled by template files and CSS. How does it work in Drupal? ...

Drupal: How to enable WYSIWYG editor on fields added using CCK?

I added couple of Text fields on a content type in Drupal - however, only the in-built "body" fields is WYSIWYG editor enabled. I am using FCKEditor as the WYSIWYG editor (installed under the "wysiwyg" add-on. How can I get WYSIWYG editor enabled on custom added field? ...

How can I create a search block with Taxonomy terms and Keyword search in drupal 5?

I'm trying to create a search block like the one on Top Notch Themes where the users can choose one or more taxonomy terms and then do a keyword search within content that matches those terms. I was trying to figure out how to do this with Views but that didn't work right. It wanted to suggest the terms and then filter the view. So I fo...

CSS to hide INPUT BUTTON value text

I am currently styling an input type='button' element using something like: background-url: url(someimage); color: transparent; background-color: transparent; -the point is i want the button to show as an image, and i want the value-text to NOT display on top of it. This works fine for Firefox as expected. However, on IE6 & IE7 i can ...

How to change Drupals menu alternatives for creating a page

I have a Drupal site with Organic Groups and I want one group to be able to access the menu options and place the page in the primary_links menu where ever they want. The other group shouldn't be able to access it at all. I have accomplished some of this with privileges, but the user who has access to the menus have access to all menus....

Index of a record in a table

I need to locate the index position of a record in a large database table in order to preset a pager to that item's page. I need an efficient SQL query that can give me this number. Sadly SQL doesn't offer something like: SELECT INDEX(*) FROM users WHERE userid='123' Any bright ideas? EDIT: Lets assume there is an ORDER BY clause app...

Redirecting an internal path to a virtual host

I have been working on a drupal test site for a while, which has a bunch of virtual hosts set up like this: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/path/to/root" ServerName testsite1.example.com </VirtualHost> I have been using a modified host file to view each of these test sites, along the lines of: 12.0.0....

.htaccess files when hosting Drupal 6 sites on IIS 7?

I want to run Drupal 6 on our Windows 2008 server using the included IIS 7 web server. There are a few blogs giving various instructions on doing so, but when I try to create Drupal sites and/or active some modules using IIS 7, I get error messages about creating folders and/or missing .htaccess files. It looks like Drupal relies on .h...

Issue with Drupal "sites" folder

I have a Drupal install on the MediaTemple gs hosting plan. The site is up and working fine but I've had some issues with the "sites" folder. If I put themes in the "sites/default/themes" folder, they show up on the "Themes" folder but none of the icons show up for each theme. Enabling a theme removes all the styling from the site like ...

Differing Apache Solr results when doing queries through Drupal – why?

I'm trying to create a custom search interface for Apache Solr using Drupal, and I'm having some strange issues with the results. I have the same query yielding 8 hits when I run it from Solr's built-in web interface, and 0 hits when I run it through Drupal. Can anyone explain why? Here's the queries, both taken from the Solr log: So...

jQuery Magic with hook_form_alter in Drupal

There isn't much tutorial in the Pro Drupal book about ahah, but I'm trying to start off with something simple. I have two content types, 'topic' and 'tips' and categories. The topics are a node reference field in tips. The topics are organized by category. When filling out the form for a tip, I would like the category the topic belongs...

At what point do you need to be a programmer to work with Drupal?

Drupal seems to have lots to offer to the non-programmer. Tons of modules and easy installation. But at what point would you say you need to be a programmer? Where does it fall down and require more hands-on attention? Also, even though they aren't "meant" to be done, I'm interested in any custom tweaks you've had to do to the code base...

Flickr in drupal?

Hi, I am trying to get flickr images to work in Drupal, any idea how to do this? ...