Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
18 views

SocialMedia module is not replacing [socialmedia:sm-twitter_username] when sharing to Twitter

When I use the SocialMedia Twitter button, it opens a new window which displays: As you can see, the [socialmedia:sm-twitter_username] token is not being replaced. In the user's profile, there is a ...
1
vote
1answer
28 views

Create Custom Date Formatter for Date Posted Field

I followed a very helpful article by Antonio Benitez that gave some example code showing how to create a custom date formatter for date fields (How To Create a Custom Format for a Date Field). The ...
0
votes
0answers
26 views

drupal_add_js is adding .js file to footer despite me adding 'scope' => 'header'

I want to add an external file to the header. To that affect I copied what others have done and used drupal_add_js();: drupal_add_js('somefile.js', [ 'type' => 'external', 'scope' => '...
0
votes
1answer
19 views

How do I re-order tabs in user page?

I'm developing a drupal 7 based website where the user profiles need some modification. Now I need to know how can I re-order tabs in user profile page such as, View, Edit, etc. i'd like to keep the ...
2
votes
1answer
20 views

How do I target Ajax Loader Throbber in CSS?

I recently installed Ajax Loader and it working great. However, I need some custom styling so, I can display the loading throbber in the center of the screen. I can write my own CSS, But can't find ...
0
votes
1answer
11 views

Add a having condition that makes use of COUNT

I currently have a query that compiles to SELECT n.nid AS nid, field_data_field_date.field_date_value AS incident_date, field_data_field_tweeted_date.field_tweeted_date_value AS tweeted_date, n.nid ...
0
votes
2answers
36 views

How to reformat HTML output of format?

I have looked for days and cannot find an example of what I need to do. I wish to reformat the HTML output ckeditor uses for blockquote. CKEditor output for quote: <blockquote><p>...
0
votes
0answers
20 views

Template suggestion does not work

By debug, these are the suggested names: FILE NAME SUGGESTIONS: * panels-pane--fieldable-panels-pane-top-hero-content.tpl.php x panels-pane--fieldable-panels-pane--uuid-00524104-9c1e-4ee7-a896-...
1
vote
1answer
19 views

How to print H1 instead of H2 for Panel

This is the template currently being used: panels-pane.tpl.php <?php if ($pane_prefix): ?> <?php print $pane_prefix; ?> <?php endif; ?> <div class="<?php print $classes; ?&...
0
votes
1answer
38 views

How do I disable Drupal 7 Theme Debug? “drush vset theme_debug 0” NOT WORKING

I enabled theme debug on my drupal 7 installation using drush vset theme_debug 1, But Now I can't disable theme debug using drush vset theme_debug 0, What the wrong, Is there any wrong or mistakes in ...
0
votes
0answers
24 views

how to not display a sum with value 0 with views aggergation plus module

I'm using views aggregation plus module, doing group and compress from taxonomy fields and haveing a columns sum action, how can i hide sums with zero value? views conditional module do not have any ...
0
votes
0answers
18 views

Simplesamlphp Authentication Login Failing

I had a Drupal 7, IIS7, PHP 5.4 Simplesaml 1.14.7 setup that was working for using the simplesamlphp_auth module for login with my remote IdP. We recently moved servers, so now I am on a Drupal 7, ...
0
votes
0answers
8 views

How to get user-submitted values in hook_field_widget_form after an invalid form sumbission

I'm trying to create a custom widget made up of a text field and a javascript map. When the map is clicked it adds a marker and updates the text field. If the user submits a form with this widget in ...
0
votes
0answers
8 views

Ajax form content security policy

Conversation around: how to set content-security-policy header read and noted https://www.drupal.org/project/csp (Drupal 8 only) mentioned unsafe-inline is mandatory for WYSIWYG edits to work. My ...
0
votes
2answers
36 views

how to implement Ajax callback on form_alter for entity field?

EDITED: I am able to display image for a field dropdown which have entity reference values to another content type. That is when a node content is edited or created. Note: I'm not creating form ...
0
votes
1answer
26 views

How to reference external JS callback in custom module

So I apologize if I mess the terms here up, I'm relatively new to using jQuery in Drupal. I'm trying to implement a custom Google Map application with the V3 API. When I started mocking the module up ...
0
votes
0answers
21 views

How to set #default_value for radio button on Ajax Callback?

I've a form having a radios and 'select list with Ajax callback event'. When user changed selection from the select box, I tried to set the default_value for radio button. but it doesn't work. In the ...
0
votes
1answer
25 views

Remove file pages

Forgive me if this has already been addressed, I searched for it but couldn't find a similar issue. I'm using the file entity module and it automatically generates a page for each of the files. This ...
0
votes
0answers
17 views

Distinct values with only a certain nid

I've been tasked with updating a drupal site for work. One of the errors that has been reported is that the view of a webform submissions is displaying duplicate entries. There are two types of ...
0
votes
0answers
8 views

Canonical URLs not being generated if field is not translated

Using Field Translation (not creating new nodes for locales), the canonical URL using metatag current-page:url:absolute will not generate current lang prefix if fields are not translated. I guess at ...
0
votes
0answers
28 views

Problem creating nodes with shell script output

I am using wmic command to get some details of the server. The output is of multiple language like english, spanish, french, etc and because of the accents it was not showing the characters properly. ...
0
votes
1answer
14 views

Give permission to non-admin user to view and edit list of orders

I am trying to create a role and assign it to a user who can view the admin orders list page and also edit the orders. After adding all the permissions under the order sections in the permissions ...
1
vote
0answers
33 views

Alter the generated composer.json on packages.drupal.org for third-party modules

This question is similar to Support composer_manager AND drupal-composer/drupal-project with contrib module, but I am asking it with a different angle this time. Imo this justifies a separate question,...
0
votes
1answer
27 views

Support composer_manager AND drupal-composer/drupal-project with contrib module

Motivation / use case I maintain the module package https://drupal.org/project/cfr, which currently requires composer_manager to be installed, and where composer_manager is required in the *.info ...
0
votes
0answers
14 views

How To print custom fields of custom product type in my page--product-display.tpl.php file?

I am a beginner in drupal theming, I want to create a special template for my product display custom page drupal 7(page--product-display.tpl.php) I use this php code to render the field but it did't ...
0
votes
1answer
32 views

Howdo I display all the images from a field in a view?

I'm trying to display multiple images from an image field in one view as an Owl Carousel, but I only see a maximum of 5 images to be displayed there. Googleing it, I found that there's an option ALL, ...
0
votes
1answer
14 views

How to get view pager url in node page?

How to get pager url in node page ,actually what i want i am creating a view block with listing of nodes with ajax in view exposed filter,because exposed filter doesnt work without ajax,the problem i ...
0
votes
1answer
37 views

form #type => checkboxes with zero / empty option value

I am building something which uses a form element with '#type' => 'checkboxes'. I want this to be reusable, so it should accept anything as option values that works as a PHP array key (integers ...
1
vote
0answers
26 views

Show copy of website when MySQL is down

I'm curious if there is a module or a way to display a working copy of a Drupal website even when MySQL goes down. While obviously if MySQL goes down, it should be resolved, it would still be nice for ...
0
votes
0answers
12 views

Change form widget depending on role

I have a form open to public anonymous users. They can upload images to the private files directory. Only logged in users editors can see those images. When a new node is submitted by an anonymous, ...
0
votes
0answers
12 views

FillPDF Generating PDFs of 0 bytes when using local PDFtk

We just moved from Scientific Linux to Ubuntu, and as a result have moved from FillPDF Local Server to locally installed PDFtk. All PDFs that are generated are now 0 bytes. There are no related ...
0
votes
0answers
10 views

Removing images from node gives Cannot be modified error

I am using the latest drupal 7 version 7.64 and using multi plupload module for uploading images with drupal's bundled image field. The problem occurs when I try to remove an image then try to save, ...
0
votes
0answers
12 views

How to add a new region to the panel template dynamically?

Is there a way to add any number of regions to panels through IPE(in place editor) or even by defining the number of rows in the layout settings page explicitly? I've searched many panels modules and ...
0
votes
0answers
76 views

What do I need to do to successfully enable Facebook login for my site?

I'm trying to setup Facebook login integration for my Drupal site using the HybridAuth Social login module. It is not working with "Use Strict Mode for Redirect URIs" enabled and I am failing to ...
-1
votes
1answer
26 views

Help with Views Relationships and Entity References [closed]

This is my scenario: I have three content types, Content type A is linked to Content type B with an Entity reference field . Content type C is linked to Content type B with an Entity reference field ...
0
votes
2answers
21 views

Commerce discount rule

Have this scenario, a user must get 10% discount on only these products (product 1 & 2 is defined in rules), if at least 5 items of each is in cart. Cart: 5 pcs product 1 500 5 pcs ...
0
votes
0answers
5 views

Views Search API Filter on Year (date) field with Select List

Using Search API with Solr I am able to use views filters on all fields that are taxonomy getting a full list of the terms. I am trying to use filter on the date field, but am not getting a list of ...
1
vote
1answer
62 views

How do I fix the “The each() function is deprecated” error?

I am using Drupal 7.6.0 on a server with PHP version 7.2.11. I get this error message. Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in ...
0
votes
0answers
5 views

How to synchronize the new panes of a content type in panelizer with the existing nodes?

I have a content type which uses panelizer. I have placed different panes in different regions. Everything is working. I have existing nodes with the same settings. Now I added a anew pane to the ...
0
votes
0answers
18 views

hook_views_pre_render() doesn't get all the values in pager view

I am using views_pre_render hook to edit the result of the view. My view has a pager system and so the $view->result doesn't give the full list of results. If the pager is set to 10 items, only 10 ...
0
votes
0answers
19 views

How can I render Glyphicons?

I am using Drupal 7 and a Bootstrap 3 subtheme; the Icon module is enabled. Glyphicon are not rendered. For example, with the following markup, I just get a rectangle with white borders <span ...
0
votes
1answer
21 views

Does the Transliteration module alter the existing URLs?

I want to install the Transliteration module for a site on Drupal. If I install this module, would it also change existing URLs (if I enabled it in the Pathauto module settings), or would it change ...
3
votes
1answer
73 views

How do I return 500 for fatal errors?

When I am trying to access Drupal and the database is down, it will return a 500 error. However, when I try to access Drupal when Redis is down, it says: Additional uncaught exception thrown while ...
0
votes
0answers
26 views

How do I add data-toggle and data-target to <label>?

I'm using Drupal 7 with Bootstrap 3 theme. I need to add data-toggle and data-target for my checkbox. <label data-toggle="collapse" data-target="#collapseOne"> <input type="checkbox"/> ...
0
votes
1answer
19 views

Geofield (geocode from another field) - database entry not created

On a Drupal 7.63 site, I have a content type with a "Postal Address" field (address module, v7.x-1.3) (mandatory) and a "Geofield" field (geofield module, v7.x-2.4). The geofield field has no input ...
0
votes
0answers
87 views

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. When updating modules

I am getting the below error after updating and activate some modules: An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=323&op=do StatusText: ...
0
votes
0answers
24 views

Is it safe to upgrade all the tables for 4 byte UTF-8 support?

I've a Drupal 7 website and it's a news website. To embed Tweets with smilies in my content, I had to add 4 byte UTF-8 support to the content table, following Multi-byte UTF-8 support in Drupal 7. ...
0
votes
1answer
28 views

Converting seconds to date with Facet API

I've inherited a project that deals with Drupal Facet API. I've got everything working fine, except for the display of the date for events. The filter by date and time >> start date displays the date ...
0
votes
2answers
65 views

Where in The Database does File Usage Data Come From

How does data in file/[id]/usage get compiled? From what tables does it determine a use? Is there a way to track down how/where it gets this data and troubleshoot? Does it take include revision data?...
2
votes
3answers
56 views

How can I remove old articles?

I have a Drupal 7 database that stores articles since 2013. The database is too big and I want to drop all the old articles to keep only the ones created on 2019, just for development purpose. I read ...