Questions tagged [drupal]

Drupal is an open source CMS framework written in PHP. *IMPORTANT* Rather than using this tag, consider posting your question directly on https://drupal.stackexchange.com/. Also, because of substantial differences between major versions, consider using either the drupal-6, drupal-7 or drupal-8 tags.

6,697 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
31votes
1answer
270views

How do I force the use of the desktop menu when the grid is fluid?

I'm using Drupal 7 and Omega 3. The front page of my website needs an image that covers only the top half of the page, and it needs to expand to full width regardless of the browser size. I found ...
user avatar
  • 699
10votes
0answers
196views

IEF reference show parent field as title using Auto Entity Label

I am new to Drupal 8 want to add a field value to IEF reference title. for now I am using Auto Entity Label version 2.x-dev to automatically generate title for my Entities but when it comes to IEF ...
user avatar
  • 418
9votes
1answer
2kviews

How do I discount the original sell price based on the quantity of either one OR all the products in the cart?

How do I discount ALL products in the cart based on the quantity of any and/or all products purchased? For example, when the user buys a totale of 10 products (any combination of products), the ...
user avatar
  • 699
8votes
1answer
267views

The Devel module query log doesn't appear in a custom theme

The Devel module query log appears correctly (at the bottom of the page) when I use one of the default themes, but not when I switch to my custom theme. The query log seems to appear within the inner ...
user avatar
  • 1,627
6votes
1answer
304views

Can't import LDAP query feed data

I've set up an LDAP query that successfully pulls all data from the field physicaldeliveryofficename from our Windows Active Directory: I also setup a View that uses the query to further refine the ...
user avatar
6votes
1answer
414views

Solr for Arabic PDF's

I am trying to search arabic PDFs in Apache Solr. The problem appears to be that Tika indexes the PDF in reverse order (Left-to-right) instead of (Right-to-left). I have found references about this ...
user avatar
6votes
3answers
4kviews

I need an example on attaching a field collection to a form

I have some field collections that are attached to a node type and I am in the process of writing a custom form, using Drupal's Form API. How do I go about loading these field collection fields into ...
user avatar
  • 55
6votes
1answer
5kviews

Why doesn't the view use the database table I defined in hook_views_data()?

I have a problem with my module views integration. I need to provide information about user who added video and timestamp. Video field is a CCK Embedded Media Field and it stores in ...
user avatar
  • 603
5votes
0answers
335views

Is there a solution to converting a nunjucks .njk file to a twig php file?

Currently trying to find/build a process that allows me to take .njk files from USWDS and convert them into php twig files for a Drupal 8 project. (Now, at this current point in time they are ...
user avatar
5votes
0answers
249views

How to use POST method in Drupal 8 Views Rest Export?

Drupal 8 supports REST API exports in GET method. But How can define POST method in views rest export api? #Drupal8 #views
user avatar
5votes
0answers
702views

Updating modules and core ERROR filename, directory name, or volume label syntax is incorrect

I looked at similar questions but I could not find the answer. Context: Windows 10, XAMPP, Git, Composer, Drush 8 and Drupal 8. When I try to use: (For modules and themes update) drush pm-update ...
user avatar
  • 1,474
5votes
2answers
203views

Drupal CKEditor image2 plugin only works after reloading wyiwyg

I'm using CKEditor with media 2 and image2. When I insert an image with media the markup is <p><mediawrapper data=""><img alt="" class="file-default media-element" data-fid="3" data-...
user avatar
  • 1,666
5votes
2answers
1kviews

Tabs in a block

I want to create a block which contains the $tabs from page.tpl.php /** * Implements hook_block_info(). */ function mymodule_block_info() { $blocks['tabs'] = array( 'info' => t('Tabs in ...
user avatar
  • 592
5votes
1answer
2kviews

Aborted errors in Firebug when loading a Drupal 7 page via https

Everyone in our web development unit get Firebug "Aborted" errors on random css, js and image objects when we load one of our Drupal 7 sites in https (and a force-refresh). We don't know when the ...
user avatar
5votes
1answer
719views

Is there a way to build a ushahidi like website using WordPress or Drupal?

I would like to know if there is some Drupal module or a WordPress plugin that enables the creation of a ushahidi type website (Ushahidi is a non-profit software company that develops free and open ...
user avatar
  • 23.3k
5votes
5answers
335views

What is the error in the below Query?

I have written the below query in Drupal6. $sql = "SELECT registryvalue FROM {muln_registry} WHERE fk_applicationid = %d AND registrykey = '%s'"; $result = db_result(db_query($...
user avatar
  • 5,028
4votes
0answers
945views

cmder SSL verification - how to add to local store?

I am trying to install Drupal Vm via Cmder. When I run 'Vagrant up;' command I get the following error: Installing plugin vagrant-vbguest **ERROR: SSL verification error at depth 1: unable to get ...
user avatar
  • 111
4votes
0answers
263views

Uncaught TypeError: dialEl.mathquill is not a function

I am trying to integrate a formula editor into a custom plugin and I am encountering this problem (see attached file). Any solutions? error
user avatar
  • 43
4votes
1answer
448views

How to enter list of tags longer than 1024 characters in Drupal 8

How can I increase maximum limit of characters for tags field? or any other "Entity reference" field The problem is, when I create content I can not enter keywords in that field once I have reached ...
user avatar
  • 41
4votes
2answers
1kviews

Drupal 8 view works in preview but not showing on page

I am using Drupal 8. I have created a simple view. It is designed so that content with a taxonomy term (category) has a contextual filter. I am wanting that a user can click on a category in an a ...
user avatar
  • 3,761
4votes
1answer
69views

help_hook() Is not Dispaying Help icon on Drupal 7 Module Menu

I am Trying To Add Help Button On Module Menu . I have Doing Lots Off R&D but Failed . BTW Here is My Code my_first_module.info name = My Module description = embedded Video Comment core = 7.x ...
user avatar
4votes
1answer
132views

Get the background-image url from an lower div to add them to an higher div

Im trying to put a background-image url of an lower div and add them to an higher div. The problem is, there are many lower divs with background-images and all of them has the same classname. Overall ...
user avatar
4votes
1answer
479views

How remove the newest content from Drupal View, when exposed filter is activated?

I have trouble figuring out how to make Drupal 7 view do what I want. I have experience with Drupal, but not much in php coding itself. What I use: Druapl 7, View 3, Entity, Date What I did: I ...
user avatar
  • 41
4votes
0answers
3kviews

Drupal "HTTP request status Fails" error

I am getting a drupal error on status report. The Error: HTTPRL - Core drupal_http_request() Your system or network configuration does not allow Drupal to access web pages. This could be due ...
user avatar
4votes
1answer
161views

How to force addition of Product B in order to add product A in Drupal 7?

I am looking for an easy way to associate two products with each other on checkout while at the same time forcing the user to create the association if it doesn't exist yet. Basically, a user can by ...
user avatar
  • 14.8k
4votes
2answers
758views

CKEditor image properties tabs disappear

I'm having an issue with CKEditor regarding image properties. Spent many hours investigating this but ended up without solution. I'm using Drupal 7 with the latest CKEditor AND IMCE. When I click ...
user avatar
  • 61
4votes
1answer
183views

SCORM Integration With local DB

I have a PHP web application, I need to integrate SCORM with my application.I know that there is cloud option for integrating SCORM. But our requirement is that saving course details into our local DB....
user avatar
4votes
1answer
307views

Post to Drupal using facebook account through Rest Server

I have a Drupal 7 with Services 3 module install. I enabled Rest Server and was able to login and post content using Rest calls. Now I want to allow Facebook users to login and post content through ...
user avatar
4votes
1answer
3kviews

Drupal 7 - Creating view of hierarchical content using Taxonomy or content-type

I'm trying to create a custom view in Drupal 7 that acts as a landing page for content. I've created a taxonomy group called Expertise Areas which is a hierarchical list of categories - like so: ...
user avatar
  • 51
4votes
2answers
2kviews

drupal 7 not rendering custom region

My issue is that I added a new region to my .info file for a second sidebar. After, I attached blocks to it in the structure > blocks area. Lastly in the page.tpl I had it render it via <?php ...
user avatar
4votes
1answer
59views

Drupal 6: Related "Locations" using Views

I have a custom field (field_locations ) which lists 20 different locations. I would like to use that field as an argument to obtain a block view that lists similar/related locations. Any idea on ...
user avatar
4votes
1answer
677views

Is there any jquery sort plugin like drupal taxonomy terms

I like the feature in sorting in drupal's taxonomy like this: http://drupal.org/project/nodeorder or if you already have experience editing taxonomy in drupal 7. It provides a tree/directory like ...
user avatar
4votes
0answers
682views

JAWS - Submitted form in iframe reads source URL even though there is a title

I'm developing a form that is displayed in an iframe. When the form is first displayed (on click) I add a title to the iframe, and JAWS reads everything nicely. When the form is submitted with errors, ...
user avatar
  • 691
4votes
3answers
3kviews

Drupal: Parent-child draggable table

So I've been going at this one for a while now. I'm trying to create a draggable table that has a parent-child relationship, but where the children cannot be moved out of the parent group, and all of ...
user avatar
  • 10.8k
4votes
1answer
1kviews

Drupal AHAH, Dynamic form expansion

Form $form['animal'] = array( '#type' => 'select', '#title' => t('Animal'), '#options' => load_animals(), '#ahah' => array( 'event' => 'change', 'path' ...
user avatar
  • 2,172
4votes
1answer
1kviews

How to time-delay email deliveries?

I'm currently learning about the Drupal email functions, such as drupal_mail and hook_mail, and hook_mail_alter, and I have a problem before me where I'll need to be able to queue emails for delayed ...
user avatar
  • 621
3votes
0answers
217views

how can I set a session variable in Drupal 8 and get it in a php script?

I'm working in a custom module for drupal 8. I have a form and I'm trying to send by means of a submit button some data from my custom module to another php script file: $form['submit2'] = [ '#...
user avatar
  • 31
3votes
0answers
713views

The "paragraph" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition()

On Drupal 8.8.8 with paragraphs:^1.12, getting this error: The "paragraph" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() Same error with other ...
user avatar
3votes
0answers
240views

File Upload using Drupal 8 Rest API but getting boundary error in Postman

Can you please let me know how can I upload any type of file from Drupal Rest API? I am using OAuth2 for Authorization but getting Boundary error when I am uploading file from Postman. Any help ...
user avatar
3votes
0answers
314views

graphql elemMatch query in gatsby not returning data

I have been using drupal 8 as backend which provides json data for my gatsby frontend. Everything is working as expected except one portion. I have a query like this inside one of my pages: export ...
user avatar
3votes
2answers
1kviews

How to change the color of a Bootswatch theme?

I have a Drupal 8 site with the following Bootstrap 3 theme : https://bootswatch.com/3/flatly/ This theme is very good but the colors do not match my site. I like the colors of the following theme :...
user avatar
  • 115
3votes
0answers
1kviews

Drupal 8 Sortable Table without SQL Query

I created a Drupal custom module that grabs information from an array and then displays the information in a table. I'm trying to make the headers of the table sortable. The issue I'm having is the ...
user avatar
  • 397
3votes
0answers
744views

How to fix Drupal update: 7082 - Add 'jquery-extend-3.4.0.js' to the 'jquery' library

I want to make an core update from Drupal 7.62 to Drupal 7.67 (you can find the releases here). I have followed the steps in in this manual. In step 11 i ran the http://hostname/update.php and ...
user avatar
  • 3,453
3votes
1answer
471views

Install Drupal database in specific PostGreSQL schema

I want to install & setup my Drupal databases in a specific schema of the PostgreSQL database. For example, let's say I have created a schema named "test_drupal" in my existing PostGreSQL database ...
user avatar
  • 4,205
3votes
1answer
185views

node_save in Drupal has issues while storing the values to MySQL database

I got an issue in node_save in Drupal. Below is my code: function retrax_notify_create(){ $nodeId = array(); $nodeObj = new stdClass(); // We create a new node object $nodeObj->...
user avatar
3votes
0answers
279views

Trying to get property of non-object from drupal gt

I am new to Drupal 8. When I create a custom theme from Drupal gt on mac I get an error. Enter the new theme name []: > test Enter the theme machine name [test]: > test Enter the theme Path [...
user avatar
  • 31
3votes
1answer
2kviews

Filter Entity Reference View with dynamic arguments from Reference Field

I need to filter an "Entity Reference View" autocomplete widget by passing arguments from a "Reference Field" in my content type. I researched on this and found that PHP Code type Contextual Filter ...
user avatar
  • 339
3votes
1answer
123views

How to print similar value of arrays?

I've got an array of arrays that may have a different value and maybe the same values. i want to print common values of array ... thanks for your helps Process of array : foreach($array[0]['#items'...
user avatar
3votes
0answers
49views

Unable to execute any query in drupal 7 for oracle database connectivity

I am trying to install drupal on Oracle 11g database. I have successfully connected to Oracle DB and the option is showing in Drupal Installation page. Post logging into DB using the details given in ...
user avatar
3votes
0answers
234views

Drupal Sites Hacked Hosted on Godaddy

We have hosted all our sites on Godaddy.com but all of the sites started redirecting to different websites/URLs. After doing lots of research we found out that a script was added in html.tpl.php ...
user avatar

15 30 50 per page
1
2 3 4 5
134