All Questions

Filter by
Sorted by
Tagged with
0
votes
2answers
353 views

Good looking contributed themes for Drupal 6

I am looking for good looking contributed themes fro Drupal 6. Drupal.org is filled with themes, although several of them lack support even for the most used modules (taxonomy, search, comment) and ...
4
votes
1answer
605 views

Drupal 6.x vs 7.x for Multiple Domains and LDAP

We're looking at using Drupal for our public sites, which will have: multiple primary domains multiple sub-domains We will need to allow our users to authenticate against LDAP to get different ...
1
vote
1answer
2k views

How do I add an image to blogs?

May you give me few hints on how to enable adding 1 optional image to each blog entry? I've enabled Blog and Image modules and registered users can create and comment on them. What is the next step?
4
votes
1answer
2k views

Correct way of formatting dates for output in node theming

I am theming a node where I need to show the created date. Since Drupal stores it as timestamp, what is the best method to retrieve it? I have found this post: http://drupal.org/node/101993. But the ...
9
votes
2answers
17k views

Preprocess variables only for certain blocks

Is it possible preprocess variables only for certain blocks? I have created such function: mytheme_preprocess_block__aggregator(&$vars) but it doesn't works. -- EDIT -- It seems to be fixed in ...
0
votes
1answer
761 views

Node:Link token in views

I want to change the text shown for the Node:Link field, which by default is "View". How can I change it?
1
vote
1answer
694 views

Adding Facebook Like-button to the User menu in the top-right corner

Do you think there is a way to make a Facebook Like-button appear in the User menu of Drupal 7, right besides the My Profile and Logout links? UPDATE: I'd like to add the button for my site and the ...
3
votes
3answers
1k views

Filter by content type and shared taxonomy terms

I want to classify my content within the following categories: Technology International Politics Education Religion Sports They are shared among my content types (e.g. news, page). I want to create ...
7
votes
2answers
916 views

Creating N fields with N 'subfields'

I'd like to create a content type "Enterprise" where user can define N services and, for every service, N tasks. I have already created the other fields for this content-type (name, description, ..., ...
9
votes
7answers
10k views

How can I filter the taxonomy terms by language?

I have searched a way to filter the taxonomy terms by language (as done for nodes), but I didn't find any way to do it. Does the Views module support that filter in taxonomies too, or just in nodes? ...
1
vote
1answer
179 views

Why can't I output it?

stdClass Object( [nid] => 98 ....... [title] => hello world! [body] => ........ [field_img] => Array( [0] => Array( [fid] => 200 [list] => 1 [...
1
vote
1answer
4k views

Adding a span tag to main menu items

Possible Duplicate: How do I insert a <span> </span> tag inside the <a> </a> tag on my main menu I tried the code found in How do I insert a <span> </span> tag ...
3
votes
1answer
723 views

Block with search box in header

I need to create a block with a search box in header in order to allow users to search for a the specific content type that is shown in that block, but I don't know how to do this. I've attached one ...
2
votes
3answers
1k views

Options for “create and reference”

In a screencast based on Drupal 6, I spotted (~3:45) that several fields had an additional "create and reference" icon that would pop a secondary dialog, for in-place creation of non-existent nodes, ...
6
votes
2answers
5k views

Can you make the hook_menu() item title different from the page title?

I'm building a menu with hook_menu(). When you're building the array for this you specify a title, which is then passed to the page you call and becomes the page title. It's also the menu item's ...
11
votes
2answers
6k views

Converting Term names with special characters to Term ID's in Views

I have a view where I want to use multiple termID's as arguments. I want to use a term name from the url and convert it to a termID. I've managed to do this easily enough and it works with simple 1 ...
18
votes
3answers
4k views

What's the fastest method/implementation for an Ajax callback?

I have a map which loads markers via ajax on various/numerous map events. Currently, I define a custom page callback for my hook_menu() item which prints my json/js. Since my page callback does not ...
5
votes
4answers
17k views

What does “sanitized” mean (in api documentation)?

Hi I see the word "sanitized" quite often in Drupal API documentation. For example, this page: theme_username($variables) $variables An associative array containing: account: The user ...
3
votes
3answers
2k views

Display referenced node field in view

I have a view made up of nodes that include node reference fields. I would like to pull in a field from each of the nodes being referenced for display in my view. I know that is a little confusing ...
20
votes
10answers
23k views

How do I add a hash link in menus?

Is there a way to add a hashed link in the menu under drupal menu to just make a menu item that jumps down to an anchor or id on the page?
1
vote
1answer
1k views

Wildcards in dynamically generated menu

I'm working on a custom module, and I'm building menu items using entries in a database. These are being cached, and the database is only really updated about once a month. I'm having an issue ...
2
votes
1answer
452 views

Get the username of a user who is being added to an organic group

We're using organic groups, and we'd like to notify an administrator every time someone joins a group. At the moment, we've set up a trigger for this, and set up an action to send an email. We're ...
5
votes
1answer
2k views

Term reference with filter

I wonder if it is possible to add a term reference field with just a subset of the available taxonomy terms. Let me explain. I have a taxonomy vocabulary with a structure like this: - term 1 - term ...
2
votes
2answers
1k views

how to overwrite the views output?

I used Views with 6 fields. I want to overwrite the output for 4 fields, and add "more >>" under one fields output, and make the "more" link to the node. I know that creating 4 template files will get ...
14
votes
4answers
1k views

Does having more enabled modules make the site slower?

Does having more enabled modules make the site slower? I have installed 30 modules for my site, and I am afraid that it will become too slowly.
3
votes
2answers
795 views

Picture field in user table

I can see the picture field in the user table, and it seems the field accepts a picture address. I want to allow users to upload their picture to the site. Is there any module or code to use this ...
2
votes
1answer
1k views

Problems with Media gallery

I am using the media-gallery module to create dynamic galleries for a site. I have a problem when I edit a node; I get the following error: Notice: Undefined index: media_gallery_format in ...
2
votes
1answer
135 views

How to use Views to obtain this?

I want to use the Views module to obtain the number of comments associated to a node, and show it as "1 comment," "5 comments." How do I do this?
3
votes
4answers
4k views

Generating node title from node fields

So, this is a newbie question. I'm using Automatic Nodetitles with a custom content type. I'd like the node's title to be equivalent to one of my fields. After some snooping around I came up with this:...
3
votes
2answers
2k views

Autocomplete textfield

I've noticed that the autocomplete textfield widget has not been ported to Drupal 7. I'm looking for a way to provide user with suggestion for already submitted values, but I don't want to create a ...
11
votes
3answers
5k views

Is there a way to consume external web services and show results in Views?

I have an external web service, which can be accessed using a HTTP call (with parameters passed as query string), and that returns the result in XML format. I would like to use Drupal to access that ...
4
votes
1answer
968 views

How to convert image URLs in Drupal node's fields while rendering?

I have developed a new CCK module using Plupload where users can drag and upload images using native HTML5 apis. Since, I do not know how to drag images directly inside CKEditor, what I am doing is ...
2
votes
2answers
2k views

node_delete() is not deleting nodes

I'm trying to use a drush function to flush out all of the drealty module's nodes in my drupal 6 install. However, something is causing a memory leak and the nodes are not being deleted after ...
3
votes
1answer
976 views

Manage events among users

I'm creating a community site where users should be able to create events and participate in other users events. I guess there are some options, but which modules do you think would work as candidates ...
4
votes
1answer
3k views

Drupal queue / update module

I have a Drupal 7 site and the queue table has over 4K records. They are primarily for the "update_fetch_tasks" queue. Is the queue table by nature a temporary place holder? I would like to clean it ...
2
votes
1answer
773 views

How to programmatically edit a field?

I have a type node called flat, a field called latitude. I want to update the value of this field in a module each time the node is updated. I try to use the hook_node_update() but nothing happens : ...
1
vote
2answers
2k views

Which are the steps to make Locale language switcher block appear at selected area?

After this question on which module to use to handle interface translation I was expecting the setup of Locale to be pretty straightforward. I guess it is not. Well, my backend and navigation menus ...
1
vote
2answers
1k views

Remove nodes individually from Solr Search index

I know you can choose which content types to exclude. However, is there a way of removing specific nodes from the Solr index?
7
votes
2answers
19k views

How do I update a module manually?

I need to update my Views module in Drupal 7. Drupal won't do it automatically. It says the download is not available. I have downloaded the new version manually, but when I try to install it via '...
3
votes
2answers
613 views

How can you allow an unregistered user to change languages?

I have no clue to which is the Drupal way of allowing any user (registered or not) to change the website language. The way I need it to work is to allow any user to click on their preferred language ...
1
vote
1answer
294 views

Hook for module activation and deactivation

I am trying to execute a function in my module when the module is activated or deactivated by the user. It seems that there is a hook for this in Drupal 7, but not in Drupal 6. It is possible to do ...
3
votes
3answers
3k views

How to add some JavaScript functions before Ajax begins

How do I add some JavaScript functions before Ajax begins, with FAPI? $form['submit'] = array( '#type' => 'submit', '#value' => 'Upload', '#ajax' => array( 'callback' => '...
22
votes
7answers
16k views

How to programmatically set the front page?

I want to set the Drupal front page programmatically at run time. How can I do this? Is this possible?
2
votes
5answers
289 views

Database Size, suggestions on Dev > Staging > Production

Our Drupal 6 Database is currently 75mb and the site has not even been launched yet. This is making it a bit difficult to export/import between our Dev/Staging/Prod as it is taking some time. I am ...
3
votes
4answers
3k views

How do I use a different template for the anonymous users?

If the user is the anonymous user or an authenticated user, I want to use the page1.tpl.php; with other roles, I want to use page.tpl.php. How do I write the code?
5
votes
3answers
3k views

Using a different administration theme according to the role

Is there a way to use different administration themes according to the roles assigned to users? I have two roles (admin, editor), and I want that, when creating content, users with the admin role use ...
1
vote
3answers
3k views

How to add radio button in drupal profile page

I want to get more info from my users when they register. With the standard profile.module I have the following options: single-line textfield multi-line textfield checkbox list selection freeform ...
1
vote
1answer
957 views

How to add OG to the menu?

I have Organic Groups installed within Drupal 7 and I am attempting to get the groups to display in the menu. For all authenticated users I want the group(s) they belong to show up in the menu (could ...
0
votes
2answers
2k views

How do I set up the Workflow module?

My site has an administrator role (editor), and I want to allow the anonymous users to submit articles in my site; the node they create must be approved by editor users, before to be published. I have ...
1
vote
0answers
190 views

How can I get this type of menu?

I want to get a menu similar to the one shown on net.cn; under the logo there is a navigation bar with 6 menu items; when you hover the mouse over one of the menu items, the bar under it shows the ...

15 30 50 per page