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

Views image field linked with nofollow attribute

I have a view that renders a list of articles. Each article has a title, a main image and a trimmed part of its body. I have both the title and the image are linked to the content i.e the article's ...
0
votes
1answer
9 views

Using Entity Metadata Wrapper to set/get value from custom field added via Field API to custom entity type

My question is related to: Using entity metadata wrapper with custom entity type I know that I should inform EMW how to work with entity properties via hook_entity_property_info_alter but what about ...
-1
votes
0answers
13 views

How do I use Facebook access tokens in body (custom script)

I am new to Drupal 7. I am using Drupal for Facebook and it can generate Access Tokens by using AppID and Secret. But is there way to use Facebook module's functions in the body of Article or Basic ...
0
votes
2answers
12 views

How to change a node field when the output of a View changes?

I have a View Top 3 that displays the 3 nodes with the highest average voting scores (I use Fivestar via comments on the nodes for voting). Every node has a field Highest ranking, that - as the name ...
1
vote
1answer
15 views

View to show changes in node titles

In Drupal 7, I have a content type with revisioning turned on. Is it possible to create a view that shows only nodes that have had the title changed? Newest Title | Previous Title | Updated Date
0
votes
0answers
7 views

Notice: Trying to get property of non-object in Og_Notifications_Field->object_value()

When I add a comment to a content in a groupo I do get following message: Notice: Trying to get property of non-object in Og_Notifications_Field->object_value() (line 126 of ...
0
votes
0answers
27 views

Using entity metadata wrapper with custom entity type

I've created custom entity. In addition I want to add user reference field to my entity: if (! field_info_field(MY_FIELD_NAME)) { // Create the field. $field = array( 'field_name' => ...
0
votes
1answer
20 views

How to iterate extra fields in a webform component

When I select the extra field of a webform component: $webform_components = db_select('webform_component', 'c') ->fields('c', array('type', 'form_key', 'extra')) ...
0
votes
0answers
18 views

Using twig extensions in Drupal 7

I would like to be able to use some custom PHP code that generates an SVG image in my .tpl.twig file. Since I can't write PHP in a twig template I figured I should try and make a twig extension ...
0
votes
0answers
18 views

Field Widget - Add element in widget_form conditionally

I am trying to add a field conditionally to a widget form same as the image module does for ALT & TITLE fields. Use Case As per the requirement in the node add/edit page there should be a select ...
0
votes
1answer
18 views

Superfish module fix with responsive menu module

My theme is responsive barkit. My main menu do not have drop down menu feature.So I install superfish module,Great now I able to set drop down menu. Now come to mobile. I want to create same as the ...
2
votes
1answer
100 views

Why does $page['content']['#attached']['js'] works , while $page['#attached']['js'] does not?

Trying to attach js by means of #attached by means of hook_page_alter (see http://drupal.stackexchange.com/questions/171918/how-to-add-javascript-with-attached-and-hook-page-alter), I found that the ...
0
votes
0answers
19 views

Drupal include php files path? [on hold]

I have a drupal page which loads php files with include, and javascript that calls php files with "post" however I get these errors: I placed my php files into the /sites/default/files/scripts/ dir, ...
0
votes
1answer
18 views

How to use the D3.JS library for data visualization in D7?

What are my options these days for using D3.js in Drupal 7 for creating data visualizations? D3.js appears to be a charting engine (a JavaScript library) with an ever growing popularity. So I wonder ...
0
votes
0answers
10 views

Children of children not appearing in book navigation menu

I'm using the book module to display children of a book in a side menu. It displays the title of the book and it's children just fine. However the children of the children don't appear even after ...
0
votes
0answers
6 views

Is it possible to get the last number of a views pager to display after and before the elipses?

I'm trying to create a custom pager similar to the Amazon pager: < 1 2 3 4 ... 82 > and after a certain point: < 1 ... 7 8 9 10 ... 82 > But, I cant figure out how to display the ...
0
votes
0answers
6 views

Put item back into list Drupal Queue

I have an Queue with some items, every item will send an email. So, when a email fail, i want to put this item back on queue. How can i do that? I tried to search on Google, and second this: ...
0
votes
0answers
2 views

Panels hides Node: Comment-Count when there is no comment

I'm using Panels module to build my website, and because of some inconsistencies I'm not using Panelizer to build the node pages. I use Node:Comment Count to display number of comments of the current ...
-1
votes
0answers
15 views

How to create a Drupal calendar with 2 digits (day date format) instead of 1. 01,02 instead of 1,2

does anybody have experience with adding a 0 before the numbers 1 to 9. After this my calendar numbers should all have 2 digits. (01,02,03,04,05,06,07,08,09,10,11) I have added a new php date format ...
0
votes
1answer
26 views

Put a custom form inside node form with own submit button

I have a small custom form which has its own submit button. $form['activity']['submit'] = array( '#type' => 'button', '#value' => t('Execute'), '#name' => 'test_button', ...
0
votes
2answers
38 views

How to find which block is causing PHP errors?

I'm cleaning up a Drupal 7 site and currently its spitting out a bunch of PHP syntax errors pointing to some block that is causing it. It doesn't say which block but only says php_eval() error. So I'm ...
0
votes
0answers
17 views

How does trim_length setting of field_view_field text_trimmed option work?

I am trying to set trim_length for premium content on my site. On the staging server, I have two different pages - one has a video embed, the other does not: Video embed: ...
0
votes
0answers
6 views

Create custom template for regions / layout of variants (page_manager)

I use the page_manager to design a node_view for my content called "orga". There I can design the layout and add content. Is there any possibility to make a custom template for the regions I've ...
0
votes
0answers
15 views

How to debug number of db connections on Drupal 7 [on hold]

I've got a setup where my Drupal host is on Azure and by default Azure doesn't provide a MySQL server, so we had to use a 'plugin' to connect to third party database provider which in turns, limit the ...
0
votes
2answers
23 views

When to use views_get_view_result Drupal 7

I have basic listing in a View. I can give styles, or unformatted text, provide a link, etc. However, I would need the listing to be a list of linked items, with the destination URL changing depending ...
0
votes
0answers
20 views

How to fetch email of user who login through facebook

I am using Fboauth for facebook login. I have created new appid in developer.facebook.com. Facebook login works fine, problem is it fetches some numeric id as email address instead of original email ...
1
vote
2answers
16 views

How to get field Type from View

I have a view that takes fields and combines them or compares them and then gives me results in a new field (views conditional, global text etc..) but I need the TYPE of data that is returned. How can ...
0
votes
1answer
28 views

Problem with overlay in custom webform extension (D7)

I'm doing my first drupal module (webform extension) and I have a problem with the overlay when editing a webform. I added the "Factors" tab in my hook_menu(): ...
0
votes
0answers
26 views

Is this approach to importing data too convoluted in Drupal7? [on hold]

My client manages a desktop app for adding, deleting, updating some products. Then the app uploads a SQLite database, which is converted to MySQL. Drupal cron triggers every 3 hours an schedule which ...
2
votes
2answers
241 views

Can I use MS SQL with Drupal

Ok, first of all, my setup is slightly different. I don't want the whole of Drupal (Drupal itself plus SQL) on the same server. I need Drupal on a normal LAMP setup connecting to a db hosted on a ...
0
votes
0answers
12 views

Custom bulk operations on custom block without views

I have a block which is listing some data from 3 custom database tables. this block is not from views, its a custom block with code. I want to add bulk operations functionality to this block for ...
0
votes
1answer
38 views

Urls without question mark are served with 404 in Drupal 7 with Nginx

I am migrating an Drupal 6 site to Drupal 7. I encountered some behavior, I cannot explain and would like to ask the community. As I was testing if all urls work, I noticed, that there are urls like ...
0
votes
1answer
11 views

How to trigger email by comparing date value in node using rules?

I'm using Drupal 7, with Rules and Rules Scheduler. I have a content type "Tutorial Class", with fields as below: Class Date and Time Feedback requested (Radio button: Yes/No, default is no) I ...
0
votes
1answer
19 views

Create basic drupal server using Docker

I am trying to work out how to create a Drupal dev environment using Docker. I am trying to use the Docker containers for Drupal (https://hub.docker.com/r/library/drupal/) and MySQL ...
0
votes
0answers
21 views

i18n for Feeds module

I am importing bulk data to my site using Feeds module. However, the module does not support i18n (languages) for taxonomies. I am thinking of updating the data directly at the database level, but ...
0
votes
0answers
17 views

Unselect all exposed filter options

I added two term filters with operator is one of. I'm using better exposed filters to get them working with nested checkboxes and AJAX result updating. This works very well except one case: I can't ...
0
votes
1answer
10 views

7 - access callback get currently checked path

In my module I have lots of different pages. All pages, as defined in mymodule_menu, access the same access callback function mymodule_user_access and perform different things based on the parameters ...
0
votes
1answer
37 views

Alternate modules/themes directory

I'm trying to setup an alternate modules and themes directory which I can track with GIT separate from the contributed modules directory. Following this question, I created a directory in the ...
0
votes
0answers
10 views

Conflict among mymodule_block_view_MODULE_DELTA_alter and module_invoke

I have, in Drupal 7, a Views which returns a list of items. The views display is a block, which I render in a section of the page. I was trying to dynamically display the block in the template using ...
0
votes
0answers
10 views

Sub domain - cannot get images or install module

I had install drupal 7 and database successfully in the sub domain. www.example.com/sub_domain/sub_website.com I realize i cant install module by click the install module link. I need to manual copy ...
0
votes
0answers
14 views

Change Attach image Download Icon

I am using https://www.drupal.org/project/download_file module for download my pdf format catalogue. It looks like below: Here I need to replace these links by two different images so when user ...
0
votes
0answers
7 views

It is possible to use a view formatted autocompletion json as the results of a FAPI textfield autocomplete?

I'm trying to do a fapi element autocomplete textfield using a view formated autocompletion json I mean, created a view which returns a json using a exposed filter criteria. The view as is works ...
0
votes
0answers
19 views

External data integrated in Drupal 7 - Create nodes

I have a lot of data which comes from a external data source. It is a ton of products, and the client wants a nice searching tool. As there are some other type of pages in the website, I decided to do ...
0
votes
0answers
9 views

In workflow how to rejected a product and display the rejected product to user

I am using workflow for publishing the product uploaded by user. I have two types of user authenticated user and moderator user, where authenticated user role is to upload a product and moderator user ...
1
vote
1answer
67 views

Master page and details page for Views

I have created a new content type and I called it Opinion. Then using views, I have created a page with path /opinion to be a view for all nodes of type Opinion listing i.e. a master page. The ...
0
votes
0answers
18 views

How remove header and footer of page when user print module export node to pdf file [on hold]

I use the print module to export documents to PDF. When exporting to PDF documents I encountered a problem that the module automatically generates the header and footer for this pdf file. I do not ...
2
votes
1answer
50 views

How to use the Rules module to publish all nodes authored by a user when the user's role changes?

I'm using the SMSFramework module for my user validation, I have a rule which changes user role to "Confirmed" when the user approves his cellphone number. That means then, every node that the user ...
3
votes
1answer
44 views

How to check in a rules condition if an image field has value?

Is there any way to check if a field has no value (image field) after saving the content in Rules? I tried Data Value is Empty, but it doesn't work! Output of the rules: { ...
1
vote
1answer
18 views

Creating nodes from json including image field upload

I am trying to create a node programmatically from the data(JSON) sent by my front-end template. <input id="title" name="title" type="text" > <input id="body" name="body" type="text"> ...
0
votes
0answers
11 views

Migrating Drupal 7 Content Types & its Nodes into another Drupal 7 site

I have 2 Drupal 7 sites and I want to migrate data from one into the other. One of the D7 sites has a bunch of content types that the other doesnt along with a bunch of nodes associated with it (about ...