All Questions

1
vote
4answers
4k views

Cannot install Open Atrium

I've been trying to install Open Atrium for at least 6 hours and cannot find a solution. There seems to be a permissions problem… Here's where I'm at: I successfully installed a Ubuntu VM, and ...
1
vote
2answers
1k views

Views Slideshow Output different in IE vs Firefox/Chrome/Safari

A site I'm working on is using Views and the Views Slideshow plugin to generate a tabbed panel on the site. We modified the output of the plugin to display link names instead of IDs, which worked ...
14
votes
5answers
2k views

Entities in Drupal 7

What are Drupal Entities in Drupal 7? I understand that Drupal Commerce built Products as an Entity. I know now there is a core Entity API and an contrib add on for Entity API. I have a few projects ...
10
votes
8answers
24k views

How to detect the current URL?

I would like to add a body class in D6 if you are on a specific page(s) currently in my template.php I have: if url('the/path') { add the body class... } but that function doesn't seem to be ...
8
votes
3answers
9k views

Views 3 and HTML5 - how to override output for markup?

I have a view that I've created that selects blog posts based on a specific taxonomy term, creating a sort of "Featured Posts" view that I've embedded on the front page of my site. The issue I keep ...
3
votes
1answer
596 views

How to create a view to display a block of referenced nodes?

I have a node type, called "policy", that has a bunch of CCK fields, including a Node Reference type. This is configured to reference an unlimited number of nodes. When the nodes are viewed, the ...
6
votes
3answers
3k views

How to structure theme folder to make it more manageable?

So far, I've been able to put page, node, field and block templates in their own separate folders. My idea is that Drupal needs to find the main original tpl file (ie page.tpl.php) in a folder and ...
2
votes
1answer
1k views

Using CCK Date with Date Repeat on Calendar

I have a content type named Event. It has a field name Date, which uses the jQuery pop-up with Repeat options. It uses the To and From date, both of which are required. The time zone conversion ...
2
votes
4answers
1k views

Entity API and Contrib Modules

When using the Entity API, is it fairly simple to interact with Taxonomy, Path/Pathauto, XML Sitemap, and Views? If so, what parts of the API should I be looking at?
0
votes
3answers
663 views

How do I echo the node vocabulary in preprocess_page or in page.tpl.php so that I can test against it in Drupal 7?

I need to be able to echo the vocabulary that is associated with a node, but I need to echo it either in the preprocess_page function in template.php OR somewhere in page.tpl.php. I can't seem to find ...
2
votes
2answers
2k views

default routing of custom module

I'm trying to write my first module and am using the hook_menu to route the pages. The module consists of a multi-step form and two static content pages. /** * Implements hook_menu(). */ function ...
9
votes
1answer
2k views

Testing installation profile with custom tasks

For a large project, we are using a code driven development workflow. We are using a custom installation profile to install and configure the contrib and custom modules used on the project. The ensure ...
10
votes
3answers
19k views

How can a user access only one specific node, and not all nodes of that type?

I have a user with view and edit rights to a specific content type. This give the privilege to all users to view and edit all the nodes of that type. But actually, I want to create for each user a ...
7
votes
8answers
11k views

How to redirect toward a specific node from front-page in Drupal 7?

I have a multi language site made in Drupal 7. And I want to check if I am on the front page then if true to redirect the user to a to some specific node. I have tried different methods: to create ...
5
votes
3answers
694 views

Change $<field_name>_rendered output?

In a node I get the values of CCK fields as $ array or $_rendered as the rendered view of the field. How can I change the $<field_name>_rendered from its default way of rendering?
8
votes
6answers
10k views

Attaching existing server files to filefield

How do you set an existing file path for a file field, in Drupal 7? The only option I see is to upload the file again. In Drupal 6, FileField Sources seems to do this. Does FileField Paths or IMCE ...
8
votes
2answers
603 views

Best practice for custom module variable names?

I've gotten into the habit of doing pretty robust configuration panes for my modules now, and I'm finding the variable names & management to be quite the pain. I have variables like ...
6
votes
2answers
7k views

How do I resolve the “Argument 1 passed to drupal_attributes() must be an array” error on my system_settings_form()?

I don't usually post specific questions like this, and ask for help on a specific issue but I am at the end of my rope wasting time way... I have a simple D7 module as seen below, when I load the ...
1
vote
4answers
284 views

Multiple “unused” Views displays

I'm creating a heavily customised website in Drupal. I want to use Views as a data source for a page with several options, where each option corresponds to a different display in a View. The reason I ...
1
vote
2answers
1k views

Node Access table goes empty

I currently have a project where I am inserting mulitple records into Drupal using node_save. Its usually a couple of hundred at a time. For some reason, sometimes the node_access table ends up empty, ...
3
votes
1answer
4k views

Are taxonomy fields exposed to views?

I am trying to create a view of nodes that have a taxonomy reference field. I can get the taxonomy term but do not see the taxonomy fields that I've created exposed to views. Google searches do not ...
5
votes
3answers
2k views

External JS libraries

I have a few external js files that I call in my page, at the moment these are called via script tags in the header. I am tempted to pull these locally and include them in my themes script file to ...
6
votes
2answers
5k views

Are “files[]” from custom_module.info not included on form submits?

I have a module that I am porting to Drupal 7 (specifically, Taxonomy Views Integrator) and there are 2 include files tvi.admin.inc which were included via the module's .info file: files[] = includes/...
3
votes
1answer
4k views

Custom default value for Webform's select options component

I use Drupal 7 with Webform 7.x-3.9. I have created a new component from type "select options". I also have chosen to display it as a listbox and I've populated it with a few strings from the type "...
3
votes
1answer
656 views

Save order data in a plain text file

Just like the order data can be sent via email, I want to save the order data in a plain text file in a specific directory on the same server as the drupal installation. Is it possible? How can I ...
5
votes
3answers
596 views

Best practice for avoiding module / theme / profile name clashes?

We currently have our code managed such that each site has its own theme and install profile. These have naturally evolved in such a way that the names of these items (and their directories) tend to ...
3
votes
4answers
3k views

How to hook theme of the main system menu in drupal 7 to display only some of the elements?

I want to modify the main system menu in Drupal 7. Actually I want to display only some specific elements of the menu and hide some other specific elements, in a given case (which I will implement by ...
8
votes
4answers
6k views

Customising the first item in a view

As a block on my homepage I'm trying to output: <ul> <li><a><img><p>Node 1</p></a></li> <li><a>Node 2</a></li> <li>&...
6
votes
2answers
2k views

“Enterprise” authentication, single sign-on and user provisioning for multiple sites

I'm looking for a solution for user provisioning, authentication and single sign-on which will make it easy for me to manage accounts for all the staff at my company across all of the sites we work on....
2
votes
4answers
608 views

Need a WYSIWYG plugin

Straight to the point, I need a WYSIWYG module for Drupal 6; here are the requirements: Easy to change the toolbar button Able to add custom style Able to upload image and put into content Able to ...
31
votes
13answers
21k views

How can I disable a single checkbox in a 'checkboxes' FAPI element?

Title basically says it all, I want to disable a single checkbox of a checkboxes type FAPI element. I don't want to do if with JavaScript, nor is changing it from checkboxes to multiple checkbox ...
6
votes
1answer
1k views

List Private Organic Groups Publicly without giving access to the node page?

I have a view setup to list my OG Nodes, those nodes and their greater content need to be private to only the group, but on the front end of the site I want to list some of the featured Nodes. As it ...
19
votes
6answers
9k views

Is there a drush script to disable all caches?

I mean all of the caching options under admin/settings/performance. I frequently use drush sql-sync to keep my development copy up-to-date with the server. However, the server must have all of the ...
2
votes
2answers
807 views

Can I have a views field handler with an exposed form, or a filter handler with pre_query?

It's basically in the title, but here's the question: I'm trying to create a way to allow the user looking at a view to control which columns are visible. This isn't very hard, provided I can get ...
38
votes
9answers
42k views

How do I change a theme based on the URL?

I have a Drupal instance running on example.org. Which has a theme X installed and activated. Now for a limited period an event is supposed to be held on the site for which a special section has been "...
14
votes
4answers
6k views

Limit Teaser to display only the first value of a Field

I have a Content Type with an Image Field. This field will typically be populated with 0 to 4 values. By default the teaser for this Content Type outputs all 0 to 4 images. How can I adjust the Teaser ...
7
votes
2answers
3k views

What is the equivalent of theme_menu_item in Drupal 7?

I know that in drupal 6 exist: theme_menu_item, but in drupal 7 there is not. Is there any replacements so that I modify the output for main system menu ? Actually I want to do a kind of filter of ...
3
votes
2answers
4k views

How can I use conditional logic to not display a <div> in page.tpl.php based on node id?

I'm using a theme that has regions not supported by Panels' "Disable Drupal blocks/regions" settings. I've tried to remove the using an if statement in PHP, but either my PHP syntax is wrong or I'm ...
20
votes
5answers
9k views

Is there a way to get Drush to download all required dependancies for a specific module?

For example if you perform the following commands: drush dl views drush en views views_ui views_export You will get the the following error when trying to enable the views modules: Module views ...
11
votes
9answers
6k views

deleting comments in bulk

how can I delete all comments at once? I have seen how to do it with nodes and bulkdelete module, Delete all nodes of a given content type but am looking at a similar solution for comments. I am ...
4
votes
1answer
140 views

How To Place One Forum Topic in Many Forums

I have a forum system created with D6 and the Advanced Forum module. I would like to have a special forum topic posted in all the forum sections that describes the site rules and how to use the ...
2
votes
2answers
3k views

hook_preprocess_page: “node_load() + node_page_view()” versus “%node + node_page_view()”

A basic node (nid "123") exists and a module registered two paths using hook_menu: first/%node second Both page callbacks use node_page_view($node) to display a fullpage view of the node, except ...
3
votes
5answers
5k views

Drush enable/disable Devel modules

I love admin-menu's Enable Developer Modules menu item. How can I toggle this from the command line? Admin menu already has a configuration of "developer" modules set up in settings.php. I can ...
1
vote
1answer
2k views

Drupal 7 Views Contextual Links edit Nodes and Fields

I created some Views with Drupal 7 and also installed the module Contextual Links. It helps me to edit Views and Blocks. But for non-admin users like Editors etc. it would be great to even edit Nodes ...
4
votes
2answers
672 views

How To Redirect to a Named Node upon Registration

Given a D6 site where users must confirm their email address, I would like new registrants to be immediately redirected to a Page node which explains the email verification process. I attempted to ...
2
votes
2answers
918 views

How to create a node revision view with a “Node” row style?

Is it possible to create a node revision view with a "Node" row style? This does not seem to be an option in the Views interface. "Fields" is the only options presented for this type of view. Is ...
4
votes
5answers
5k views

How to return a View's content in search results?

We have a page display of a view that contains two or more nodes, but when searching for a keyword that would pertain to those nodes, only links to the individual nodes are returned. What we really ...
3
votes
2answers
252 views

How do I get backslashes to save?

Everytime that I type a backslash into a textbox on my drupal site (in content editors, administration pages, you name it; I mean any textbox), it gets filtered out before it reaches the module code. ...
1
vote
3answers
1k views

Add custom permission to specific module “group” on permissions page

Using a custom module, how can a permission be added to a core/contributed module "group" on the permissions page without hacking the core/contributed module? Example:
8
votes
1answer
8k views

What is the URL to set the admin theme?

The URL to change the admin theme isn't the same in Drupal 7 compared to 6. What is the new URL?

15 30 50 per page