All Questions

Filter by
Sorted by
Tagged with
41 votes
6 answers
65k views

How to check Drush version?

How can I identify what version of Drush is installed on a given system?
markdorison's user avatar
  • 5,614
10 votes
3 answers
868 views

How can I create a patch using Git?

I have found an issue on drupal.org that I would like to submit an solution for. How can I create a patch using git so that I can submit it as a possible fix?
markdorison's user avatar
  • 5,614
2 votes
1 answer
104 views

Making responses to public nodes only viewable by the creator and the originator

I've got a prototype site built in D6, pertinent modules: CCK Comment block Node Comment Views Views Or The site is built around a list of open requests; to solicit a private response. These nodes ...
Richard Harrison's user avatar
17 votes
4 answers
258 views

How do I choose which module to use when there are several options for the same functionality?

It's not at all uncommon to find multiple modules that provide basically the same functionality. For instance, there are many SPAM control modules that offer extremely similar functionality (e.g., ...
Chaulky's user avatar
  • 6,453
5 votes
4 answers
2k views

Good practices working with databases

I'm learning Drupal, and I want to develop a website where the main thing is its database. I already have the Extended Entity-Relationship Model of the database (kind of complex). What's the right ...
Oscar Mederos's user avatar
5 votes
3 answers
1k views

How can I setup Git/Drush dl/make caching of Drupal projects?

I'd like to setup the ability to have Drupal projects cached locally when I do a Git clone or Drush dl/make, so that if I happen to be offline or just to save bandwidth, when I Git clone/Drush dl/make ...
Decipher's user avatar
  • 3,722
4 votes
2 answers
4k views

How to override single function of theme's template.php using sub-theme?

Target: Drupal 7 Sub-Theme Development I don't want to override whole template.php file. I just want to override single function of template.php file.
user931's user avatar
  • 414
23 votes
3 answers
5k views

How do I write automated tests?

I saw that Drupal 7 includes some kind of testing framework (I haven't tried it out yet since my existing sites are still in Drupal 6 and likely won't migrate any time soon). How can you write ...
Chaulky's user avatar
  • 6,453
12 votes
3 answers
2k views

How do I manage collaborative development?

I work with another developer on a Drupal site. We have struggled to find a good way to work on different parts of the site at the same time without getting in each others way. We've tried working on ...
Chaulky's user avatar
  • 6,453
5 votes
2 answers
3k views

Is it possible with Drupal Views to have AND and OR in a filter set?

I am attempting to build a view with four filters (A, B, C, D). With Views 3 it is possible to select whether you want these filters to be chained with AND statements or OR statements. Is there a way ...
markdorison's user avatar
  • 5,614
23 votes
6 answers
18k views

Correct way to change the active Drupal theme programmatically?

What is the correct way to change the active Drupal theme programmatically?
markdorison's user avatar
  • 5,614
16 votes
7 answers
4k views

Exporting Taxonomies to code

I'm looking for a way to export Taxonomy vocabs and their associated terms. So far I've found and tested: Taxonomy Export -- Exports to code using features but doesn't import. http://drupal.org/node/...
digital's user avatar
  • 3,228
39 votes
3 answers
7k views

How do I merge changes from a development copy of the site to the live site without losing new content?

What is the best procedure for merging work done on a development copy of a site to the live production copy? Often times there has been a lot of new content added to the site since development ...
Chaulky's user avatar
  • 6,453
58 votes
6 answers
88k views

How do I create custom regions in a theme?

I want to add a new area which will be site wide. Describe the process of getting this new region into my theme, if possible generalize it for adding any new, custom region.
palbakulich's user avatar
  • 1,367
81 votes
12 answers
55k views

Any way to add CSS for a single page/node?

I'm cleaning up my big crazy style sheets (possibly pertinent to a future question) and I'm wondering the best way to add custom CSS to a specific node or page. In particular, my work site's home page ...
epersonae's user avatar
  • 1,290
2 votes
2 answers
513 views

How should I configure cron tasks to make them automatically run on GoDaddy?

I own a lightweight blog hosted on GoDaddy. I could not get cron to automatically run, so I manually run it when necessary. How should I configure cron tasks to make them automatically run on GoDaddy?...
James Stallings's user avatar
17 votes
5 answers
7k views

How do I add an access condition to a menu item?

How can I add new conditions on top of existing conditions that determine whether a menu item is visible? These conditions should not be limited to permissions settings. As an example use case (not ...
Chaulky's user avatar
  • 6,453
6 votes
1 answer
295 views

What security issues are involved with cross-domain logons using OpenID?

I want to implement cross-domain logons for 3 sites. Is OpenID the best tool for protecting my site and users?
palbakulich's user avatar
  • 1,367
6 votes
3 answers
5k views

Duplicate taxonomy terms from view

So I haven't yet been able to find a solution to this without using a preprocess function to check for duplicates or just using the 'tagadelic' module.. it'd be nice to get some closure. How do I ...
Storsey's user avatar
  • 398
16 votes
6 answers
9k views

How can I get more than 10 search results on one page?

By default search page shows only 10 results. How can I change it to display unlimited number of results?
mivoligo's user avatar
  • 277
23 votes
10 answers
7k views

Can I turn cache off for the development deployment?

On development platform caching can be a pain. Can I turn it off? Will it affect any of the modules that require it?
palbakulich's user avatar
  • 1,367
5 votes
1 answer
4k views

How to create relationships between Taxonomy vocabularies?

I'm trying to build a site with similar content conventions to Craigslist. The problem is, I don't really know a good way to create multiple vocabulary relationships in drupal. Here's the end result I ...
Garrett's user avatar
  • 287
1 vote
1 answer
161 views

Is it possible to replace the original RSS content?

Is it possible to replace the original RSS generated for the front page by custom content? I know how to create custom RSS channels using views, but not how to replace the original RSS.
Šimon Tóth's user avatar
5 votes
5 answers
5k views

Running Drupal in a Windows environment (IIS, SQL Server)?

We are in the process of evaluating Drupal to replace our in-house .NET CMS. We run an IIS 7.5 web farm with a SQL Server 2008R2 on the back end. To make matters worse, we use sql server merge-...
James Stallings's user avatar
24 votes
4 answers
13k views

Custom query in Views?

At some point I found the need to modify an SQL query generated by Views, in the end I overrode views_pre_execute and changed the query for that specific view. This feels like an ugly hack to me and ...
Mad Scientist's user avatar
5 votes
2 answers
462 views

What can cause a site to hang when deleting a user?

When I try to delete users the whole site hangs, i.e. Drupal does not respond anymore. What can cause that? The site does not have any special user profile modules installed. Edit: There is only one ...
EricSchaefer's user avatar
3 votes
3 answers
426 views

Is there a media-handling module that can handle midi files?

I've been using MP3 Player to provide an on-page mp3 player, but I also need to be able to handle midi files. Right now the best I can do is allow them to be uploaded into the "mp3 file" field, but ...
Nicholas Trandem's user avatar
3 votes
4 answers
2k views

Views 2 Conditional Filter

How can I apply a conditional fitler to a view (using views 2)? For example: I have a view which displays the teasers for several different node types using a filter on Node:Type in [Blog entry, ...
cjworden's user avatar
9 votes
4 answers
3k views

What is the recommend process for migrating a Drupal 6 Ubercart site to Drupal 7 / Drupal Commerce?

I'd like to migrate a client's site from Drupal 6 and Ubercart to Drupal 7 and Drupal Commerce. Is there an easy (i.e.: no manually munging data in the database) migration path? Do I need to go to ...
Nicholas Trandem's user avatar
5 votes
4 answers
774 views

Redirect on Login?

I have tried making this a rule as well as used hook_user with no luck. It definitely gets inside of the login case (had a watchdog log), but the redirect doesn't happen and they are still sent to /...
Kevin's user avatar
  • 27.9k
3 votes
1 answer
1k views

Authentication for iCal feeds

I have a calendar feed (using the Drupal Calendar module) on a site and I'd like to add this calendar to Google Calendar. I have this working for a publicly accessible calendar and it works fine. The ...
Mad Scientist's user avatar
5 votes
6 answers
11k views

Rebuild imagecache

I have an imagefield per node that's run through imagecache. Since imagecache caches on-demand, cache files/variations aren't created until they're first requested. So if I update a bunch of images, ...
ack's user avatar
  • 2,149
21 votes
4 answers
410 views

How do I backup my site w/o the command line?

Nearly all the documentation on backing up my Drupal site seems to require using the command line. My hosting service does not provide command line access. How do I backup my site without using the ...
Alex Basson's user avatar
3 votes
3 answers
2k views

What file and folder permission changes does the Microsoft Web Platform Installer make when it installs Drupal?

I have used the Microsoft Web Platform Installer to install both Drupal 6 and Drupal 7 on my Windows Server 2008 R2 servers running IIS 7.5. (see: http://www.microsoft.com/web/downloads/platform.aspx) ...
cpuguru's user avatar
  • 426
5 votes
4 answers
1k views

Distributed authentication system (different domains, separatate databases)

We got multiple small websites (microsites) and one main high traffic one with big users base. Right now the requirement is to build authentication system which should allow users to loign with the ...
gansbrest's user avatar
  • 161
8 votes
4 answers
2k views

How to maintain a local mirror on my Mac?

I have a personal Drupal 6 site being hosted commercially, and I would like to maintain a mirror of the site on my local MacBook for the purposes of developing custom modules and themes before ...
Alex Basson's user avatar
6 votes
5 answers
4k views

How to determine if the current page is a search results page?

How can I determine from within a module or theme if the current page is an Apache solr search results page?
markdorison's user avatar
  • 5,614
9 votes
3 answers
2k views

How do you load extra javascript files required for wysiwyg api plugin on node/edit pages?

I'm building a plugin using the WYSIWYG API module for Drupal 7 that will add a button to the toolbar of supported editors. I'm using the hook_wysiwyg_plugin() hook to create a new button on editor ...
Camsoft's user avatar
  • 3,139
93 votes
9 answers
9k views

Do non-enabled modules affect performance?

Does having Drupal modules present, but not enabled have any effect on the performance of a Drupal site? To put it another way, would removing disabled modules on a Drupal site have a positive affect ...
markdorison's user avatar
  • 5,614
92 votes
7 answers
46k views

How to take a site offline using Drush?

How can I take a site offline using Drush?
markdorison's user avatar
  • 5,614
6 votes
2 answers
221 views

What are the major differences between Drush versions 3 & 4?

What are some of the biggest differences between Drush versions 3.x & 4.x?
markdorison's user avatar
  • 5,614
80 votes
7 answers
9k views

Suggestions for settings.php - Local dev, Development server, Live server

Basically, one of the greatest questions of all time: What are some ways you're using settings.php in your development/staging workflow? Right now, I have my settings.php file set up like the ...
geerlingguy's user avatar
  • 5,483
37 votes
4 answers
28k views

What's the proper way to use EntityFieldQuery?

In Drupal 7, the API documentation for node_load_multiple() says that using the $conditions parameter has been deprecated in favor of using EntityFieldQuery. In which way should EntityFieldQuery be ...
102 votes
10 answers
97k views

How can I change a user's password from the command line using Drush?

How can I change a user's password from the command line using Drush?
markdorison's user avatar
  • 5,614
12 votes
8 answers
7k views

How can I change the Apache Solr search URL?

How can I change the default Apache Solr URL path from "search/apachesolr_search/term" to something else?
markdorison's user avatar
  • 5,614
5 votes
3 answers
217 views

Drupal accounts with dead addresses: how to de-activate?

on my drupal website, there are a lot of users with an invalid email address. I know because, either they have never logged in or their mails bounce. But I have to check manually, which is not good. ...
Philippe's user avatar
  • 193
3 votes
3 answers
1k views

Documents as a node/block/field

I'm working on my first Drupal site. Using FileViewer I can load a PDF saved in a field, for viewing of various types. I haven't found something that does the same for Word Docs, Excel, etc. Does ...
WernerCD's user avatar
  • 784
7 votes
6 answers
13k views

How to get nodeid?

How to get nodeid in Drupal for the current page without using the information from the page url? I.e.: if(arg(0)=='node' && is_numeric(arg(1))){ $nid = arg(1); } I do not want to use the ...
6 votes
3 answers
2k views

Block template suggestions

Is there a way to use a custom template for each block by title? For example, if I named my block "test1", and it is in the region "left1", I want to use the following template suggestions: block-...
amirash's user avatar
  • 291
5 votes
1 answer
4k views

Override comment.tpl.php file with theme

Objective: Override comment.tpl.php file output in drupal core modules. Assumption: My best guess is that I need to create a comment-[type].tpl.php file in my themes folder. Requirements: template....
Kevin's user avatar
  • 155

15 30 50 per page