Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.
5
votes
Accepted
Alternative to Node Class module?
Check Skinr module.
If you are only looking for a straightforward way to add classes to nodes, you could do that even without any additional module.
Create a field called "css_class"
Hide that fiel …
2
votes
Accepted
Modifying the core tracker module
It's the best to clone the module, rename it to let's say "custom_tracker" and there do the modifications you need.
As I did this few times with other modules, here are some tips:
Rename with "cust …
5
votes
List of all active modules used in a site
Yes, check the Module Filter module: It's excellent administrator helper that makes managing modules much easier.
The modules list page can become quite big when dealing with a fairly large site o …
12
votes
Accepted
Completely empty page
You can do that through a custom module - create a path and instead of returning the output, just print it.
Here's an example:
/**
* Implements hook_menu().
*/
function YOURMODULE_menu() {
$item …
0
votes
Context - no reaction
Start with a sanity check - make sure your rules "make sense" and that you set them up correctly. Try to apply the same context rules on a clean install.
If it works there and not in your existing si …
2
votes
Accepted
Print Term ID in block on Term page?
Use this:
// Make sure we are on the term page
if (arg(0) == 'taxonomy' && arg(1) == 'term' && arg(2)) {
print arg(2);
}
3
votes
Accepted
How to reset a site to its profile installation? D7
Yep. You can also check out Demo as it is very very much helpful during testing and playing around in local development. You can create a snapshot of a clean website with your settings and then do wha …
1
vote
Accepted
Before saving a node how to get the file path
Check out hook_file_presave() function.
You might have to additionally rename/move the file after it has been uploaded.
See also this thread and check the File (Field) Paths module as it might have …
6
votes
Accepted
How to change the text in the revision log message?
Use the following code in a custom module or in your theme's template.php:
/**
* Implements hook_form_FORM_ID_alter().
*/
function YOURMODULE_form_CONTENTTYPE_node_form_alter(&$form, &$form_state, …
2
votes
How to create a module with forms?
One of the best way to learn how to do develop various common tasks is with Examples module.
Check especially the form_example module which has all necessary instructions and code examples.
0
votes
1
answer
111
views
Context select submenu
I'm trying to enable a submenu item through context rules.
However, the Context is consistently trying to select only the top parent item, and not the submenu. I tried few times on completely clean i …
0
votes
Why does Drupal run slow on localhost wamp?
In my experience, the performance difference between running Drupal on a *NIX system VS Windows is really noticeable.
If you can, try running it on some Linux distro, either as a dual boot or virtual …
3
votes
Is there a way to download Drupal without any included Documentation?
Short answer: no.
Long answer: you don't need it. It does not provide almost any significant performance improvements and if you would make such package/distribution yourself, you would need to filte …
2
votes
Accepted
What is the relationship between the node and the node revision table in Drupal 7?
I believe this is what you're looking for:
function MYMODULE_get_node_title($nid) {
// Using Drupal's DB API.
$query = db_select('node_revision', 'r')
->fields('r', array('title'))
->addT …
0
votes
How to check which enabled modules are really used?
I understand the need, but as far as I know there is no way to do this automatically.
Creating a universal module that would work in any installation would be quite complex. There are too many ways i …