Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [7]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

5
votes
2answers
321 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?
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 ...
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.
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 ...
78
votes
14answers
49k 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 ...
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?
5
votes
2answers
425 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
408 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
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, ...
6
votes
5answers
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?
9
votes
3answers
1k 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 ...
92
votes
9answers
8k 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 from a Drupal site have a positive ...
36
votes
4answers
23k views

What's the proper use of EntityFieldQuery?

In Drupal 7, the API documentation for node_load_multiple() specifies using the $conditions parameter has been deprecated in favor of using EntityFieldQuery. How does one use the class to generate a ...
12
votes
8answers
6k 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?
11
votes
0answers
280 views

What are the “Gotchas” for a developer learning core 7? [closed]

So, I've stood up about 20 Drupal 6 sites for personal and professional use, written and contributed to Drupal 6 modules, and even co-maintain one. Just when I feel like I've gotten to know D6 ...
3
votes
3answers
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 ...
3
votes
2answers
395 views

Which drupal hook to implement to react on module installation?

I have module A installed that defines some custom hooks. Module A wants to be notified when another module B is installed, so that it can inspect and see if module B implements its hooks (for ...