This tag is for questions regarding Drupal 7 specifically. Version tags should be used only when strictly necessary, for questions that apply to Drupal 7 only, and not to merely say "I am using Drupal 7 in my site."

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

exposed grouped filter for date not working

I'm working with views and the exposed filters and get stuck with a problem. Here's the thing. A single filter on date is working. But when I switch to grouped filter, the input box for date is ...
0
votes
1answer
10 views

Change function view_unformatted to work with format HTML list

I have function in template.php which check if image fields exists (has content) and it adds classes if image exists (has_field) and if image does not exist (has_no_field). This function now works ...
0
votes
1answer
15 views

Problem with equal height of columns in Display Suite

I`ve got Fluid two column stacked layout in Display Suite. There is responsive picture in the first column, the second column contain some rendered fields. Below that columns is long text. My problem ...
0
votes
1answer
10 views

Pop-Up E-mail subscription ( module) or appearing form?

Is it possible with a certain module or anything of that nature to have a pop with a subscription email-collector inside? I'm on the final touch-ups of the site and have basically got this left and a ...
0
votes
1answer
7 views

Use user/register instead of default login page for anonymous users

This sounds simple enough but I can't make it work. Only registered users can view the site content, but instead of the login block, I want users to go to the user/register page (with the 'login' and ...
1
vote
1answer
12 views

Get a list of revision IDs for any given entity?

What's the most uniform method for getting a list of revision IDs for any given entity, programmatically?
0
votes
0answers
17 views

Split a date field output into two spans

I have a Date field on a content type. I'm trying to render it so that just the Month and Day are visible, but I need each in a separate . I think the most appropriate place to do this is in the ...
0
votes
1answer
19 views

custom block menu path returns json Ok, but a 404 status header

I created a custom path via hook_menu with a page callback to a function that prints json. It all works in the sense that requesting: http://cms.tripchi.com/tripchi/getme returns my JSON, but the ...
0
votes
2answers
38 views

Select users with only one role

How can i select all users wich have only 1 role. For example i got 4 users: User 1: Role 1, Role 2 User 2: Role 1 User 3: Role 1, Role 2 User 4: Role 1 How can i retrieve a list of users ...
0
votes
0answers
7 views

Commerce cart line item to show original price, not the one with discounts subtracted

Using Drupal Commerce Kickstart, when the user is at the shopping cart and activated any kind of discount (most of the times, a coupon) the line item price in the Cart table is updated with the ...
0
votes
0answers
8 views

How to prevent exposed filter from applying on page change (on a view page)

I have an exposed filter to do a proximity search. Whenever a field in the exposed filter is filled in (but not applied) and I switch to another page using the views pager, the exposed filter is ...
0
votes
1answer
12 views

Add autoupload property after page load using plupload

In a form I have added a field for images, set the file source to "Advanced upload widget (Plupload)" ( all other checkboxes are unchecked ) and I get the interface. I want to make it autoupload ...
0
votes
0answers
11 views

Disable validation for certain part of a form

I have a rather complicated form for events & actions editing. It always includes one 'subform' for an event and N 'subforms' for actions. The #parents hierarchy looks like this (it's more ...
0
votes
1answer
21 views

Metatags not showing despite calling render in template

My custom page.tpl.php is not outputting metatags. I've tried all of these: render($page['content']) print render($page['content']) render($page['content']['metatags']) print ...
0
votes
1answer
5 views

Conflicting realm variables when using i18_variable

I'm using i18_variable, and I'm using the hook_variable_info, hook_variable_group_info....I enabled the custom variables I defined after that from the admin/config/regional/i18n/variable page. But ...
0
votes
0answers
3 views

Jump menu - how to use transliteration in URL?

When I create Jump menu with Views, I can set that taxonomy term name will be in URL path (as argument). How can I set, that term names will be in URL without spaces and diacritics? IS it possible ...
0
votes
1answer
21 views

Limit Views Filter Operators for Users

Is there a way to limit the operators for views-filtering for users. I want them to only have "starts-with", "contains" and "same". But not the rest. Do I have to form_alter with a custom module? Or ...
0
votes
0answers
24 views

How do you set up Xdebug on IntelliJ for Drupal modules

I've been trying to set up Xdebug for my drupal site in IntelliJ (though I imagine it is the same in PHPStorm). I've tried the 'remote debug' and the 'PHP Web Application' options in the Run/Debug ...
0
votes
0answers
6 views

Autocomplete taxonomy widget that simulates Node Reference widget behavior

On my site, taxonomy terms are long and there are multiple per node, and the taxonomy itself is quite large. The autocomplete taxonomy widget allows to enter multiple terms into one input box, ...
0
votes
0answers
12 views

How can I make CCK field labels display differently on the node display page as opposed to the node add page?

I have a custom content type with form labels like this: "Would you like to upload photos?" That's appropriate for uploading data, but when displaying data to the world I'd just rather have: ...
0
votes
0answers
28 views

Load calendar event details in different block on same page

I'm using the calendar module to manage my event list and I would like to be able to click an event link in the calendar in the main part of the page and have the event info load in the same page's ...
0
votes
1answer
11 views

View filtered by a Date field's value being in “last month” shows July content on July 31

A View is filtered by a Date field's value. The Date field's month must be last month in order to match the filter. On every day except July 31 it would return results from last month. It should ...
0
votes
0answers
13 views

Trouble enabling view modes for content types

I have a custom view mode and need to enable it for a node type. I need to enable it through my module, and it seemed like hook_entity_info_alter() is the way to go, but it's not working. Am I ...
0
votes
1answer
26 views

Trying to send a <div> with webform

I have a Webform that does some calculations (javascript) based on user selections, which i would like to send along with the user-selectable fields to a user's email. Is it possible to append these ...
0
votes
0answers
6 views

Remove multiple ajax throbbers from views pager and keep the one of latest click only

While clicking on the pager links of the Ajax enabled views getting throbber for each of the clicks as below: How can we hide the previous Ajax throbbers and keep the only one that was clicked last? ...
1
vote
2answers
43 views

Form API ajax calls reload attached JS using behaviors

I have leaflet map attached to my form, this is the container div I used: $form['general']['map'] = array( '#markup' => '<div class="map-wrapper" id="ngmap"></div>', ); Everything ...
0
votes
0answers
8 views

Filling the Node of a content-type with fields of a referenced node

I have an Article Submission System on my website, so the user first has to submit his "Summary Article" (Content-type 1) then if approved by moderators, he can then submit his "Full Article" ...
0
votes
0answers
15 views

Change a heading?

A panel has an article title that is wrong and I'd like to make it right, but; I can't find where the wrong data is coming from. I'm having a little difficulty identifying the components of Drupal, ...
1
vote
1answer
15 views

Honeypot in custom webforms (manual)

I'm making a custom form (fields are added by using drupal_render), but since I have Honeypot enabled for all my web forms, when I submit a form, I get the following message: There was a problem ...
1
vote
1answer
12 views

overriding template file of display suite layout applies on other pages

I created a display suite layout "tow column stacked" in manage user section, then I want to override that template, and make a new one in my theme templates folder, the ds module suggest for me : ...
0
votes
0answers
12 views

Specify binary order in sql query

In custom module which selects field (collation: utf8_latvian_ci) from database ordered ouput gives wrong alphabetical order: "Aaaa, Āaaa, Abb, Acc" instead of "Aaaa, Abb, Acc, Āaaa". This can be ...
-1
votes
0answers
8 views

Attribute price views drupal commerce

I have created a view to show add to cart form ( with attribute select boxes) and product price and it is working fine but when i change attribute in select box, price is not updating. Is there any ...
0
votes
0answers
6 views

How to set limit for excel parser Drupal 7

I am importing users from Excel sheet with Feed importers. In my local wamp server I can import more than 170 users. But when I am trying on my server, it is not working. It's showing "An AJAX HTTP ...
0
votes
0answers
9 views

How can I create a multi-column checkbox area for a specific page

I have a taxonomy term field in four of my content types that I am calling "methodological areas". It currently has quite a few items, 92 to be exact, which is a lot of items to display as checkboxes ...
0
votes
0answers
22 views

Creating a Module Level Main Menu Replacement

I am looking to create a module (not theme) that replaces/augments the main menu in Drupal 7. I've got a CSS driven menu (MegaMenu style). It's generic and I want to reuse it across ...
0
votes
0answers
19 views

Bean bundle type

I want to use hook_field_enable() to enable required fields when I enable my bean. In order to do so I need to know the bundle type in order to create the instance $instance = array( ...
1
vote
1answer
25 views

Write form value to database

I need to save this to database, but could not find a way to make it work. Now this paypal_email is only saved to current user. Apparently it is saved somehow to the database under user table, but it ...
1
vote
0answers
25 views

Field Collection module Ajax error

I'm utilizing the Field Collection module to allow me to associate objects of one content type (say, Authors) with another content type (say, Books). When viewing the Edit page for one of my specific ...
0
votes
0answers
27 views

Upload image temporary and on form submit make it permanent

I have made a custom module where I load the create node form for an "announcement" content type. What i want Besides the text and select fields, I require an image field which supports multiple ...
0
votes
1answer
25 views

Shared database during development?

Sometimes I need to collaborate with a more frontend-centric developer to help implement a site. So typically they're only changing CSS and minor template changes. The way we've handled this in the ...
0
votes
0answers
13 views

Taxonomy Path overrides Views Page Path

I have got a View-Page, showing content related to a taxonomy terms. I am using context filter to pass the taxonomy term to the view: Path:/product/% I also added an alias to the taxonomy vocabulary ...
0
votes
0answers
16 views

Add class to view block if view has count result using template.php

I need to add class to view block if view has certain count result. For example if count result is 4 or less. I have working code for view format HTML list, but I need to use Unformatted list. ...
0
votes
0answers
26 views

How to add class to view block programmatically

I need to add class to view block programmatically, but could not find working way to do it. My view format is Unformatted list. I have this in my template.php: function ...
0
votes
1answer
20 views

Layout detail node + ckeditor layout

When I create a node of content type Proposal like this: I can add images, paragraphs, ... . But it looks like this on the detail page of the node: No image, no paragraphs, ... . What could be ...
0
votes
3answers
36 views

Image style scale and crop not formatting right

I had a scale and crop image style created, but I had to move it to code. So, to re-create it, my code is: function mymodule_image_default_styles() { $styles = array(); ...
0
votes
2answers
24 views

Editing the 'default front page' base URL

I rebuilt a new server from another server's image. And I want to use it for a new domain, but I'm finding that the new server continues to redirect to the original server's domain. Going to the new ...
0
votes
2answers
31 views

Backlinks from UUID hrefs

The goal is to hack core so that the search module will populate the search_node_links table from uuid-link hrefs in node content. Planned approach is to modify the parsing functions of search_index ...
0
votes
1answer
19 views

Add multiple co-authors while creating node

I have a content type proposal. Now I would like to have multiple co-authors of the node. I want to give the author the opportunity to add users like this: The users have to be entity references. I ...
0
votes
0answers
7 views

csrfToken: reget without logout user

I have a site where I use AngularJS to connect to Services module paths. Now, we know that I need to send (for every put connection) the CSRF token into headers request, and this token is linked to ...
0
votes
0answers
17 views

Drupal Views Table with Alternating Amount of Columns

I'm trying to make a view with alternating amount of columns. The first row should have only 1 column, while the second row needs 2 colums, third 1 column and fourth again 2 coulumns. The fields ...