Questions tagged [7]

Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
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 ...
13
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
806 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 ...
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?
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
4k 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?
4
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
960 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
191 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 ...
0
votes
1answer
96 views

How do I overwrite the page?

I used the CCK module to create a content type that has three fields (title, description, and body). I want to overwrite two pages: one is where there is a "create content" navigation located on the ...
2
votes
1answer
442 views

Questions about theming a node

I am theming a specific node type in Drupal 7. I have named my file node--mynodetypename.tpl.php. Everything is fine and I can override the default node template; the issue is that I want to do very ...
5
votes
1answer
909 views

How can I protect the account of the first user, and not allow administration users to alter it?

I want to not allow users with the permission to administer users to alter the account for the first registered user (the one created during the installation of Drupal). I also want to not allow them ...
4
votes
2answers
489 views

Uncooperative Access Control settings for View in a Panel

I have a "Project" custom content type, and a View displaying existing Projects. The site has two types of users, with most users permissions set to only view Projects they created. The other user ...
2
votes
3answers
1k views

Download a File Outside of Web Directory

I have a scenario where certain files are stored outside of the Document Root directory, like this... /home/user/public_html/{drupal files are in here} /home/user/data/{special data files are in here}...
7
votes
2answers
1k views

Drupal 7 and Open ID

How does this Open ID module work in Drupal 7? I would expect something more or less the way StackOverflow and all these StackExchange websites work: you pick up your logging provider, like Google or ...
1
vote
2answers
718 views

How do I control user generated contents published state?

I want to allow users to submit the content to my site, but the content must be first approved, and then it can be published. Someone told me to write a module, but I don't know which steps to follow....
4
votes
4answers
3k views

How to design a page created using Views

I have created a page with help of the Views module, and it is perfectly doing the job. I need to design the page on my own. How can I do this?
2
votes
1answer
798 views

Overlay arguments

I'm using Organic Groups and I'm giving users a link to create content for the current group. I do this by giving the path node/add/grouptype?gids_node[]=1891. This works fine, as the group is set by ...
6
votes
4answers
3k views

In Node References, how to show a custom field, instead of the Title?

Is it possible to show in a select list, another field instead of the Title when referencing a node?
1
vote
2answers
226 views

Title used for pages

I have installed Drupal 6.19 and 6.20; in Drupal 6.19, I can see the page title like "site title|page title", but in Drupal 6.20 the page title "site title". How can I add the node title to the page ...
2
votes
2answers
371 views

How to include the Title field of a content type inside of a Group?

When creating a new content, is it possible to have the field Title inside a Group defined by me?
1
vote
1answer
1k views

Sending mail to an adress specified in a node creation form with an CCK email field with Rules

I'm using a node creation form open to anonymous users to register volunteers for an event, and I want to redirect them to a thank you page, and send them an email when they register. I'm using Rules ...
2
votes
2answers
3k views

How to display translated term names in exposed form in block

So I've got a views page displaying a list of nodes from specific content type. This view has filter form exposed in a block. Some of the filters in the form are vocabularies. I'm using the BEF ...
3
votes
2answers
718 views

Seperate admin page for each role

I have on my website several roles and each of these roles have different levels of responsibility. How can I create a separate administration page for each role or access level?
2
votes
1answer
106 views

I need to unset terms from the drop down

I'm writing a module to unset taxonomy terms using D6 hook_form_alter(). The object is to only present the current user terms which they have created themselves. The trouble is that I don't know ...
0
votes
1answer
549 views

Displaying node translations

I have enabled several languages on my site and the following modules has been installed: Locale & Content translation. I have created a simple page in English and have added several translations ...
1
vote
1answer
1k views

Multiple primary keys

I have defined a new content type, statetype and a CCK field, state. I need to use the CCK field as primary key in this table because I have another table and I need use that field as foreign key. (...
1
vote
1answer
806 views

module for ajax username checker

Is there a D7 module to do an Ajax based test if a username is available, in the same way done on https://en.wordpress.com/signup/?
1
vote
1answer
789 views

What is the equivalent of drupal_set_content()?

I am searching for something equivalent of drupal_set_content() for Drupal 7, to assign a block to a region. Do you have any idea?
7
votes
3answers
3k views

Display taxonomy field in node display

I created a vocabulary where terms have an image as additional field. I want to show the image instead of the term name in the node page. How can I do this? In Drupal 6.x, I would load the term and ...
2
votes
1answer
938 views

What are the contextual links?

Drupal 7 defines the "use contextual links" permission. Which links are defined as contextual links?
0
votes
2answers
1k views

Show the view result only when users enter a value for the exposed fields

I want that a view shows its result only when users enter a value in the exposed form fields. Is there a way I can get this done? I am using AJAX, and the view is displayed as block. Most of the ...
1
vote
3answers
962 views

Register and pay online

I would like our website can register right. Such registration is: After the user fields to fill out the registration page to enter paid. If payment was successful record in the user database is ...
10
votes
3answers
5k views

How *.drupal.org single sign-on works

I believe there are many ways to achieve single sign-on within drupal. I would like to know the approach that *.drupal.org sites have been using. If I visit any drupalconf sites http://chicago2011....
27
votes
6answers
30k views

How to add module to admin/config page?

I'm working on a module in Drupal 7. I've added a hook_menu implementation: $items['admin/config/content/mymodule'] = [ 'title' => 'MyModule', 'description' => 'Configure ...

1
522 523
524
525 526
530