All Questions

Filter by
Sorted by
Tagged with
73
votes
8answers
9k views

How can I obscure what I am using to run my site?

Is there anything I can do to prevent somebody from knowing my site is using Drupal by looking at the source code of the front page? I am referring to people who scan sites using software that detects ...
15
votes
2answers
10k views

Site stuck in maintenance mode

I have put a site in maintenance mode. Before I could visit the administration pages as user #1 (which was the user account I was already using before to put the site in maintenance mode), I had to ...
3
votes
1answer
851 views

What argument to use in Views that excludes the node currently being displayed?

For instance: if you have a view that produces a list of titles of nodes of content type X, how can you make that list exclude the node that is currently displayed to a site visitor?
10
votes
5answers
17k views

hook_preprocess_page(): how to tell a views page?

Im writing a custom module that need to insert some javascript and css files only in a Views page. Im using hook_preprocess_page, but I can not tell if the current page is from a view: function ...
1
vote
1answer
170 views

Integration with the RDF module

I have a module that creates HTML output. Does it need to support the Drupal 7 RDF module? What are the functions made available from the RDF module that allows a module to integrate with it? What ...
3
votes
2answers
440 views

How to use Drupal in the cloud with on demand instances

Services such as Rightscale do lots of things to help mange unpredictable traffic and bring more servers online when traffic spikes. Is it possible to use Drupal with services such as this? While ...
3
votes
2answers
315 views

How to handle blog tags in a contrib theme?

In blog or blog-like sites, taxonomy is often used for tags and categories. In Drupal 6, node.tpl.php files could use the $taxonomy variable if they needed access to an array of unrendered taxonomy ...
5
votes
1answer
1k views

Bulk saving nodes with a file field

I'm in the progress of creating a bulk upload function for a Drupal site. Using flash I'm able to upload the files to a specific url that should be able to handle the files. What I want to do, is not ...
7
votes
3answers
1k views

How can I automatically add taxonomy terms to a page's <meta> keywords in the HTML?

When Taxonomy is used for "free tagging", it basically becomes keywords for the content. From an SEO perspective, it would be great to automatically include these taxonomy terms in the HTML tag for ...
30
votes
7answers
19k views

How do I let users unpublish and publish their own content?

I want to let users unpublish and publish their own content. By default, you have to give "administer nodes" permission for users to be able to unpublish or publish content. That is way to broad ...
4
votes
2answers
616 views

How do I show a “read more” link in my RSS feed?

I need to trim down my RSS feed so that people come back to the site to read the full article, how might I do this and is there a preferred / best method?
22
votes
6answers
15k views

How to upload multiple files at once?

We need to upload multiple files of different types, is there a module that will check for valid mime types and upload only the valid files, (based on site settings, eg: png, doc, jpg, txt) ?
4
votes
1answer
3k views

How to migrate Drupal nodes from one installation to another, preserving revision history?

Is there a good way to export a set of nodes from one Drupal installation, including node revision history, and then to merge these into another Drupal installation, including revision history? I'm ...
0
votes
2answers
121 views

How to generate a list of which Features are enabled in which Spaces?

I'm running a Drupal 6.x site with Organic Groups, Features, and Spaces, and I'm interested in generating a list of which Spaces have which Features enabled. Preferably a table, with Spaces along the ...
54
votes
9answers
4k views

Real world experience in scaling and tuning performance

The website I'm working is allegedly going to have a massive hit rate soon after launch. The client is talking about the possibility of around 2500 hits per second over a day or so. Ignoring the ...
5
votes
2answers
331 views

How to perform an operation every time a node is viewed?

When writing a module, how can I perform an operation every time a node is viewed by a user?
34
votes
6answers
42k views

How to check Drush version?

How can I identify what version of Drush is installed on a given system?
10
votes
3answers
486 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?
2
votes
1answer
103 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 ...
17
votes
4answers
228 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., ...
5
votes
4answers
1k 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 ...
5
votes
3answers
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 ...
4
votes
2answers
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.
23
votes
3answers
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 ...
12
votes
3answers
2k views

How do I manage collaborative development on a Drupal site?

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 ...
5
votes
2answers
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 ...
22
votes
6answers
16k views

Correct way to change the active Drupal theme programmatically?

What is the correct way to change the active Drupal theme programmatically?
15
votes
7answers
3k 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/...
40
votes
3answers
6k 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 ...
58
votes
6answers
86k 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.
79
votes
14answers
50k 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 ...
2
votes
2answers
438 views

What are your GoDaddy cron settings for Drupal?

I own a lightweight blog hosted on GoDaddy (I know..). I could never get cron to automatically run so I manually run it when necessary. Does anyone have a working GoDaddy cron config?
17
votes
5answers
6k 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 ...
6
votes
1answer
285 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?
6
votes
3answers
4k 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 ...
17
votes
7answers
8k views

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

By default search page shows only 10 results. How can I change it to display unlimited number of results?
22
votes
10answers
5k 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?
5
votes
1answer
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 ...
1
vote
1answer
150 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.
5
votes
5answers
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-...
24
votes
4answers
11k 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 ...
5
votes
2answers
433 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 ...
3
votes
3answers
414 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 ...
3
votes
4answers
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, ...
6
votes
1answer
453 views

What should I take into consideration while planning a site in Amazon EC2?

Are there any specific requirements for module development and in site architecture for running "heavy" drupal site in several ec2 instances with load balancers?
9
votes
4answers
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 ...
5
votes
4answers
755 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 /...
3
votes
1answer
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 ...
6
votes
6answers
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, ...
21
votes
4answers
323 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 ...

15 30 50 per page