Questions tagged [7]

Version tags should be used only 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
1answer
19 views

How to show one variation of one product in a View Pane

I have a View Pane on my home page where I list all products that are in promotion. Each product variation that can be set to "show in promo banner 1" via a taxonomy term field with checkboxes. So the ...
0
votes
0answers
11 views

How to safely delete a node reference value

I have a field in a content type, content_type_A, whose field type is Node reference. It references another content type, content_type_B, which has a field which i cannot edit of type Node module ...
0
votes
1answer
26 views

How can I run a Views SQL query in PhpMyAdmin?

i go to admin/structure/views/settings, check Show information and statistics about the view during live preview and then Show the SQL query checkbox that will appear below. I have a field which is ...
0
votes
0answers
26 views

How can I change the value of the og:image meta tag?

I want to change the value of og:image property for below tag programmatically. <meta property="og:image" content="https://example.com/sites/default/hotelier_in/styles/themes/hotelierindia/logo....
0
votes
0answers
23 views

Wrong path of Image for property = “og:image” of meta tag in content view source

I have uploaded an image in my content. When I checked view source of the page, it shows the wrong image path for og:image property of meta tag. After uploading the image in my content, image path ...
0
votes
1answer
26 views

Hook form alter to check date field is empty or not

First of all I'm new to custom modules, I'm using hook_form_alter to do some custom validation, in the middle I have to check if a date field is empty or not, if empty I will display an error message. ...
3
votes
1answer
36 views

Where to programmatically enable a Feature module

I created a Drupal 7 feature and usually I would enable it with Drush, but someone suggested that I enable it with an update hook (which I assume means it gets enabled on updb or update.php). I saw ...
0
votes
0answers
15 views

Custom Search API sort logic

I have content (multiple content types) which are tagged by a taxonomy that indicates the geographical region they're relevant in. The content is indexed using Search API and Solr. Each user is also ...
0
votes
0answers
16 views

Drupal fieldinfo error message

I'm getting the following error messages when I edit or add content in Drupal 7.67 Notice: Undefined index: module in FieldInfo->prepareInstanceWidget() (line 591 of C:\xampp\htdocs\drupal\...
-1
votes
1answer
40 views

How run a view in MySQL

From a view, I get the following in the Auto preview Preview with contextual filters: SELECT node.nid AS nid, node.created AS node_created, node_field_data_field_title.title AS ...
0
votes
1answer
27 views

hook_menu() item never reached?

I have a module where hook_menu() was already used to process ajax calls, like this: function bizaudit_menu() { return [ 'bizaudit/ajax' => [ 'page callback' => '...
0
votes
1answer
17 views

Prevent login except from Services

I would like to prevent my users to login except for those who login through my REST Service. Is that possible?
0
votes
0answers
23 views

How index on solr nodes from a content type, that belong to a certain organic group

I am using Search API Solr and Search API modules In order to index a certain content type's fields. I also use organic groups. So I need to index only the nodes that belong to say organic group with ...
-3
votes
1answer
36 views

Double menu bar

I have a Drupal 7 multisite with CiviCRM multisite also and now on the new websites I have a twice the main menu bar : I don't know how to fix this and haven't found a similar issue Any idea ?
-1
votes
1answer
18 views

How to prevent cart from being emptied

In my Drupal 7 site I have inserted an extra page in the checkout process (using a custom module), after the review page, where the customer can choose between 2 custom payment methods. My problem is ...
0
votes
0answers
36 views

How to remove below part from top of XML?

i have created a view for XML feeds. But when I access the link for feeds it gives me below debug info at top of xml feeds: <!-- THEME DEBUG --> <!-- CALL: theme('views_view_views_rss') --&...
0
votes
0answers
17 views

Search view with group doesn't work well

I think there is a bug with the search in a view: I created a view, which lists some used cars. I use a group filter item. Because cars are in several taxonomies. My problem is when someone uses ...
1
vote
1answer
36 views

Preprocess SCSS with Zen Theme on MS Server

I'm getting familiar with the official documentation of Zen Theme on Drupal 7. I'm wondering about the SASS- and SCSS-Files. The CSS-Interpreter can't understand these files ofcourse. I read about ...
0
votes
1answer
38 views

How can I duplicate a site without users and nodes?

I have a full site which has nodes, users, views, organic groups... What I need to do, is with f.e. module 'backup and migrate', take this site named A, into a new server, and keep all logic (content ...
0
votes
0answers
25 views

How can I append the node ID to the node title while saving a node? [duplicate]

When a node is saved, I want to append the NID to the title of the node. $node->title = "XYZ_" . $node->nid; If I put this code inside hook_node_presave(), it won't work because NID($node->...
1
vote
1answer
31 views

How can I export the raw body of a node?

I set up a CSV view with views_data_export. I'd like to export the raw body of nodes. So I want to keep both the raw markdown and the raw HTML in the CSV. Is there a way to do this that I have ...
0
votes
0answers
13 views

How do I put the bidding opportunity in Drupal Commerce Auctions so it sits next to the product information?

I am using Drupal Commerce and Commerce Auctions in Drupal 7. The default is to have the user click on a tab that links to a new node to place a bid. This is cumbersome, and all I really need (and ...
0
votes
1answer
39 views

Why would I provide a composer.json for my modules?

I’ve come across several Drupal7 modules that include a composer.json. It seems that this somehow influences how Drupal-CI determines test dependencies. Now I’m trying to find out whether it’s worth ...
0
votes
1answer
15 views

Display plugin entityreference is not available

I'm not sure if this is a Views issue or an Entity reference issue, so I'm cross-posting here to see if I can find an answer. I'm trying to export a view from my testing & development site, to ...
0
votes
1answer
11 views

Entity wrapper save using db_transaction()?

I am using a db_transaction() for some data updates. I am using some EntityMetadataWrappers, modify some data, then save. The thing is, the wrapper ->save() function doesn't have a parameter for $...
0
votes
0answers
21 views

Add a class to a “view” depending on the value of the exposed filter

I have a view with a exposed filter, the view have the following structure. <div class="view"> <div class="view-content">...</div> </div> The exposed filter is select type, ...
0
votes
0answers
8 views

How to solve Image Thumbnail Field display of Magnific-popup

After a long search, Magnific-popup Drupal 7 found the best matching lightbox option. I created an image, video, audio, and documents file type fields. Everything is smooth with image file where the ...
0
votes
0answers
22 views

Parse nested img in <content:encoded> with XPath Parser

I am using Feeds and Feeds XPath Parser. I have an XML source like this. <item> <description> MYdescription </description> <content:encoded> <!...
0
votes
1answer
23 views

Run feeds importer crons one after another

I have two feeds importers. I wanted to run the 2nd importer when the first is finished. I have written a cronapi hook for those two importers. /** * Implements hook_cronapi(). */ function ...
0
votes
0answers
14 views

Set and retrieve cookie in a form [duplicate]

How do you set and retrieve a cookie from a custom form in Drupal 7? I am trying to set and retrieve a cookie containing form_state in a custom form. The form is a multi-step form. My intention is to ...
0
votes
0answers
10 views

Do not show content in view for specific field value and current site language

I have a multilingual D7 site. I have a fairly complex language hierarchy setup with 10 languages set up besides the default English. We are using the Language Hierarchy module so that we can specify ...
0
votes
1answer
33 views

How can I call custom javascript on successful webform submissions through hook_form_alter?

I have some custom js code which should be executed after successful webform's submission. JS Code : jQuery('document').ready(function(){ form_submit_telium(); }); below approaches, I already ...
0
votes
1answer
22 views

Multiple products on add to cart?

E.g. node contains a product Poster for $5 and e.g. a checkbox saying "+ Cup" which is another $5. So it's two different products, how do I let user select if they want just a poster of if they want ...
0
votes
0answers
17 views

Leaflet version not detected

I have a drupal 7 site, competely upd to date. Installed Leaflet en put the leaflet libarie (unzipped) (https://leafletjs.com/) (1.5.1) in the sites/all/libraries/leaflet. However, in the ...
-2
votes
1answer
23 views

How to use apostrope in meta description

Whenever I use an apostrophe in a meta description the browser prints the code as &#039;. Is there a way to prevent this? These are coming trough a custom module that builds out the page.
0
votes
1answer
28 views

Form is not submitting after ajax callback

I have a form which has a checkboxes field. This field has an ajax callback attached $form['checkboxes'] = array( '#type' => 'checkboxes', '#title' => 'test', '#ajax' => array( '...
0
votes
2answers
27 views

View is removing iframe from custom text

I'm using a global custom text field within a view that is meant to display an embedded youtube video. However in the actual render of the view it's completely removed from the dom. My first ...
0
votes
1answer
21 views

How do I reference a file field and node title from another content type & node?

I need to add a link to a file, added through a file field on its own content type called "Document" from another content type and node call "plan information". The idea is that the "document" nodes ...
0
votes
0answers
26 views

Remove URL parameters

I am trying to update an user using the Services module. It is working fine with a request like that: D/OkHttp: --> PUT http://example.com/api/user/20 D/OkHttp: Content-Type: application/json D/...
0
votes
0answers
26 views

How can I set the ics file name as the event title?

I have created a feeds view for the ical file. The format is iCal feeds. The path is something like this /node/%/event.ics When I download the file, the file name is event.ics. Can I set it to ...
0
votes
0answers
27 views

Can't go anywhere from user edit page after login

Having an issue with a certain user that is not reflected on other users, when this particular user is logging in he isn't redirected to homepage or to admin/dashboard but to user/edit page, ...
1
vote
2answers
47 views

Is it normal for a database to have 3600 tables?

I recently inherited a Drupal site and while trying to migrate the site and DB I noticed that the DB is 1GB+ and had 1000s of tables. This is the first time i work with Drupal so I'm not sure what ...
-2
votes
1answer
18 views

How do I enable users to submit sessions in “Conference Organizing Distribution”?

I don't see any configuration item or link that would enable logged-in users to submit sessions in the Conference Organizing Distribution module. How can I enable this? What link should I use? I'm ...
0
votes
0answers
8 views

Saving a translated node overwrites the last saved URL aliases [duplicate]

In Drupal 7 I updated the node in english then alias update in english version which is right I updated the same node this time in french then alias updated in french and also updated in english ...
0
votes
1answer
19 views

Unresolved dependency updating the module

I'm updating the Views module on a Drupal 7 site, and I'm receiving this message when I update the database. How do I resolve this dependency issue when I need to update the Views module first?
-1
votes
1answer
63 views

.htaccess not working in files folder to disable php files from executing in files folder

I have the following in my default/files/.htaccess file: SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 ...
0
votes
0answers
19 views

Block or ban ip addresses based on site-wide contact form category

How to create a rule with the Rules module that blocks or bans ip addresses based on the category that they selected on the contact form for anonymous contact submissions via the site-wide contact ...
0
votes
1answer
16 views

Feeds: How to import content from multiple xml files

I have around 100 xml files. Each xml file contains a single item. I have created a feeds importer which is working fine for single xml file. But I don't know if feeds can work with multiple xml ...
2
votes
1answer
37 views

How do I increase the character limit for the default “Fixed value” of a contextual filter?

I'm trying to make a view of my new products using the Content: Nid contextual filter. In this filter I opted to provide a default value, with a type of "Fixed value". On the "Fixed value" field, ...
1
vote
3answers
20 views

Query fieldCondition for custom content type

I am attempting to query a custom content type called players (machine name) in a Drupal 7 module and it seemed to be working fine up until an hour ago. Nothing has changed on my side but now the '...