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
9k views

Right way to create Yes/No boolean fields [closed]

I want to add fields in my node which will contain boolean values only : Yes/No. Selecting boolean as field type will cause the field to show up as single check box and in the node edit form I've ...
1
vote
2answers
2k views

Remove All Unwanted js and css files from theme

I create a website based on Drupal. When I look at the JavaScript and CSS files loaded from Drupal, I see many unwanted files loaded. I want to force Drupal to load only those files added to the .info ...
3
votes
2answers
4k views

"PHP Notice: Constant DATE_RFC7231 already defined in /ext/vhosts/public/includes/bootstrap.inc on line 258"

After moving my Drupal site to a new host, I got the following error in the error logs. [error] 8707#0: *1 FastCGI sent in stderr: "PHP message: PHP Notice: Constant DATE_RFC7231 already defined ...
0
votes
1answer
869 views

Change field input type on node edit form

I'm looking to change the input field widget on my form, but still accept the same value at the end of it. I have an integer field, and I only want them to be able to select certain integers which ...
0
votes
1answer
1k views

Set exposed filter date programmatically

I would like to programmatically set an exposed filter for a field date (field_date) in a view. Date has to be > of a specific date or between to dates. I tried this, but it does not work. It ...
0
votes
1answer
21 views

How do I print the display name?

I have a view with multiple pages. In the Views interface, I can set a display name for each display. Is there anyway I can print this name in the view itself, for example adding a Global Text field ...
0
votes
1answer
1k views

Storing and retrieving custom field value of a webform in/from database?

I have altered a webform by adding a date field in different language like chinese in Drupal 7. But what steps are required to store custom field value in database and retrieving value when webform ...
0
votes
2answers
352 views

hook_node_access($node, $op, $account) not working

I'm using drupal 7.41 module: Devel I created module_template module. function module_template_node_access($node, $op, $account) { kpr($op); kpr($account); } But when I view or edit node not ...
1
vote
2answers
1k views

Using custom .tpl.php for fieldable panel pane view mode

I'm having a difficult time getting a view mode on an FPP to use my custom .tpl.php file. Here is hook_preprocess: function mymod_preprocess(&$variables, $hook) { $element = $variables['...
1
vote
1answer
811 views

how to display an image in theme using img tag?

I need to display an image in the page footer using <img> tag. In my page.tpl.php I have following block: <div id="copyright"> <img src="../images/logo.png"> <p class="...
1
vote
1answer
703 views

How I can include Commerce SKUs in search result?

How I can include Commerce SKUs in search result? I am using “Search API and Search API Solr” modules. Any suggestions?
0
votes
1answer
2k views

EntityMalformedException: Missing bundle property on entity of type taxonomy_term

I have strange behavior that when i visit www.mysite.com/taxonomy/term/516/sdfsdf i get EntityMalformedException: Missing bundle property on entity of type taxonomy_term. in entity_extract_ids() (...
0
votes
4answers
1k views

Form elements validation order

I have a custom autocomplete field widget, defined like below: /** * Implements hook_field_widget_form */ function mymodule_field_widget_form(&$form, &$form_state, $field, $instance, $...
0
votes
1answer
560 views

Using 'return' with an ajax callback renders an entire page before my content is loaded

I'm developing a module that uses Openlayers maps and Drupal Commerce. When you click on the map, you should see products that relate to those coordinates of where you click. I have this working ...
0
votes
1answer
478 views

CKEditor "Source" button does not brings back the full html

I have written a full html code <div style="background-color:red">&nbsp;</div> But when I edit the content and click on the "Source" button provided in the CKEditor toolbar. nothing ...
0
votes
1answer
346 views

Image module custom image style changes image link

I am using Drupal 7.32, and I enabled the Image module. I have created a custom "Image Style" so that I could add Bootstrap 3 "img-responsive" class to my image in my view, but adding that custom ...
2
votes
3answers
7k views

How to improve search results filtering on taxonomy

I would like to know the best way to filter drupal search results using taxonomy. I want users to be able to search for particular results from a particular taxonomy..this can be done to refine ...
1
vote
2answers
734 views

Get path of Page Manager page

Basically I have created a page and it shows up fine. When I do a arg or current_path on that page it shows as a 404 path, not the one defined in the page. current_path() => error-404 $_GET[q] =&...
0
votes
1answer
1k views

Ajaxy entity reference views filter by entity reference view

I have two content types that share a taxonomy (Size). On content type A, I have an "entity reference" to content type B in the form of a checkbox widget. What I want: On the node creation form, ...
1
vote
1answer
1k views

How do I enable Backlinks View and What Links Here?

We used the backlinks view in D6, as well as the What Links Here tab for each node. We're now using Commerce Kickstart 2. I don't see that View and it appears that the search_node_links table is ...
0
votes
1answer
2k views

How to automatically select the organic group audience when adding content?

How can I setup a link on a group page to add content that automatically selects the group audience as the referred group? For instance: I'm a member of the group "Puppy Kittens" and I'm logged in ...
0
votes
1answer
741 views

OAuth token parameter missing when configuring Google Analytics Reports

I'm displaying Google Analytics reports at my site using Google Analytics Reports module which uses Oauth. At the localhost on my computer it works fine. But on a site my.example.com it is showing "...
0
votes
0answers
15 views

With Rules, how do I use variables with Calculate and Set a value actions?

Let's say I have an Entity with a custom integer field added. Let's call the field Global Total (field_global_total) On some event, I want to get the existing value of that field and store it in a ...
1
vote
1answer
410 views

How to print the raw value of a custom user field in comments

I want to print a custom user field of the commenters. It is an Link field (https://www.drupal.org/project/link). Some users have that field completed and other not. I've read a lot of posts related ...
0
votes
2answers
50 views

How to make the float field accept decimal values?

I am using Drupal 7 and have a float field. It is used to enter prices. Most of prices I enter have decimals (e.g. 101.82, 99.88). Some of the prices are negative values (e.g. -55.52, -1009.88). ...
0
votes
3answers
769 views

copy term reference from one to other field

I have two fields (fieldtype = term reference) in the same content type and I would like to copy the settings from the first to the second one. After searching for a solution I found this thread but I ...
3
votes
1answer
2k views

Adding Gmap to webforms

I allready download gmap, location and some other modules that in this catagory and still I dont succeed to add a field in gmap type to my webform page so users could put it their location (not in the ...
0
votes
2answers
1k views

Problem with menu position module

I have a menu like this: In the first sidebar you see the main menu with links. The second sidebar is a block that is visible on pages that begin with stocklijst/. The link in the first sidebar ...
1
vote
1answer
400 views

Customize admin content type page design

i have created template file for my contenttype wallpaper but i don't know how to get form design in that page. for example my content type name is wallpaper, so i create template file for page--...
0
votes
1answer
402 views

Install Meta Tags and Meta Tags Quick modules on the same site

Short: Are Meta Tag and Meta Tag Quick incompatible modules? I am configuring a site that has Meta Tag Quick module but it doesn't allow me to have a meta description tag. It creates an Open Graph ...
4
votes
3answers
4k views

Node add form alter & submit custom field

I have a content type "event" with a field called "field_pricelist". It's a dropdown with no values, I add the values when I alter the form. The values come from a custom table (install / schema) in ...
1
vote
1answer
1k views

Ajax callback on select box change event not working on second time

I am building a form with form API in a custom module. Certain fields should be populated based on the selected value of a dropdown. User will select the pre-entered profiles, based on which other ...
2
votes
3answers
2k views

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

The Views Selective Filter module 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 options with ...
2
votes
1answer
403 views

Static field works, dynamically modified element gets lost

I'm new to Drupal forms - trying to figure out a maddening problem. I have a content type of 'doc-upload' with various fields including 'publisher_code'. When I define the 'publisher_code' field ...
-3
votes
1answer
46 views

QR Code para Webform [closed]

I would like to implement an option to generate a QR Code in a webform (registration form for a face-to-face event), which appears right after it is sent, to be used in the registration confirmation ...
3
votes
3answers
1k views

Views UI doesn't provide links to expand fieldsets anymore

I have moved an entire drupal site to another server. While everything else seems to work fine, I can't quite access collapsed fieldsets in Views UI anymore. It looks like this All fieldsets (STYLE ...
2
votes
1answer
665 views

Data in field_revision with Create new revision unchecked

The field_data_myfield and field_revision_myfield have the same row entries (D7 fields). All of my content types have the "Create new revision" unchecked. Is this how it's suppose to work? If yes, two ...
0
votes
0answers
23 views

Buy two, or more exact same products and get a better price discount

I want to create a promotion like "2 for 27,90$, 3 for 39,90$". I have installed the discount_extra module and rules too, so I can solve with the "Order discount -> Per-quantity ...
0
votes
3answers
1k views

TableSelect with drag-and-drop weight

I have a tableselect and I have been looking all over the internet for a tutorial on how to make a tableselect have sorting/drag-and-drop functionality. I have found tutorials for making normal lists ...
1
vote
2answers
702 views

How to use #states with a container element?

I come from read this Using the Drupal 7 Form API states system to create conditions between form elements and I'm able to use the #states with an input element like the title (textfield element), the ...
0
votes
1answer
350 views

Custom field Rules implementaion

I added new "Markup" field into commerce_product table using custom module. Now I need to create a rule to calculate (sell_price=prod_price*markup), but I can't acccess Markup field throught Rules ...
1
vote
1answer
730 views

Pass multiple ids as Views Arguments in the Rule action Save PDF as file on server

I'm using views PDF to print out a list of nodes on a single PDF, one per page. Now I have more than 1000 nodes/pages on a single generated pdf, so I'm trying to use VBO and Rules to create a view ...
1
vote
2answers
2k views

Custom field widget form - Multiple values

I've create a custom field form widget for an entity reference field. When only one value is allowed it shows a (filtered) select list, but I want to allow user to assign multiple reference values to ...
3
votes
1answer
2k views

Using Views for a custom table with multi-value fields

I have a custom table with two columns - the primary is simply entity IDs (nids), and then there is a data column, but it it can be a multi-value (from 1 to anything). How can I structure the MySQL ...
1
vote
1answer
1k views

How can I retrieve the profile2 fields selected in a custom module?

I am totally new to entities in Drupal. I have used the Profile2 module to add a few profile types. This is displayed in the add/user screen as Customer. After adding the profile type I manage the ...
2
votes
4answers
2k views

How to create custom theme a view

I've defined a view with the CCK and Views modules. I have two ways for printing the result: As node content As fields content If I choose node content, I need to choose the view mode, which by ...
1
vote
3answers
2k views

Dynamic select lists (dependent dropdowns)

I created 2 dependent dropdowns in Drupal 7. In the first dropdown you need to choose the device, in order to see its attributes in the second dropdown. When an option from the first list is ...
0
votes
1answer
646 views

Need to center images in wyswyg block

I am trying to center 3 images in a block I have created in my footer but the images just won't center. I tried the wysiwyg editor's center button, but that did not work. I then tried to put in manual ...
2
votes
2answers
8k views

How to add a javascript function after uploading file

I make a form using FAPI, and this form contains a file managed field. I want to show an alert after uploading the file ("uploaded successfully"), and a confirmation ("Are you sure you want to delete ...
0
votes
1answer
932 views

Calendar widget link to list a day's events

I am using the Calendar module to manage an events calendar on a new site. Currently when you click on a day in the widget it takes the user to the calendar page that shows a small list of the titles. ...

1
2 3 4 5
530