All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
461 views

Figure out the difference between loaded JS, CSS files, and files needed to be loaded for new content

I'm looking for a way to figure out what CSS and JavaScript files are loaded, and what else CSS and JavaScript files needed to be loaded for new content I'm injecting with AJAX. I've am module file, ...
1
vote
1answer
6k views

Simple REST request to create nodes

I'm having the following issue trying to create nodes from Drupal 7 to a Drupal 6 install. The target Drupal site is running Services 3.x. Here's my code: $base_url = $params['path']; $data = array(...
1
vote
1answer
5k views

How can I create a single login page?

I do not want to display a login block or link on every page. I would instead like to create a single login page accessible from http://example.com/login. How can I do that?
1
vote
1answer
181 views

Creating threaded nodes

I know with Drupal you can have threaded comments. I wish to create something similar using nodes. Where a node can be replied to with a node of the same type. I would then like to try and create a ...
7
votes
2answers
2k views

(Un-) formatting each form element

When we declare something like $form['textfield'] = array( '#type' => 'textfield', '#title' => 'textfield title', '#maxlength' => 8, '#required' => true, ); The output will be ...
1
vote
1answer
443 views

Form, populate select lists values after unsuccessfull validation

I would like to have select values in my select lists that user poster to script. However when validation is not valid, those fields aren't populated with posted data, so user have to make the choice ...
3
votes
1answer
613 views

Limit the creation of tags

I wish to create a taxonomy where the administrator users limit which terms can be tagged. Suppose I have a vocabulary containing the following terms: Football Golf Snooker I want the tag ...
3
votes
2answers
423 views

Is it possible to add custom stylesheets while using a core theme?

I'm trying to add a custom stylesheet although I'm using the Garland theme but so far I wasn't able to do it. I've tried the following: function mymodule_init(){ $path = drupal_get_path('module',...
9
votes
3answers
5k views

Does Drupal have an AJAX solution for search results, preferably with Apachesolr integration?

Specifically, I'm referring to being able to have the top 5 search results display as options in a drop down menu while the user types in a search query, somewhat similar to how node reference ...
6
votes
1answer
2k views

Token replacement pattern for triggered rules on node creation

I am currently using triggered rules to send notifications whenever a certain node type is created (by anonymous, unauthenticated users). In the email notification sent I would like to include some of ...
4
votes
2answers
2k views

Drupal 7 Twitter

I have a requirement where I need to tweet through many tweet accounts for which I have username and password. I have read many tutorials on oauth, but I am still confused about using this for ...
10
votes
2answers
18k views

Force Drupal to attach Drupal behavior to new ajaxed content [only Drupal.attachBehaviors() is not working the right way]

I was doing lot of posts on drupal.org about this topic, but unfortunately in the wrong context. Ajaxed content is not attaching needed JS and CSS (forum) Ajaxed content is not attaching needed JS ...
-1
votes
1answer
111 views

Which is the function that initializes the content of the “$scripts” variable used in html.tlp.php?

The template file html.tpl.php has access to the $scripts variable, which is not initialized in template_preprocess_html(). I have also looked at template_preprocess(), and template_process(), but ...
0
votes
2answers
3k views

Pathauto taxonomy term alias for content paths

I am trying to make my nodes URL aliases use taxonomy term aliases through Pathauto, but I cant seem to figure it out if there is an alternative. For example, I am trying to use questions/[term:url:...
2
votes
3answers
722 views

Small site, multiple layouts

So I've been fighting with this for a little bit, and I've been unable to get help from Google, so it's time to ask some experts! I'm setting up a small business website; we're aiming to create ...
15
votes
4answers
31k views

Add JavaScript at the bottom of a page

How can I add JavaScript scripts to bottom of a page, in my template?
1
vote
2answers
1k views

Organic groups and Workflow

How can I create a separated workflow for a content type like "Article" for each organic group? For example: "Math Group" has the roles "Author," "Head." "Article" nodes created by users with the "...
2
votes
3answers
4k views

Views, Taxonomy, Block and Context… What am I doing wrong?

What I want: When I navigate to a page... Of a certain Content Type... which is tagged with a Term... I want a Block created via Views should generate a list of pages with that Term. I've adjusted my ...
0
votes
2answers
259 views

Blanket CCK Field Permissions for Specific Content Type?

I am creating a rather large (100s fields) form using CCK. I would like access to edit the fields to be give to anyone who has access to create the content type rather than by role. For example, I ...
7
votes
5answers
3k views

Disable Taxonomy Generated Teaser List Pages

I have a site that uses the Taxonomy module to categorize content. The vocabularies and terms are used as arguments and filters in various Views. I do not want the Taxonomy module to generate its own ...
1
vote
1answer
503 views

Node Template Panel Node

I am using a node template to layout a node and I want to reference content from other nodes. Obviously I have the current node fields available to me, but I want to select any of the sites nodes. I ...
0
votes
2answers
968 views

Form API select list remove blank entry (default select an entry)

I populate an select list using the following code. $getCompanies = 'SELECT nid, title FROM node where type = "my_type"'; $companiesResult = db_query($getCompanies); $companyArray = ...
0
votes
2answers
1k views

CCK Node Reference options not showing “this post can't be referenced.”

I have a CCK field of node reference. As user 1 I can set the node ference field to a node. I will see something like Node Title[nid:123]. When I go in as another user I see [nid:123]. When I go to ...
3
votes
2answers
41k views

Syntax error: <!DOCTYPE html> (line 1) in Firebug

Firebug is complaining about a error in <!DOCTYPE html>, but the HTML source is passing without problems the HTML W3C validator. Do you have any idea? Sorry, I can't share the source code.
1
vote
2answers
607 views

How to get all term descriptions from a specific taxonomy vocabulary?

I have a block that displays an imagemap, and each map area represents a taxonomy term. All terms are in the same vocabulary. For each map area, I know the term name and want to pull the term ...
0
votes
1answer
277 views

Link to a large image

In D7 Commerce module, I've created a product_display content type. With this content type, it is possible to create nodes from product entities that come from my store. In these nodes, the images are ...
18
votes
7answers
22k views

How do I show content in an overlay?

I want to display some content, returned from an AJAX call in an overlay or popup. Do you have any idea on how I can do it?
4
votes
2answers
13k views

Cron jobs in Drupal 7

I have a PHP file that does some task in consistent intervals. I have placed that PHP file inside a custom module folder, but I found that Drupal functions like drupal_set_message() are not ...
1
vote
1answer
567 views

FileField Database

I like the idea of using a field within a database to hold a file. Is it possible to store files within a database instead of within folders with Drupal 7? My current setup is Drupal 7, Ubuntu ...
3
votes
1answer
4k views

Pathauto taxonomy terms in content paths

I'm using pathauto and want to set it up so that when a new page is created (which has the taxonomy field) it will add the taxonomy terms into the url. For example, if I have the following vocabulary: ...
6
votes
3answers
801 views

Can I use drush to compare the running modules on two sites on the same server?

Is there a way to use drush to compare the list of running modules on two Drupal 6 sites? I have two sites running locally (with two code bases if that matters) with different modules, but a very ...
0
votes
1answer
872 views

Get content based on taxonomy

I can't figure out what I am doing wrong, as my block isn't showing up with the content from the taxonomy. I am trying to create a block that shows the content based on the taxonomy; I made a path on ...
1
vote
1answer
336 views

“Page Not Found” error when a google search form is submitted

I am using Google Site Search on a web site, and the search form submits to a page containing the appropriate code. I can access this page directly just fine, but whenever I test out the search form, ...
3
votes
2answers
137 views

Using third-party functions

I have a third-party PHP script that I want to integrate and use in my site. The script is quite small and comes with its own functions and array indexes. How would I be able to call the functions and ...
3
votes
4answers
3k views

What can cause Drupal to crash Apache?

In my local development environment, Drupal keeps crashing Apache when I try to load admin pages. The user pages all load fine, but any admin page causes apache to reset itself. In the apache error ...
1
vote
1answer
101 views

Storing variables in a theme outside preprocessing

I have some variables that I want to store in my theme, but I cannot always use theme_preprocess() to set and subsequently gain access to them. What is the best way to do this? I would like to not ...
0
votes
1answer
744 views

hook_init() causes login problems

I created a custom module which has the following hook_init() implementation. function gate_init() { $curr_uri = check_plain(request_uri()); if (strpos($curr_uri, 'admin') === FALSE) { if (...
3
votes
1answer
451 views

Does Apache Solr assign a weight to HTML tags?

Would Solr consider HTML tags when it creates its indexes? Would <h1>, for example, be more important than <h2>, <p>?
1
vote
1answer
1k views

Taxonomy menu expanded with count

I have an accordion menu (taxonomy menu) as a block.   I want to have a very similar block but this time I want to have all taxonomy items expanded. I am thinking to something like this: &...
1
vote
2answers
4k views

How do I create scrolling views?

I want to scroll my views, but I don't find a module that allows this. Is there a module for scrolling views? How can I scroll views, if there isn't a module with that purpose?
8
votes
3answers
9k views

Custom theme function not being called?

I'm building a Drupal 7 module to create a bespoke field type. I've implemented all the required hooks. My hook_field_formatter_view() function looks like this: function MYMODULE_field_formatter_view(...
0
votes
2answers
422 views

Author information lost after saving node

I am developing a site using Drupal 6. Sometimes, when I edit and save a node, the author information is lost and the node is unpublished. Some observations: When I edit the node again, even with ...
2
votes
1answer
869 views

Form submit problem

I have no idea why my form submit only work if I put on screen values of $form argument. If I add: echo '<pre>'; print_r($form); echo '</pre>' to my submit function I am getting new '...
1
vote
2answers
2k views

Theme a specific block id

I am looking for a simple and effective way to implement template for specific block IDs. From what I read in Author information lost after saving node and Drupal 6 Template Suggestions, I came up ...
0
votes
1answer
526 views

PayPal handling with Simple Payments?

I'm using Simple Payments to handle PayPal processing in a module I'm building (See previous question). The first part is fine -- it sends data to PayPal okay, but now that users can pay, I need to ...
1
vote
2answers
2k views

Access to preprocess variables in a custom block

I have created a custom block to display some contact information. I have a preprocess function that sets a contact variable like so: function atstump_preprocess(&$vars, $hook) { $vars['...
1
vote
1answer
22 views

access node field variables in theming view-field

How can I access a filed value of the node that I don't want to display in the view, is there any way to pass the field variable in $fields using view but not include it in display, I'm just want to ...
1
vote
1answer
315 views

User relationship one way relation block and unblock option

Im using user relationship module for twitter like one way relationship , But i find any option to block the user from following me and in future. Only remove option is there to remove and once ...
2
votes
2answers
323 views

Attach different CSS styles on a node basing on publishing date or other PHP properties

I want to attach a different CSS style to a node, basing on the node publishing date or some PHP properties. What would be the best way to do this?
0
votes
2answers
887 views

Module to upload a file for attachment to many nodes as a bulk operation

I have a large number of nodes created with a large subset for a specific term that I would like to add one file to all of these nodes at one time. For a single case, I have a CCK field for uploading ...

15 30 50 per page