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
votes
0answers
8 views

drush 8.3.5 fails with error pm-updatestatus fails

I am using drupal 7 in shared hosting. Drush error is: pm-updatestatus failed. Please help
0
votes
1answer
17 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 ...
1
vote
2answers
48 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 ...
0
votes
1answer
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 ...
-1
votes
0answers
18 views

how can i compare data from entityreference on the mother entity

I'm trying to configurate some rules to set data value on other fields. I have an entity TEST that contain a field named field_sequence that refered to Sequence which contain other reference like Time ...
-1
votes
0answers
18 views

How do I compare items in multivalue entity reference fields?

I have a content type (event) that has a entity reference field (field-room) that can have multiple values (multi-value). I am trying to find conflicts using Resource Conflict module and Rules. I have ...
0
votes
0answers
6 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 ...
1
vote
0answers
16 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, ...
0
votes
1answer
34 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
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 ...
0
votes
0answers
34 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
2answers
53 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
2answers
31 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']...
0
votes
1answer
7 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 ...
0
votes
1answer
37 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 ...
0
votes
0answers
20 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 ...
1
vote
2answers
54 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.
0
votes
0answers
27 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 ...
-1
votes
1answer
25 views

Fix warnings on panels generated by form blocks built by custom module

I built several form blocks in a custom module (D7). These forms display a select list of data pulled from a SOAP service server, are sequential, first form selected data is needed on second form, ... ...
1
vote
1answer
30 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 ...
0
votes
1answer
28 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 ...
-1
votes
0answers
23 views

Add a view into a theme for adding colors, fonts etc

I've done some views but I don't know how I can relate that view to a menu for the themes. I don’t want it to display on a menu, maybe hidden, but for getting the theme. In the website I'm working on, ...
1
vote
1answer
25 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 ...
0
votes
1answer
53 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 '...
0
votes
0answers
42 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 ...
0
votes
0answers
21 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 ...
0
votes
0answers
59 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 ...
-1
votes
1answer
21 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 ...
0
votes
1answer
16 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 ...
0
votes
0answers
9 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 ...
0
votes
1answer
122 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 ...
0
votes
1answer
16 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 ...
0
votes
1answer
60 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/...
0
votes
0answers
28 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 ...
0
votes
0answers
223 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. ...
-1
votes
1answer
37 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 ...
0
votes
0answers
15 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 ...
0
votes
1answer
29 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 ...
0
votes
0answers
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 ...
0
votes
0answers
34 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 ...
0
votes
0answers
22 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 ...
0
votes
0answers
10 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 ...
0
votes
3answers
43 views

Is there a way to add a variable to the variable table through the Admin menu

Can I set a new key/value pair for the variable table from the Administrator admin/config menu in a Drupal 7 site? I don't want to have to create a one-time custom module that only contains a ...
0
votes
2answers
39 views

How to export 1 or several specific rules?

I want to export one or more specific rules or components using Drush. I do have a script to export all the rules and components. drush --pipe rules-list | xargs -I{} sh -c "drush rules-export '{...
0
votes
0answers
22 views

How to use integer fetched from an Entity as an Entity ID?

I have a rule component that is supposed to fetch an integer from a property of an entity named "Course" (ECK property). This property is not an entity reference but an integer. I use this ...
0
votes
0answers
24 views

How can I show a flipbook as block in the front page?

I've installed the FlipBuilder module that's created via the software and can view the flipbook on its own url, but I want to put a copy of my flipbook on the front page, in its own block or in a ...
0
votes
1answer
34 views

Drush issue duplicating includes/ directory

Using drush either globally or with a composer installed version, I get this double includes showing up in my fatal error (/includes/includes/): include_once(/srv/www/htdocs/sites/drupal/includes/...
0
votes
1answer
60 views

invalid token: [node:title] when Token module installed

I'm on Drupal 7.80 and a Drupal newb so help with how to debug as well as things to try appreciated. Taking over a Drupal install that might have some outstanding issues. Problem: It looks like 'core' ...
0
votes
0answers
15 views

Drupal 7 taxonomy term fields not handling content filters

Image Resize Filter doesn't work with taxonomy term description. Resizing works fine in nodes and blocks, but not in views for taxonomy term. I'm loading term in my view template. And render its ...
0
votes
0answers
32 views

Filter on PHP value

I created a PHP value for a view to calculate the number of days between two dates. These dates range from negative values (-303) to positive values (422). This field is referenced as $row->php. I'...

1
2 3 4 5
530