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
1 vote
0 answers
30 views

Filter GeoJSON feed on a value in the path

I have GeoJSON feed, created with a view in Drupal 7, that I want to filter on a path value in the url of the loaded page (/path/%). The feed is loaded as an Openlayers map on a page. The feed seem to ...
user avatar
0 votes
0 answers
23 views

Altering user_admin_account and user_register_form

I'm pretty new to Drupal and I'm trying to build a Drupal 7 custom module to alter the user listings table in admin/people. I would like to display the first and last names of the users. I've already ...
user avatar
0 votes
0 answers
29 views

Deleting a Paragraph Item results in AJAX POST error "Missing bundle property on entity of type node."

Working with an older D7 site. On it, we have added the latest version of Paragraphs to add some content items to a page. This all works fine. However, when trying to remove a Paragraph Item from the ...
user avatar
  • 26.3k
1 vote
0 answers
65 views

How to display all data from a paragraph field in views (Drupal 7)

I am currently a caretaker for a Drupal 7 website and I can't figure out how to group paragraph items in views. I have created a content type Products and one of the fields is called product variation ...
user avatar
0 votes
0 answers
9 views

Drupal7 Views relationship multi value custom column

Im using Drupal7 and views, views relationship Im displaying the results in table format with the help of view along with other custom tables as well as by using views relationship. I need a help in ...
user avatar
  • 41
1 vote
1 answer
51 views

Use async with drupal_http_request()

I need to make an asynchronous call with drupal_http_request(). Is it possible?
user avatar
0 votes
1 answer
35 views

How to get rendered node according to active theme?

In a hook_entity_postsave() function in my custom D7 module, I'm doing the following when a node is saved: $_ = node_view($entity, 'full'); $html = drupal_render($_); But the renderd HTML ...
user avatar
  • 3,909
0 votes
0 answers
13 views

WYSIWYG images in AMP Module

I have a Drupal 7 website, the site has AMP module installed. When I insert a image in WYSIWYG editor the site is not converted to AMP mobile version (in image fields there is no problem).How can I ...
user avatar
1 vote
1 answer
42 views

Output JSON string into PHPTemplate file

I want to output a JSON string as part of a data attribute on an HTML tag for a template in Drupal 7. For the life of me, I cannot figure out why it does not work (works perfectly in 8+). I need to ...
user avatar
  • 26.3k
0 votes
0 answers
30 views

Use Views Rules to loop over a user's view

I have a contextual view that lists the last expired Course Session of a teacher. I use a contextual filter like this: User: Uid whereby: WHEN THE FILTER VALUE IS NOT AVAILABLE Provide default value ...
user avatar
  • 338
0 votes
1 answer
23 views

How to increase image resolution in gallery?

Not sure if I am asking the correct question here as I am more of a PHP coder than a graphics designer. My client's site has a Views img gallery which displays 3 columns wide on desktop and 1 wide on ...
user avatar
  • 887
0 votes
0 answers
19 views

How do I know what properties and methods are available to an entity_metadata_wrapper object?

It may be easiest to start with an example. The entity_metadata_wrapper() function seems to do a lot of complex magic behind the scenes in order to return an object with all data related to the entity ...
user avatar
  • 3,774
0 votes
0 answers
16 views

webform reference entity auto complete error

In my webform I am using user entity reference view, If I place select-list in field settings it works with format firstname, lastname. But when I use auto complete it always gives me error when I ...
user avatar
0 votes
0 answers
14 views

Override the field template in the view

I have a view that outputs the fields needed and I would like to change the template of one field in this view. I need exactly override the views-field-field-product-color-field-color-color field ...
user avatar
-1 votes
1 answer
34 views

Using Authentication API module

I'm trying to use the User Authentication API module. My goal is to add some post-processing after successful Drupal 7 login that posts JSON to an external web service. This would be work very similar ...
user avatar
  • 19
2 votes
2 answers
97 views

Translation of a multilingual site into English

Note: This question is only focused on strings inside source files (PHP files). When you are creating a Drupal site in a non English country (let say France), you will create all your PHP files with ...
user avatar
  • 554
0 votes
1 answer
27 views

How is the theme folder to use decided?

Under /sites/all/themes there are two folders called atlas and atlas.backup. Drupal 7 is pointing to atlas.backup and I don't understand how Drupal knows which theme folder to use. I want Drupal to ...
user avatar
0 votes
0 answers
9 views

The tid is being stripped out of my entity reference autocomplete value when I go to the webform submission edit page

I have a webform with an entity reference to a taxonomy and it's using an autocomplete widget. When I edit a webform submission, the ID is missing from the field and changes can't be saved because the ...
user avatar
1 vote
0 answers
29 views

Create a user map with a results tables below it

I've been searching around for the past couple months, watched a lot of YouTube videos, and read a lot of tutorials, and I've made a lot of progress with an alumni directory our team is creating. But, ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
  • 2,788
0 votes
0 answers
19 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 ...
user avatar
  • 3,774
0 votes
2 answers
173 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). ...
user avatar
  • 2,788
0 votes
2 answers
82 views

How to add custom option value to select field in Webform and have them save with the submission?

I have a Drupal 7 webform when I need to dynamically populate a select field's options. I'm currently using hook_form_alter() and setting the values on the like so: <?php $form['submitted']['left']...
user avatar
0 votes
1 answer
10 views

Adding conditional comparison of two columns in relationship

I am trying to put value comparision while creating relationship. When i give direct value that works perfectly fine. but i wanted to pass column name with alias to get required results. This is ...
user avatar
0 votes
1 answer
70 views

Is there a way to pass a value to a hidden field to multiple blocks printed from a template file?

The scenario is a template (tpl) file outputting a list of contact forms where each one is unique to a term ID in it section on the page. I need to generate a custom options list per printed Webform ...
user avatar
0 votes
0 answers
21 views

Using memcached and ip_ban simultaneously?

Memcached is by no doubt an essential tool to speed up Drupal websites. Is there a way to use the ip_ban module in order to block certain countries from accessing my website before the cached content ...
user avatar
  • 101
2 votes
2 answers
90 views

Do I need the trusted host setting?

Do I need the trusted host setting for a Drupal 7 site? If so how do I configure it? I noticed that Backdrop CMS has it in their settings file.
user avatar
  • 31
0 votes
0 answers
32 views

How to get the field data

Hi i'm using entityreference, i hava an content type"test" that contain a field that refer to categorie and this categorie contain a field_theme also referenced to another content type ...
user avatar
  • 1
1 vote
1 answer
36 views

Botton webform change bootstrap class

Maybe someone knows why when you change the name of the button, its class changes from btn-primary to btn-default. btn-primary only if there is a submit in the button name (Without spaces before or ...
user avatar
0 votes
1 answer
30 views

Validation doesn't show an error when the value entered in the field doesn't respect the minimum length

I am using the Field validation module to validate a text field using the Length rule with a minimum length of 1. When the field is left empty, no validation error is shown. Setting the field as ...
user avatar
1 vote
1 answer
26 views

How can I make 3 different menus?

I need to do an Agenda in Drupal 7. The table for the events is more or less already done, but I would need to add 3 days on the top like: Day 1 - Day 2 - Day 3 Depending on which day is ...
user avatar
  • 11
0 votes
1 answer
59 views

hook_forms() not working

I'm trying to add a button to all node forms via callback in hook_forms. I get a similar error. Can someone help. Warning: call_user_func_array() expects parameter 1 to be a valid callback, class '...
user avatar
0 votes
0 answers
55 views

How do I display nodes of two different content types that use the same taxonomy term?

I have two content types, typeA and typeB. Both the content types have a taxonomy reference field. I created a view for each content type. In the view showing typeA nodes, I want to show also typeB ...
user avatar
0 votes
0 answers
23 views

Taxonomy dynamic dependent exposed filters

I have a content type with two taxonomy term fields: Region and Country. I created some nodes and entered values for those fields. I created a view with both the fields as exposed filters. When a ...
user avatar
0 votes
0 answers
194 views

Add custom buttons to TinyMCE editor toolbar

I'm trying to add a custom button to my TinyMCE editor in Wysiwyg on a Drupal 7 install. I've managed to adapt TinyMCE settings to work in my custom module, like so: function ...
user avatar
  • 21
-1 votes
1 answer
32 views

Downloading xlsm is disabled for anonymous user: What function is responsible for this access control?

We have a D7.8 site with Panopoly 7.x-1.81. No access control modules. A standard filefield is used for uploads and functions perfectly for the usual set of mime types. We recently extended the list ...
user avatar
0 votes
1 answer
18 views

Is there a way to strip field set and description from [submission:values] in the emails tab?

I have a very long form. I would like to use the simple [submission:values] token in the email, but I'm hoping there is a way to add something that will leave out all the extraneous information like ...
user avatar
0 votes
0 answers
11 views

How to fix an empty editing window while content is shown in frontend

There are a lot of empty editing windows while content is shown in frontend. Only the body field in editing mode is empty. The text is in the database. It has nothing to do with the content type. Some ...
user avatar
  • 67
0 votes
1 answer
322 views

Set a Data Value from Text field to Term Reference field

Node has two fields: Text field Term reference field (autocomplete?) The Text field is old and already has 500 nodes with 500 unique values. The Term reference field is new and needs to contain same ...
user avatar
0 votes
1 answer
19 views

Checkbox Ajax call back giving me error

New to drupal 7, following code should work fine according to my knowledge can someone help me why ajax give me error in console ? and what the solution Code function ...
user avatar
0 votes
1 answer
71 views

How can I disable these URLs?

In Drupal 7, the following URLs show the same node. http://www.example.com/node/5 http://www.example.com/node/5/randomtext1 http://www.example.com/node/5/randomtext2 http://www.example.com/node/5/...
user avatar
  • 421
0 votes
0 answers
30 views

get translation programmatically of field value in specific language

I have created a content type (pdf_form) to which I added a field_gender_languagetest with two options, male and female. I translated both the options in German using the translation tab. Now I am ...
user avatar
0 votes
0 answers
285 views

How do I fix the "You're attempting to access the site via IP address or invalid hostname." error?

I'm running Drupal 7 on Pantheon and have started getting the following error message whenever I try to save content. You're attempting to access a Pantheon site via IP address or invalid hostname. ...
user avatar
  • 21
-1 votes
1 answer
43 views

Custom translation function

I need own translation function in my custom module where i have defined language codes ('en','ja','de'....etc) Now i just wanted to pass word and language code as a parameter and it returns ...
user avatar
0 votes
0 answers
22 views

Can the Mailchimp module email node content?

I have a blog page. I want to add a sign-up box to collect email addresses so I can email everyone when a new blog entry is added. As I'm on shared hosting, I believe there is less chance of them ...
user avatar
0 votes
1 answer
30 views

Securing admin account, silly "solution" found

Hello fellow Drupalers, I've been given the task of securing our admin account, on our websites (drupal 7) from outsiders. My first thought was 2FA and I looked at some of the modules (tfa, google ...
user avatar
0 votes
0 answers
15 views

How to move Panels with content from development site to live?

I want to move the content which is there on panels from local to dev. (Panopoly module is used on the project) So that I don't have to re-create the content on dev. I have tried to used this modules ...
user avatar
0 votes
0 answers
53 views

Why do I get "The file could not be created." on a site I locally duplicated?

I've duplicated an online site to a WAMP localhost site. The front page layout is broken and the front page shows this error. The file could not be created. The website encountered an unexpected ...
user avatar
  • 57
0 votes
0 answers
24 views

Error page after Paybox offsite validated payment

Working on Drupal 7.81 and Commerce Paybox 7.x-1.3 Everything is going well except for the redirection from Paybox to my e-commerce site, I constantly have an error page after redirection. Paybox ...
user avatar
  • 415
0 votes
0 answers
11 views

Multiple image sets shown in a view using Colorbox

I need to have multiple image sets in a content type. I need to output them in a view that would show first image in the set (and cycle through the rest in that set) in Colorbox. I tried to set up a ...
user avatar