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
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 ...
0
votes
1answer
28 views

Cannot export theme settings to the .info file

I am using Drupal 7. After modifying a setting for my theme in the Appearance menu, I get the following alert message on my site's homepage: The settings for this theme are currently served from a ...
1
vote
1answer
19 views

Sort Views table field by alphabet

Table field 'Manufacturer' is set to sort by ascending or descending and when you sort it. At first it looks like it's sorting by alphabet, it starts with A, B, C etc. but eventually ends up with A ...
0
votes
0answers
10 views

Relative URLs for file links when moving between environments

I'm trying to sync some Drupal 7 basic page nodes that have file fields on between my local development and my production environments. Production is at example.net and development is at localhost:...
0
votes
0answers
26 views

Can't remove image from image field on content type

doing some last minute maintenance on a D7 site. Recently needed to change some of the existing content and am finding that I cannot delete images. In clicking the "Remove" button associated with the ...
1
vote
1answer
23 views

Having required (*) show up on the component itself and not the label

I'm creating a webform select options component and I want to hide the label. Because this is a required, it needs to display with the red asterisk that the field is required. However, the asterisk ...
0
votes
1answer
29 views

How to pre-populate a text field when creating a new node?

I am using Drupal 7. I have a Content Type called Request. I have two fields "Manager Name" (type Text) and "Manager Email Address" (type Email). When the user creates a new node of type Request, I ...
0
votes
1answer
38 views

How can I set the site root page to a landing page instead of user login?

I'm using a custom bootstrap 3 theme as my default theme which sets the user_login page. When I go to the root of my site, this is the page that appears. How do I change the root of my site to display ...
0
votes
0answers
37 views

Change user expiration date in Opigno LMS

I have installed Opigno module on Drupal 7.x and configured all classes and courses. What I want is modify the date of user expiration through a form I set up. The date user expiration is a plugin in ...
0
votes
0answers
12 views

Create view from custom SQL query

I have installed privatemsg module: https://www.drupal.org/project/privatemsg/ Now I would like to build a view with the last sent messages. But I can not build this from the views UI: I have built ...
0
votes
0answers
8 views

Create a new indexed field in solr search api

On my drupal site I have to fields from wich I need the minimum in my view. So I thought I could use a search api hook to create the minimum of two fields as index, but I don't know exactly which ...
0
votes
0answers
49 views

Running cron every minute on Pantheon with Elysia Cron

I am on pantheon now and I've never used a cloud host before so I'm used to being able to set cron on the server. This is totally new territory for me. I have some tasks that I need to run every ...
0
votes
0answers
15 views

adding name and id to labels of the webfrom?

How to add the name and id to the labels of the webform . By default it does not add any name and id to labels.
0
votes
0answers
22 views

“Does not contain any word” filter

Views comes with a bunch of filters, but seems to be missing "Does not contains any word". I am looking for a way to achieve a similar function with Views but can't find anything relevant. I found ...
0
votes
0answers
10 views

Display only specific months which has data in the exposed filter, Views

I have a view where i am displaying data from one of the content type and i am filtering the data based on month and year, selected from the exposed date filter. I have added the date field in the ...
0
votes
0answers
16 views

Multiple Custom Line Items with single add to cart button

I am working on a system that pulls in available dates and booking references from a third party API - we then need to add these pieces of extra information to a line_item that is added to cart. I ...
1
vote
1answer
50 views

Suggested template file is not working for Custom Search's template

I have installed Custom Search module for my drupal7 setup. I am trying to modify template files for search-result and search-results. By default its using template files from contrib module's theme ...
0
votes
1answer
18 views

How to edit Advanced Search Form's Content Type checkbox-list using hook_form_alter

I have a Drupal 7 setup. I want to remove few Content types from the Content Type checklist that appears in Advanced Search form. I could see that advanced search form comes in 'advanced' field-set of ...
0
votes
1answer
18 views

Which is the highest version of Solr that is compatible with the “Apache Solr Search” module?

I have a setup of Drupal 7 with the Apache Solr Search module. I am planning to upgrade the solr server's current installed version(3.6) to a higher version. The latest version of Solr available in ...
0
votes
0answers
23 views

Load only the products associated to the map sector shown

I have a Drupal site with commerce. I have a lot of products, which have their own geofield. I want to show them on a Leaflet map, but load them only at a specific zoom level (15 or 16), and only the ...
0
votes
1answer
16 views

How to add multiple conditions on a single field in views?

I have two fields in my content type. State and test . State have two values active and inactive and test is a boolean field. I want to display the content of this content type using views which will ...
0
votes
1answer
31 views

Modify user profile page, not login page

I'm trying to edit the user profile page, not the login page. However, with Drupal 7, the template for the profile and the login page is the same. I tried to modify page--user.tpl.php, but it also ...
1
vote
2answers
31 views

How to get fetchField using db_query?

I wrote db_query in two ways, I followed the drupal documentation to write safe db_query, one of them doesn't work, I want to know what I'm doing wrong in the code below. // Worked perfectly function ...
0
votes
1answer
22 views

Feeds Importer running multiple times

My feeds importer is acting very strange and running the same import multiple times.. This is what my importer looks like: class FeedsASUNewCareer extends FeedsCSVParser { /** * Implements ...
0
votes
2answers
19 views

Add an item to a checkbox in a content type

I started working with drupal recently and I have been assigned many small tasks. I would like to know how I can add an item to the following checkbox, I can't understand how: Thanks in advance!
0
votes
1answer
40 views

error from drupalroot

We have a live system. define('DRUPAL_ROOT', getcwd()); define ('DRUPAL_ROOT', getcwd ()); I couldn't log in with the command define('DRUPAL_ROOT', 'D:/www/webhosting/o3800_7Z55V5Hop2Ff/wwwroot/vts/...
0
votes
1answer
27 views

drupal_http_request() with POST returns a 405 error

I am trying to call an external API with a POST method which is working fine on Postman, but when trying to implement it in a custom module using drupal_http_request() I am getting a strange error. ...
0
votes
2answers
23 views

How can I manually change image orientation?

I manage a website with Drupal 7 where users can upload pictures from their mobile or from their desktop. I have configured Image Style with "autorotate" effect and most of the pictures are well ...
0
votes
0answers
18 views

How do I retrieve a list within a content type of values from a field of all user profiles?

Within a content type I want to create a field to select from a list of business units names, based on the values of a field of all user profiles, BU, which contains the business units names, but in a ...
0
votes
0answers
21 views

Separate the form visually

I try to visually separate the edit form from the user profile in two separate tab menus, and show / hide certain fields. There would therefore be two tabs: the existing one: "Edit", with certain ...
0
votes
0answers
7 views

Is there a way to make a view show current user content along with a following flag?

I am working on a project powered by Drupal 7 and I would like to have a page (Frontpage) powered by the views module which will show content (nodes) from the current logged in user and also content ...
0
votes
0answers
14 views

Field is shown but not filtered

A client has a site with a view (content pane from panels) containing fields from a "Custom" content-type. I say the content type is custom because it's not based on the Content view, but this. ...
0
votes
1answer
22 views

solr is running, but search isn't working: “The Solr server of Solr could not be reached.”

I am using Search API Solr (Version: 7.x-1.14), and search was working fine but has stopped working. I now see "The Solr server of Solr could not be reached" at admin/config/search/search_api. In ...
-1
votes
1answer
27 views

How can I make a multi-column content section with Paragraphs and Bootstrap?

How to adapt this code in php for Drupal 7? https://jimbir.ch/blog/making-multi-column-content-section-drupal-paragraphs-bootstrap drupal-paragraph-multi-column-field.html.twig {% for item in items %...
0
votes
0answers
22 views

How can I remove spaces in XML feeds?

I am working on creating the XML feeds for the contents of a specific content type. But after creating XML feeds, I noticed that the blank space is appearing at top of the XML feeds. How can I remove ...
0
votes
1answer
56 views

Commerce Fee not being added to order total sent to payment processor

I have followed the Commerce Fees module's instructions found at https://www.drupal.org/project/commerce_fees: DOCUMENTATION Go to admin/commerce/config/fees and add a new fee type Add a ...
0
votes
2answers
17 views

How to return a user's group access permissions?

I am trying to block a user from accessing certain content/blocks if they do not have permission to view content of a certain type within a group. I have the user ID and the group ID, but how do I ...
0
votes
0answers
21 views

Adjusting the shipping price for a product after the order was placed

I'm using Drupal 7 Commerce module and I need to be able to edit the shipping price of an order after the has been placed. This is a B2B site, so the prices are displayed without VAT. I'm using the ...
0
votes
1answer
87 views

I am getting an error “Notice: Undefined index: distribution_name in drupal_install_profile_distribution_name() ”. How do I fix this?

I am using Drupal 7.69. I log in and go to my modules page and get the following error: Notice: Undefined index: distribution_name in drupal_install_profile_distribution_name() (line 207 of /var/...
0
votes
2answers
47 views

How to check if current page is a group entity?

Im using drupal 7 and group module I am trying to run some code only if the current page is a group. here is my code <?php $arg = arg(0); $arg1 = arg(1); global $user; if($arg ='group' &&...
0
votes
0answers
10 views

Nodereference field to use other field than title

I am using node reference field with autotagging and want to use field other than title. Is it possible? I have already tried a views with reference and the field other than title but it only changes ...
0
votes
0answers
12 views

How to pass entity id variable to _menu() to use for a custom href nav button?

I'm using the Entity registration module which builds the navigation buttons inside function registration_menu() How Can I pass on the entity id to _menu($entityid) so I can use it within to insert ...
0
votes
1answer
28 views

Menu endpoint hangs when access callback returns false

I'm trying to add a custom access callback function that checks that a user is a specific user (we only want this one api user to have this specific endpoint. It is set up like so: function ...
0
votes
1answer
21 views

Expose a filter to turn a different filter on or off

I have a view of items that have a due date, and I want to be able to expose a boolean filter "Is overdue by more than 30 days" I can create a filter on this due date as a relative date filter "<= ...