All Questions
87,501
questions
5
votes
1
answer
3k
views
Remove specific stylesheets from a given page
Adding a stylesheet to specific pages is easy: implement hook_preprocess_page(), call drupal_add_css(...) and set $vars['styles'] = drupal_get_css().
But what is the proper way to remove a stylesheet ...
3
votes
2
answers
416
views
Adding a Space Context Condition
I want to add a condition of what type of space is currently active on the site. Does anyone know of a module that supports this?
I notice that spaces is setting a context for us, but I cannot find ...
2
votes
3
answers
317
views
How do I allow users to determine which other users can edit their content?
I'd like to let users specify which other users may edit their content. Basically a user would be able to create a piece of content, which they are then allowed to edit but no other users can edit (...
1
vote
1
answer
432
views
Printing a content pane with Printer, Email and PDF versions Module
I'm trying to determine how to add a content pane with an argument to a custom tpl.php file that is adding some other things to the print version. I've done this before with a block, adding in the ...
5
votes
2
answers
2k
views
Best method for custom login/register
I want to create a custom login and register page. I want both forms to show on the frontpage in the content area of my template above each other and not on separate nodes. Also, I would like to try ...
3
votes
2
answers
2k
views
How to expand the fieldsets in node-add form?
When I am adding new node by admin/content/node-type/story, there are a lot of settings ordered by groups: Submission form settings, workflow setting, comment settings. But all these fieldsets are ...
7
votes
8
answers
8k
views
Drupal used as a project management tool [closed]
I have been working with drupal for the past 2 years and I'm well aware of its power and extensibility.
I have been thinking for a long time, but has anyone been successful been using drupal as a ...
1
vote
1
answer
164
views
"Node: Created day" mismatched, not reflecting the actual created day
Views Version: 7.x-3.0-alpha1
I was trying to create a blog archive view, like blog/yyyy/mm/dd, where blog/2011/03/10 is supposed to display all posts created on 2011, March 10th. However, the page ...
3
votes
3
answers
912
views
Does it make sense to develop a fantasy sports management system by creating or extending entities?
I am considering building a fantasy sports management system with Drupal. The system will need content, so that's taken care of with the standard Drupal system. However, does it make sense (or even ...
3
votes
2
answers
2k
views
Change path /comment/reply/11#comment-form
How I can change path from /comment/reply/11#comment-form to /node/$node->nid/#comment-form in node $links?
1
vote
2
answers
884
views
Using a select form field for the field that selects the groups where a node is posted
The form for creating a node for the content type that has been set as content type for the Organic Groups module has checkboxes for choosing the groups where a node is posted; I want to use a select ...
3
votes
3
answers
863
views
Create an image repository
I'm trying to create an image repository with Drupal, but I face some problems.
I want to create a node with several images attached, but since the relation between images to nodes can be many-to-many ...
3
votes
1
answer
250
views
Distributing nodes across drupal sites
I'm investigating how to create a scalable drupal system where nodes can be shared across different sites. In order to support future growth, it is likely we will need to "plug in" more servers/sites ...
4
votes
2
answers
3k
views
Building a Web App using Drupal
I'm looking at building a Web Application on the Drupal framework. Does anyone know of an existing drupal profile installation that has this viewpoint?
For example, I've been building features for ...
5
votes
4
answers
3k
views
Can I use simple XML to feed views?
I want to use the power of views to handle my data which comes from simple xml representing just a grid resp table
<list>
<listpos id="12312">
<foo>attr1</foo>
<...
3
votes
4
answers
7k
views
Setting up video for Drupal- to play in popup
I've set up a Drupal website and would like to have video box that pops up when a user clicks a picture graphic. Sounds simple enough, but it turns out it is not straightforward in the land of Drupal, ...
7
votes
2
answers
14k
views
How do I access a taxonomy term's field(s)?
Specifically, I'm trying to access a field called 'logo' inside of a couple taxonomy terms (Tweet and Wikipedia edit), which is an image. I have a news feed on the front page of my site, and for each ...
3
votes
1
answer
565
views
How to order a node's taxonomy terms hierarchically?
Are the terms in a node's taxonomy array ordered hierarchically by default?
If not, what is the most efficient way to do so?
3
votes
2
answers
677
views
How to output form element values as text?
On a node edit form, I want to make certain fields be non-editable by all users but the values stored in them to be visible on the form. My thought was to just print them out as text instead of in an ...
3
votes
2
answers
978
views
Altering Nodecomment $links
I am trying to alter the "reply" links added to Nodecomment comments when the nodes are listed beneath the topic. The problem I have is that I want users to be restricted to the inline submit form, ...
6
votes
2
answers
991
views
What are effective optimization techniques for Views 3?
I have been doing a bit of profiling on a site I am working on which extensively uses views.
Views takes up about 2/3 of the processing time even with the views caching on. Are there best practice ...
3
votes
1
answer
219
views
List outline of books related to another book by a node reference field
I am using the book module with four content types: A, B,C and D.
A is the content type for child pages and the rest are allowed in book outlines.
I also have a node reference field in A that allows ...
2
votes
3
answers
4k
views
Display the title of related nodes from taxonomy in block
How can I display the title of related news in a block shown in node page?
For example, I create the content type "news", and add "news" nodes that have taxonomy terms taken from the same vocabulary; ...
3
votes
1
answer
236
views
Is it possible to create a "Meta-Forum" view when using organic groups?
We are using Drupal 6.x with organic groups. The groups have very different users and permission sets, and each group has a forum.
I was wondering if it is possible to have a kind of "Meta-Forum" ...
18
votes
5
answers
27k
views
Is it possible to restore a deleted node?
While revisions are kept and it is easy to get back to a previous revision of a node, I was wondering if it is possible to restore a node that has really been deleted by a user?
1
vote
1
answer
325
views
Show related Taxonomy list if created
I have created the following construction. If a student choose option A with the if construction the following step in the wizard is the internships with medicine domain A, but what if the school ...
3
votes
2
answers
3k
views
Loading a specific node revision for view
I am trying to load a specific revision for viewing by the end user. Drupal 7.
I have the following in my .module ;
function mymodule_node_load($nodes, $types) {
if ($nodes[821]->vid != 5928) {
...
5
votes
6
answers
700
views
How to proceed towards MySQL performance testing for Drupal?
We have lots of Drupal sites installed on our server. Some of the sites do have lots of views and blocks configured on it. Occasionally, one of such Drupal site (with lots of views and contents) ...
1
vote
2
answers
101
views
I created a view of a page and a block, but cannot find either. Where are they?
I created a page view, but when I type in the address for it, it shows "Page not found". When I try to put the block where I want it to go, it doesn't show up, not even under disabled blocks. What ...
2
votes
1
answer
585
views
Ubercart: Attributes?
I've got an existing cart and the inventory has separate products for different weights and they're separate entries. I want the varying weights to be combined and searched by attributes. What's the ...
11
votes
6
answers
8k
views
Create new content type on hook_install
Can someone show me a proper example of how to create a new content type in a module's hook_install method?
I'd also like to know if/what I should do during hook_uninstall to clean up my mess; I read ...
4
votes
5
answers
3k
views
Putting items in multiple places in a menu
I'm trying to set up a menu layout which has two links to /biblio; one under "Researchers", and one under "Staff". This is for convenience, as if you are looking under "Staff", the "Researchers" ...
4
votes
2
answers
735
views
How do I control the "more" link from a views content pane to point to a biblio filtered page
I'm using Drupal 6. I'm trying to create a view pane that lists three biblio items matching a particular term, and then offers a link to more items filtered using the same term. Biblio allows me to ...
3
votes
3
answers
3k
views
WSOD on administration pages
Here are the facts:
Made a clean install of Drupal 6.20
Installed and enabled Admin Menu module
From this point on I can't access any admin/* page however I can access to both node/* and user/*...
...
5
votes
2
answers
22k
views
Using jQuery to communicate to Drupal 7 via AJAX
I've been learning how to use AJAX with Drupal 7. I already know how to use the '#ajax' attribute with a form and also how to use the 'use-ajax' class with a link.
I have a nice jQuery slider on my ...
5
votes
2
answers
4k
views
Configuring SSL
I'm using Drupal 6 and already set the SSL Certificate (with my own Certificate Authority) configuration of my apache server, and added the following redirection in Drupal .htaccess file.
RewriteCond ...
6
votes
1
answer
3k
views
How can I transfer node and comment records from Drupal 6 to Drupal 7?
Is it possible to export particular nodes and comments in Drupal 6 and import them in Drupal 7? I do not want to copy the whole database and then upgrade it, but be able to move particular records.
8
votes
3
answers
3k
views
How can I hook into the system Contact form Message Sent process and alter the HTML generated?
I have a Drupal site where I am using the sited-wide system Contact to allow visitors to send messages to the site owner. Once a visitor submits the form, the user is redirected to the home page and ...
2
votes
2
answers
881
views
Multiple axis voting system (star rating)
I tried Multiple Axis Voting System using Drupal FiveStar and Computed Field, but I am not able to understand the below 2 points:
Add a node reference field to the voting node type, make the targeted ...
1
vote
4
answers
4k
views
How to create a block with views filter form available on each page of the site?
This is for a site of a small real estate agency.
I have a property_offer content type set up and offer type vocabulary, with 4 terms (Buying, Selling, Put out to lease and Take on lease). Then I ...
17
votes
3
answers
19k
views
How to remove certain meta tags?
How can I remove these tags from my pages in Drupal 7?
<link rel="shortlink" href=" .... " />
<meta name="Generator" content="Drupal 7 (http://drupal.org)" />
<link rel="canonical" ...
1
vote
1
answer
236
views
Ubercart Marketplace - Where is the ImageField for users?
Using Drupal 6
The Imagefield is configured for products. The imagefield appears for admin but not for users. How do I get the imagefield to appear for users who are authorized Ubercart Marketplace ...
2
votes
2
answers
1k
views
Ubercart: Change the product display form label "SKU"
How would you change the display of SKU? (Which hook manages the product-node display?)
I need sku to output to display "Model #". on a product node page
Drupal Version 6.2x
3
votes
3
answers
4k
views
How should I upgrade a customized theme?
I have made some custom changes to my theme files template, CSS and tpl files. Is there a best practice method of updating the theme besides going line by line and re-inserting my custom changes after ...
8
votes
8
answers
5k
views
Theme for mobile devices
I want parts of my site to be accessible to Android, iPhone and other mobile platforms. Is there a particular theme I should start with, or anything I should look for in a theme besides it being clean ...
1
vote
1
answer
5k
views
Drupal 7: adding an image and a link to a user page
I have a new Drupal 7 website with user profile pages like this one.
I'm new to Drupal and do not want to install any modules besides the core ones and the few written by me - because this will keep ...
41
votes
18
answers
47k
views
How to delete all nodes of a given content type?
I have several thousand nodes of a particular content type. Using the web interface (example.com/admin/content), I can only delete about 50 at a time. How can I quickly delete them?
6
votes
2
answers
2k
views
How should I handle container form elements?
I have added some custom fields to the register user form and I'm discovered that they are sent back, packaged in a form element of type "container". My code needs to handle all kind of different ...
4
votes
2
answers
884
views
Is it possible to make only one field in a content type language neutral?
If you have a text field, that you do not want to be translated (i.e. language neutral) as in a field for an email address, how do you set just that one field to be language neutral, while leaving the ...
5
votes
4
answers
353
views
How to handle Dev and Production servers having different file structure
I know you are not supposed to do this, but for reasons beyond my control the location of my web root is different on my Dev and my production server. As a result everytime I copy the database from ...