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
11 views

Adding JS to a form within Omega 4 theme

I need to add some JavaScript to forms within my Omega 4 theme. My code right now is: function mytheme_preprocess_form(&$vars) { $vars['element']['#attached']['js'][] = 'path/to/myjs'; } ...
0
votes
1answer
19 views

Query on custom drupal 7 field

I'm facing problem in Drupal query for order by custom field Here is my query $result = db_query('SELECT n.nid FROM {node} n WHERE n.type = :ntype', array(':ntype' => 'portfolio')); this work ...
0
votes
1answer
8 views

What is the syntax for using a token on webform confirmation page

I have an Email field on my webform with the key email_address. On successful webform submission, I would like to display the confirmation message as. Further instructions have been sent to ...
0
votes
1answer
13 views

Create a rule to send confirmation email message after anonymous/authenticated user has created content

I have created a custom content type (CCK) called apply (machine name) and installed the Rules module. How would I go about sending the user an email (they could be anonymous or authenticated) after ...
0
votes
2answers
14 views

Email validation on Drupal 7 default form Api without installing any modules

I am using Drupal Form API to create forms. What is the way to add email address validation without having to install any separate modules? Thus I am just looking for out of the box functionality. ...
1
vote
0answers
10 views

Save entity object only if modified

When calling save on an entity, the timestamp value for last modified is always updated, regardless of whether the entity was actually modified. Is there a way to check if an entity object has ...
1
vote
1answer
20 views

Do I need a custom content type, entity, module or field?

I'm working on a product information manager, and I have a content type of product which needs to reference stock and price levels for each supplier from a different database - these are stored as ...
0
votes
1answer
3 views

How to override Page Title of View using Contextual Filter

I have a view that uses a contextual filter for part of the URL. For example: www.example.com/categories/%/all I have successfully replaced the % with the name of the taxonomy term from a specific ...
1
vote
0answers
16 views

Drupal stuck on maintenance mode only for ONE page

On a live, multilingual (fr/en) client site, I've just update Drupal 7 to its latest version (along with a few modules). Everything went fine, except that, even though the maintenance mode has been ...
0
votes
2answers
13 views

Connecting views to another Drupal database

I have a need to display views using an old Drupal database. These views are already created, so I exported them and dropped the export code into a custom module hook_views_default_view, put in the ...
0
votes
1answer
11 views

Load Preceding Nodes in a View Block Sorted by Date in Relation to the Current Node

Currently I have a basic View block just showing a bunch of articles in a teaser format. I added this view block to show up below the content of each article page. What I want is to be able to show ...
0
votes
0answers
13 views

Multiple radio buttons in different field sets

Been banging my head against this problem all day... I have a list of fieldsets, with a radio button in each that allows you to select one as a "default", the radio buttons work correctly in that only ...
0
votes
0answers
8 views

Comment with email or social networks

i am developing my personal site in drupal 7. Actually i am searching for a module which allows anonymous users commenting with their email or any social n/w like twitter,facebook or google+. Is there ...
0
votes
1answer
4 views

Expose some administrative functions on the front-end

I'm developing a web-app for managing non-profit organizations by extending the functionality of the Drupal CMS. What I want is to have only one administrator account (call it super-admin if you ...
0
votes
0answers
14 views

Batch job not running callback

I am trying to run a batch job of importing items from a csv file. When I click submit on my form and my batch process starts, I do get a batch process bar which says its progressing, but it never ...
0
votes
0answers
5 views

Filter Taxonomy Results by another taxonomy

I am creating a website for an optical shop. They have following vocabularies & terms Vocabulary 1 Sunglasses --Adidas Originals --Alain Mikli --Alexander McQueen --Animal --Austin Reed ...
0
votes
0answers
26 views

How do I get the current Windows username and password? [on hold]

I'm creating a module that allows users that are logged in on a computer running Windows to be automatically logged-in on the Drupal 7 site running the module. I know how to get the username, but I am ...
-1
votes
1answer
18 views

How to instal Drupal 7 in Oracle DB and share table with different schema

I need to instal drupal 7.34 in an shared Oracle Database. The actual requirement is to use the existing oracle tables like user, content which has different DB schema other than MySQL. Is it possible ...
0
votes
1answer
10 views

How do you use tabledrag API in a multi-page environment?

As you can see in the image below, I'm using drupal_add_tabledrag to allow admin to sort node order by dragging. But how do I drag the items from one page to another? Is there additional Drupal API, ...
0
votes
0answers
14 views

Correct way to extended Field Settings

I'm doing something that works fine but I get the feeling there is a better way. I have managed to extend the field settings in the field's manage page to add two new checkboxes. The checkboxes in ...
1
vote
0answers
17 views

Issues with Solr Configuration

I am trying to set up a local copy of Solr on my development workstation using these (admittingly dated) instructions here [1] and while it sets up a fully functioning Solr 4.10.2 instance that can be ...
0
votes
0answers
6 views

Looking for something similar to “Views selective filters”, just with “inactive” instead of “removed”

You know the Views Selective Filter module? It reduces the filter items in a views exposed filter to only those having actually results. I'm searching something similar, but i don't want to hide the ...
0
votes
0answers
8 views

Termcase module doesn't convert the existing terms (ucwords)

I'm using the Termcase module to make all the taxonomy terms ucwords in a specific vocabulary. It also has the option: Convert the existing terms in this vocabulary immediately It works for ...
0
votes
0answers
7 views

Create a node reference using a reference view with a filter

I have three content types: Region Package Package Combination This is how these content types relate (or should relate). Package has a type field, with two possible options. Package has a node ...
0
votes
0answers
9 views

Entity Reference - adding fields to reference?

I'm using taxonomy and nodes to create a tree structure. Inside the taxonomy term I created an Entity Reference (referencing to nodes). I know this looks like the world upside-down, but for this time ...
1
vote
1answer
32 views

How to set up a 'review-like' view that connects users to nodes?

I want to be able to add to my panel, described here, a view of an 'advocate' that 'endorses' an item. Each item (unique by NID) has one Advocate (a user, unique by UID) and each User can have ...
0
votes
2answers
11 views

Conflict between Omega and Views 3 exposed sort (Ajaxified)

I have made a subtheme out of the Omega 4 with the responsive structure. I tried to use exposed sort for views inside the layouts of the subtheme. The exposed sorts are not working under the ...
0
votes
1answer
19 views

Sharing only one content type between 2 websites

I have 2 website set on the same drupal 7.32 instance. There are completely different, with different databases. But I need to show some content from website1 in website2. I just need to get a list of ...
0
votes
0answers
24 views

Drupal architecture best practices

I have several custom entities, about 8. Each contains information about a given subset of data. Currently, this is being created by filling 8 different tables with data from an API and exposing it ...
0
votes
0answers
17 views

ignore exposed filter on taxonomy combination

I have a view which show a list of downloads(saved as node). And I have a exposed filter for the title, category (tax), language (tax). Because not all files are available in native language, I would ...
0
votes
1answer
9 views

Print custom text on search no result with search-results.tpl.php

I want to print custom text if there is no result on search. I'm using custom search-result.tpl.php and search-results.tpl.php. My search-results.tpl.php is that: <?php if ...
0
votes
0answers
11 views

How can I add an identifier on a menu link

I have to import thousands of nodes and create their menu links. I need to add some of these menus links as children of existing menu links. I need to be able to identify these existing menu links ...
0
votes
0answers
15 views

How to select same entity several times in reference fields?

I am trying to create a field where I can select the same entity several times. The regular autocomplete/select fields do not work, as well as none of the core fields I'm afraid; I think this is ...
0
votes
1answer
26 views

Is there a way to group different taxonomy/content type in a single Select List (in a View)?

I have different content types, each content type has its own taxonomy terms - see screenshot. International News |--- Diplomacy |--- War -National News |--- Economy |--- Politics -Entertainment ...
1
vote
2answers
26 views
+150

How to fix active-class problem in minicalendar with calendar / exposed filters

I have a calendar view for events. The events are categorized by taxonomy terms. I use the minicalendar for the selection of days and filter the result list with an exposed list of the categories. ...
0
votes
1answer
9 views

Using Drupal 7 & Omega 3.x - Page Titles + Edit Tabs are not showing up on node content types!

It seems that my page titles and the edit tabs have disappeared. I'm currently using omega 3.x and drupal 7. However the weird thing is that its showing up one content type, but not on others. I even ...
0
votes
2answers
20 views

Site structure - nodes and blocks

I'm new to drupal and I try to understand the structure of it. Let's assume I want to do the following regardless of the existence of a module doing this concrete job – just to understand the ...
0
votes
2answers
36 views

How can I create a panel/page/view that shows a list of nodes, and on the other side of the screen details about that node?

Below is the generally layout of what I want to do. A list of nodes/items of a fixed content type with a custom view on the other side. On the left hand side we see a list of nodes, shown as ...
0
votes
0answers
23 views

How can i use the Drupal form API states to make my field value depend on another field value?

Basically what I'm trying to do is to change the #autocomplete_path for the author field in the node/add. The value of the #autocomplete_path will be dependent on the value of another field (a select ...
0
votes
2answers
26 views

Adding prefix/suffix HTML to View field

I have a view that renders its contents as three fields, and based on the layout markup I received from our Front-end developer, two of these fields need to be wrapped in a container div so they can ...
0
votes
0answers
27 views

Table sorting not working on ajaxfied form

I have a custom form having a table field, form also have a checkboxes field and table options are dynamically loaded as per the input values of checkboxes field. checkboxes field looks like ...
0
votes
0answers
6 views

Commerce Shipping - Picking service in the same page as shipping info

I'm using Commerce Shipping with the flat rate. I have a number of flat rates - 3 services for shipping to US and 2 services for international. I set up conditions for each service to appear when the ...
1
vote
1answer
20 views

How to show pages other than nodes with the default language prefix

Content on our site exists in several languages. The default language is 'en'. Prefixes are shown in URLs, such as http://example.com/en/my/path or http://example.com/nl/my/path. However, pages like ...
0
votes
0answers
21 views

How can I make page variables available to my region template

I have a region TPL file named: region-header.tpl.php <div id="nav"> <nav class="navbar navbar-default" role="navigation"> <div class="container"> ...
0
votes
0answers
11 views

Drush site-upgrade target database

When using the drush site-upgrade (drush sup) to do a D6 to D7 upgrade, does the target database need to be pre-filled with D6 tables? Or can it be completely empty? Thanks
0
votes
0answers
7 views

Show all mutli-axis votes by a user for a specific node in a view

I have two voting tags for fivestar, validity and difficulty. I have a content type of items having attached these two fivestar fields, field_validity and field_difficulty, both set to rated on view. ...
2
votes
1answer
30 views

Charts module settings per chart (with views integration)

(Drupal 7, Charts module, Views module) I'm creating charts with charts module + views. I want to set options for only some charts and found that in charts.api.php: /** * Alter an individual chart ...
0
votes
0answers
7 views

Error on checkout finish with example payment [on hold]

I've just installed drupal commerce and trying to make my first test order. I enable the necessary permissions to create an order, and enabled the example payment. But on the last screen, when sending ...
0
votes
1answer
17 views

Add a signature and date line to node print template?

I am trying to find the cleanest way to create a signature (your written signature, not forum signatures) and date line on printable pages. I would like to do it without actually changing template ...
0
votes
3answers
67 views

Every user is logged in as admin user

I have a weird problem with my new Drupal 7 site. This is also my first Drupal site. I have now two users: admin1 (has admin rights) & user1 at first, when I logged with admin1, everything was ...