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

Taxonomy exposed fields options should be visible even when there is no result

have a multi exposed filters for a view. All are taxonomy reference fields. For filtering content based on some exposed filters options, for which there is no result, the exposed filters fields also ...
0
votes
0answers
14 views

How to update value of single field of same node using node_save?

The problem statement: I have one content type called 'Employee' which has 10 nodes. I have to perform the voting for each node. I am saving the vote count in the field called 'vote count'. But when ...
0
votes
0answers
8 views

Best way to keep customized ckeditor library up to date

Background A D7 site I am working on uses wysiwyg module with ckeditor library. (I know there is a dedicated ckeditor module, but we want to stick with what we have on this existing website. The ...
0
votes
0answers
15 views

Boost cache files are not regenerating after they expired

We are using Boost static page caching for a website. Cache files are generating when we visit the pages first time. Then after that it never regenerate even after the expiration time is over. Cache ...
0
votes
1answer
35 views

I need to group a view by first initial (A,B,C) but both A and a are considered separate groups

How can I get views to group upper and lowercase together? I have the title field added twice in the view and the second instance under REWRITE RESULTS I have "Trim this field to a maximum length&...
0
votes
0answers
14 views

When is [“und”] necessary in pre process hooks?

I've noticed in preprocess hooks that sometimes a field's value is found at - for example: $vars['field_caption'][0]['value'] and sometimes it's at $vars['field_caption']['und'][0]['value'] Which ...
1
vote
1answer
51 views

Retain Guzzle Session During Batch Operations

On a Drupal 7 site, I am using the Batch API to perform operations on many entities, one at a time. During a typical operation, the D7 site uses Guzzle to make a POST call to a Drupal 8 site. The D7 ...
0
votes
1answer
20 views

get value from content type B, in a view of content type A

i have a content type named songs. among other fields, it has a field named title of the song, which has as its field type the Node reference. i also have a second content type named songsTitles which ...
0
votes
0answers
33 views

Undefined function in module

I use taxonomy_get_term_by_name() in one of my modules, and it throws a Undefined function exception. My best guess is that this is due to Drupal core system not being ready for function calls. I've ...
0
votes
1answer
38 views

Set Default Value for Image Field contain Multiple Images

I've added a multiple image field to the user account that uses the multiupload_imagefield_widget and it works when I edit the account. On the other hand, I have a custom module with a form that I ...
0
votes
1answer
40 views

Change workbench moderation state with VBO does not work properly

I have two workbench moderation states draft and publihsed When I try to change the state of a node from draft to published using VBO's set moderation state action, It actually republish the published ...
0
votes
1answer
34 views

How do I redirect a domain but keep the URL structure?

I have example.com and example.co.uk. They both point to the same Drupal installation on my server, so both domains load the exact same site. I am now trying to redirect the .co.uk to the .com domain. ...
0
votes
1answer
24 views

How to allow multiple values in a single value textfield

I am using views_conditional module for Drupal 7 and would like to use a comma separated array (i think this is called an array?) of values in the "This value" textfield. For example, I ...
0
votes
0answers
29 views

Views Data Export module duplicates node titles

I need to export a content type that has paragraph bundles. I'm using the Views Data Export module (in CSV format) to do the export. I am able to export the content, but not in the correct format. As ...
0
votes
1answer
28 views

Delegate user administration to a limited set of users

We are currently using the excellent domain module (allows segmenting users by domain) in and the user_import module (allows uploading users via CSV) in Drupal 7. We've got a new requirement where we ...
0
votes
0answers
21 views

Incorrect field of a content type in its display after migrating from a backup

The following two screen shots should explain the issue well: Here I have a content type Poll, where the first field is Question with machine name title. However, in Managage Display tab, the second ...
-3
votes
1answer
78 views

Which version of drupal, php, mysql combination will work on RHEL6? Which version of drupal, php, RHEL will work if we need to use mysql 8.0?

We have a working application which runs on RHEL6 with Drupal 7, php 5.3.3 and mySql 5.1.73. We are planning to migrate it AWS with latest versions which gets support. We need to know the working ...
0
votes
1answer
35 views

How do I get the roles of the currently logged-in user?

In Drupal 8 I would use the following code. $current_user = \Drupal::currentUser(); $roles = $current_user->getRoles(); What is the equivalent code I should use in Drupal 7?
1
vote
1answer
57 views

drupal_set_message doesn't display message sometimes

I'm uploading a file, to process and display a message at the end. However, the messages that drupal_set_message is set to display are displayed sometimes and don't display sometimes, even, if the ...
2
votes
1answer
127 views

Drupal downloads the module update but need FTP

As the above screen shots, from Drupal 7 shows, the updates are downloaded! However, it still says Updating modules and themes requires FTP access to your server. I have tried the ownership of sites ...
0
votes
1answer
40 views

Converting a page created with panel into PDF

I'm working on D7 Panels and I created few pages using panel. I have a use case to generate the pdf for the data existed in the panel rather than the whole page with header and footer. Are there any ...
0
votes
0answers
18 views

Optimized images in custom theme

All of the image optimization modules are for images you upload through the admin portal as an Image content-type, but how would one optimize images that are in your images folder in your custom theme?...
1
vote
1answer
17 views

save views->execute result as a static variable

Does it make sense (performancewise) to store view->execute() as a static variable in order to avoid running same view multiple times? And then call view->render() wherewer I want to print the ...
1
vote
0answers
22 views

Local action on node but path a child of node?

I have created two local actions which I want to display on my nodes, General Configuration and Advanced Configuration. General Configuration will show at node/%node, but Advanced Configuration is ...
0
votes
0answers
32 views

How do I convert the text value of the node:field_frequency to the ISO-8601 (Biennial -> R/P2Y) in DKAN 1.14?

I have Dkan 1.14 distribution installed on Drupal 7.67. Also catalog file generation (catalog.xml) is configured for harvesting. When setting up data mapping between Drupal and Open Data entities ...
0
votes
0answers
29 views

Is there a way I can access the user profile picture filename?

I want to create a view in the Drupal 7, where I can show the User Profile picture name (the original which user uploaded) and the path its saved.
0
votes
0answers
46 views

Display the fields of the current taxonomy with an exposed form

I'm using the Taxonomy term view. I expose the "Has taxonomy term" filter to my users in a block. I want to display the title and the fields of the current taxonomy even when a term has been ...
0
votes
0answers
32 views

How can i set an error message in the right place?

Using Webform with custom template, and this code. I have code below for validation and validation errors, and it works fine. But errors always appear in wrong place. I think the problem is with $...
1
vote
1answer
29 views

Make the suggestions of an autocomplete exposed form clickable

I'm using Drupal 7 and Views. I have an exposed form of type "autocomplete". I would like the suggestions to be clickable, which avoids having to click on apply. Do you know how to do it ?
0
votes
1answer
39 views

Show content whose “team” field matches the user “team” field

The users on my site all have a field named "team" and my content types also have the same field. I want to create a views page that shows all nodes where that "team" field equals ...
0
votes
0answers
29 views

How to show inline error messages when submitting webform using AJAX

I have a drupal7 setup. I have a webform, which I am submitting using ajax. I have implemented a nice solution given over here. Everything works fine including validation and after submission messages....
0
votes
0answers
7 views

Custom user field not showing up for view except for site Administrator

I have created extra fields for the User account. I have never had an issue with any of these fields showing up when constructing a View that aggregates based off of the User. I just added a new Text ...
0
votes
0answers
7 views

Field Record not being deleted when entity record is deleted

We are writing some end-to-end tests using Cypress and have run into a weird issue where one of our custom field records does not get deleted from the field table when the entity get's deleted. The ...
0
votes
0answers
13 views

How to access custom customer shipping profile fields during shipping calculation

I'm attempting to create a shipping calculation based on fields I've added to the shipping customer profile however I've been unable to access them through either the rules interface nor by creating a ...
0
votes
0answers
13 views

How do I show the video preset options when uploading video files in the node edit form?

I am using the Video module with FFmpeg. How do I show the video preset options when uploading video files in the node edit form? Is this possible?
1
vote
1answer
35 views

Loop through multiple values from an array to create multiple arrays

I have $host_entity which contains: field_eventorganizer (Array, 1 element) und (Array, 3 elements) 0 (Array, 1 element) target_id (String, 2 characters ) 20 1 (Array, 1 element) target_id (String, 4 ...
0
votes
0answers
8 views

How can I create the functionality to assign icon per field type in field settings form?

I would like add a new setting for field which would allow to choose a icon for a field same as cardinality or any other settings. /admin/structure/types/manage/[content_Type]/fields/field_[...
0
votes
0answers
11 views

Content statistics: The “Most Recent” view is not populated

I have views in my Drupal 7 site that show the last 4 viewed objects. rather, it's supposed to do so. Instead it shows 4 objects views almost 2 years ago, coinciding when we had an ISP migration. I ...
0
votes
0answers
29 views

Can't create or save content type

This is a D7 site. I can't seem to save a content type or create a new content type. I get "Please enter valid URLs." I am able to save if I'm inside "Manage fields, Manage ...
0
votes
1answer
10 views

I am unable to post image references

I have had this module working for years. Recently, it has stopped working. I'm using Services 3 to: Log in and get a token Create an image file and get its file ID Create a node, using the file ID ...
1
vote
0answers
32 views

Trying to add a shipping calculation rule using “Order Address component comparison” condition

I'm attempting to create a basic "Shipping rate by country" Calculation rule in Drupal Commerce using the Flat Rate shipping module. I've followed the official tutorial for this exact thing (...
0
votes
0answers
18 views

Module configuration lost after some hours

I have a D7 web and I have installed Yoast module and Scheduler module. I have enabled those modules for blog content type, and when you create a new blog content you can use real-time seo (yoast) and ...
0
votes
2answers
23 views

Menu hook callbacks not working for anonymous users

My custom error handler module is somewhat based on the customerror module, but instead of returning markup, my menu callback function redirects based on the original path. It registers error paths as ...
0
votes
0answers
14 views

Using a specific URL for a page within a multisite

I have a multi-site that I've got setup with a page created for a client, but they wanted a specific URL to point to it. For example, client.mywebsite.com/content/client-page should be only shown as ...
0
votes
0answers
31 views

Security update issue

My website is running on Drupal 7.34. When I tried to update it into recent Drupal update 7.71 my URLs are not working (404 error). The actual URL is https://example.com/content/product-category/...
0
votes
0answers
16 views

Meta-tags doesn't work in Views

I dont know why the meta-tags is not working in Views. I'm using the Meta-tag Version: 7.x-1.27 My views version: Version: 7.x-3.24 I try to change the views meta tag to any text, but it is still not ...
0
votes
0answers
15 views

CKEditor and CKFinder not working after recent CKEditor update

I have Drupal core 7.69 and will install Core 7.71 later today. But I updated CKEditor a month ago and since then it is not working. Cannot upload new images or old images do not show up in the ...
2
votes
2answers
30 views

Where does the profile name on the Status Report come from?

When I click on Reports > Status report, the Install profile field says Snrub (snrub-"1.1) (with exactly one double quote). Where is this value defined?
0
votes
0answers
16 views

I Can't alter the file upload with #upload_validators

I am writing because I am trying to alter a Drupal 7 field called Uploaded Files (field_uploaded_files) on a node type called Documents (documents). I need to check files uploaded by their magic bits....
0
votes
0answers
18 views

Select which assets and scripts should load on certain pages

This is to avoid loading other assets and scripts that are not needed for certain content types, pages, etc. I have seen this in wordpress, there are performance plugins that allow you to selectively ...