All Questions

Filter by
Sorted by
Tagged with
7
votes
5answers
12k views

how to overwrite the search box?

<div class="fr_search"> <form action="/" accept-charset="UTF-8" method="post" id="search-theme-form"> <input name="search_theme_form" id="edit-search-theme-form-1" size="...
1
vote
2answers
1k views

Batch API and curl or file_get_contents() issue in Drupal 7?

Has anyone ever experienced issues with curl or file_get_contents() when using the batch API? I'm trying to import nodes from a remote data source via batch API; I used file_get_contents() during one ...
3
votes
1answer
2k views

Cached “Page not found” for anonymous users

My site's drupal version is 6.19. There are always logs like the following. the recent log entries shows type: page not found location:http://www.example.com/display.html referrer: message: 500....
6
votes
3answers
5k views

How do I add a Product to the Cart programmatically in Ubercart?

I'm creating a section of my site where users must purchase individual nodes of a certain content type. In an effort to enhance usability, I allow the user to create the node without paying, but then ...
2
votes
1answer
133 views

The new version of my module depends on more modules than the old version … how to ensure module users install them?

I am updating an existing module I have developed. The new version requires a "helper" module that the old version did not (fwiw, specifically "Nodereference Count"). How do I ensure that when people ...
2
votes
1answer
275 views

cck Nodereference for files

I am trying to create a node that has a single file attachment (using CCK filefield), and be able to reference that file by other nodes (possibly more than one node). The application is such that ...
6
votes
3answers
3k views

How to display the same views exposed form block twice?

I'm trying to display the same views exposed from block twice. Once in the left nav and once in content top. With multi block I can clone the block and I am able to display both. However, I would like ...
9
votes
2answers
4k views

How to do a date countdown (to a future date)?

How would one go about doing a date countdown (something like this: https://www.mupromo.com/?kbid=4722). I know I'd need to create a block...and I have boilerplate code for that, but I was wondering ...
3
votes
2answers
2k views

How can I make the Book Navigation also show the Summary of the Child Page?

Currently the Book module will create a navigation of links to each of it's children pages. I need that navigation to also include a teaser or summary from the child page. This is for Drupal 7.
17
votes
2answers
4k views

What all contributes to drupal page execution time?

I have a site I am investigating that has major performance issues, using memcache I was able to bring number of queries down both in number and total exectution time ( from 3 secs to 230 ms) but the ...
2
votes
2answers
338 views

What are the legal considerations to build a service like Drupal Gardens and earn profit from it?

I ask for your help to clarify a doubt I had on the usage and licensing of the Drupal platform to build a commercial project like Drupal Gardens. Today, I have read both licensing and usage rules ...
2
votes
1answer
959 views

How to call a Rules action settings form via drupal_get_form

So, I'm trying to embed the form I find at '/admin/config/workflow/rules/reaction/manage/commerce_payment_paypal_wps/edit/3' - which contains the settings for the PayPal business, etc (from ...
3
votes
2answers
2k views

How can I obtain the “latest” vid when on Revisioning's “View latest” tab?

I am using the Revisioning module to handle content revisions and I am creating a custom block that needs the vid of the node that the user is viewing to generate the appropriate content. I was trying ...
13
votes
3answers
14k views

How do I add client-side form validation to a Drupal form?

How do I add client-side form validation to a Drupal form? For example, in the comment module. If the vistor don't enter the email address, I want to popup a window that says: "please enter the ...
1
vote
1answer
148 views

what can be removed when minimizing hook_views_default_views in a module?

I'm working on a new drupal 6.x module (currently in sandbox awaiting review - http://drupal.org/sandbox/sdague/1072704) which exports it's data via views. When I implemented hook_views_default_views(...
14
votes
3answers
7k views

NoSQL vs Other SQL Drupal Setups

What are the advantages of running NoSQL (ex MongoDB) over MySQL, PostGRE SQL or MSSQL in Drupal? Are the advantages gained from simply using the storage or does some Drupal configuration need to ...
1
vote
3answers
1k views

Variables used in template.php

How should I know which variables and objects can be used directly in the template.php file?This is what a template.php file created by somebody else contains: function garland_separate_terms($...
3
votes
1answer
433 views

og_members block & og_nodes block won't display content

OG Version: 7.x-1.x-dev My problem is that I can't get the og_members block & og_nodes block to show up under a group page. Breakdown of my process: A fresh install of D7, necessary modules ...
4
votes
1answer
987 views

Avoid redirect to comment page if comment is invalid

I have configured comments to display in the node page, but if submit an invalid comment (e.g. without text in the comment field) I get redirected to the /comment/reply/ page. I would like to remain ...
3
votes
3answers
2k views

How do I edit a complex entity via dynamically loaded AJAX-forms?

I have a "profile" entity with a field "education" (to get started). That field contains various input fields that describe the "education". At the moment I have "institution" and "year". I created ...
2
votes
2answers
1k views

Drupal filters are not cacheable

I have a Drupal 7 site with many custom filters. Everything works correctly, but not quick. It looks as though the filter cache system does not work properly because the cache_filter table is always ...
2
votes
1answer
529 views

How to adjust the display order

The HTML structure is the following one: <div id="contentp"> <p>.........</p> <p>.........</p> <div id="rate-node-18-1-1" class="rate-widget rate-...
3
votes
3answers
897 views

Is there a module or easy way to break up nodes into multiple pages?

Is there a module or easy way to break up nodes (ie blog posts) into multiple pages?
1
vote
2answers
2k views

Fields in page.tpl.php

I want to display in my page.tpl.php 3 custom fields form the latest content type added to my website. I have a custom content type called "Articles" with three custom fields, field_1, field_2, ...
3
votes
2answers
2k views

How to make a MENU_LOCAL_TASK on a user's profile only appear on their profile?

I use logic like this to place a tab on each user's profile page so users can view analytics from the usage of a WebApp: // maps a url to a sub-page of user's profile, url to user's Analytics-...
1
vote
1answer
243 views

Adding a CDN feature for a new installation: now or later?

If you are setting up a Drupal 6 website from scratch, is it important to install a CDN module (or similar service) immediately? Or will adding such a feature be easy to do later on--even with ...
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
598 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
667 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 "...

15 30 50 per page