Questions tagged [7]

Version tag to tag issues specifically related to Drupal 7.x. Please note that 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
0answers
37 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
37 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
39 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
26 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
36 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
14 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
18 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
12 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
22 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
10 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
31 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
24 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
15 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
11 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
44 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
24 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
22 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
26 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
33 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
33 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
23 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
29 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
28 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
29 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
48 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
11 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
23 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
67 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
21 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
18 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
39 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 '...
0
votes
1answer
29 views

Add second expression to query

I have a probably trivial question, but I could not find an answer. I have this query, which works fine: $query = db_select('books, 't'); $query ->fields('t', ['publication_year']) ->...
-3
votes
1answer
42 views

Login link in menu showing to logged-in user [closed]

On a Drupal 7 site, I created a login link on the main menu with the path user/login. For some reason, the link remains visible to users that are already logged in. I thought this link is supposed to ...
0
votes
2answers
29 views

Hide one form element until another is selected

Is there any way to disable the field 'model_article_nr' until 'model' is selected this is what i have and as it is now i can select 'model_article_nr' before i have choosen a model which leads to ...
0
votes
1answer
15 views

Specify the URL

I'm creating an API service using Services (Drupal 7) and would like to create an URL like /api/avu/v1/{id}. I have api in Path to endpoint and in hook_services_resources() I have $resources['avu'] ...
0
votes
1answer
22 views

Admin page to show 2 blocks (or page+block) with 1 filter that affects both blocks

I am new to Drupal and would love some guidance on how best to achieve the following: An admin page that has (top-down): - a date selector, defaulting to today's date - a section displaying Arrivals ...
1
vote
0answers
16 views

EntityQuery with fieldcondition of link field

I have a field called field_url which is of type link. I want to query and fetch all those nodes which have field_url value like eg. www.google.com. I tried using the below code: $query = new ...
0
votes
0answers
10 views

Reinitialize views ajax after embedding a view

I have installed an ajax_links_api module, which basically allows you to load pages via ajax. I got everything to work, however, there is an issue with views. In my view I have infinite scroll and ...
0
votes
0answers
20 views

Should I use queue processing and poormans cron at the same time?

So for a drupal 7 site, I am using Ultimate Cron module to manage cron jobs. I'm using crontab to set the schedule. I am also using poormans cron launched by the serial launcher. However, on the ...
0
votes
1answer
77 views

Force download string as text file

I'm trying to return the results of a db_query as a raw text file. The php solution uses header() to instruct browsers to download content. I've attempted using header() in an AJAX callback function, ...
1
vote
1answer
26 views

How to render translated node body in two languages?

I use entity_translation to translate node body field, so in a fully loaded node object body is an array of 2 languages ('en' and 'ru'). For specific node type I would like to render body in both ...
0
votes
0answers
11 views

Webform default views missing “In Code”

I was looking in the error logs, and I realized that users cannot view submissions of webforms. I then realized that the webform views webform_analysis, webform_results, and webform_submissions were ...
0
votes
0answers
35 views

Sort handler with relationship

I added 2 views fields to make available the witdh and height of images using the information provided by the file_entity module. This works and I can show the values. Now I want to make both fields ...
0
votes
1answer
27 views

Create a modal popup

I want to show a modal popup in drupal 7. On searching the web I came to know that it can be done using the ctools module itself. Here is the code I tried: function codeexpertz_menu() { $items['...
-1
votes
1answer
35 views

Show a content type's subfield instead of the default title in Drupal 7 when using an Entity Reference field

I am editing a large Drupal 7 website. In a part of this site, decisions are shown. Each decision can contain related decisions. There is a custom content type decision, in which there is a field that ...
2
votes
1answer
23 views

User register endpoint showing notifications

I'm trying to setup an endpoint for a 3rd party app to allow users to be created on my site through a REST endpoint, which is mostly working so far, although, I've just navigated to my site through ...