All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

How to show shipping service before VAT in summary?

Normally in carts the total amount incl VAT is the last line and VAT is the second last line. Or anyhow that is how I want my cart to look. But when I add a shipping service it appears after the VAT, ...
0
votes
0answers
6 views

Encountered an error when visiting “Contexts” and “Content” under Panelizer Wizard [on hold]

When modifying Content Type - Edit Default Panelizer, I've faced an issue when I visiting "Contexts" and "Content". [ === PHP Fatal error: Declaration of Drupal\panelizer\Plugin\PanelsPattern\...
2
votes
1answer
3k views

How to add Admin approval on webform submitted data in drupal 7

I have the functionality that when any anonymous user submits a webform, then I display the submitted webform data in my new page, but I need admin approval before that submitted data displays on ...
1
vote
1answer
448 views

Node ID is not appearing

I am working on creating a view based on nid in Drupal 8. I cannot find node id or nid listed - I see Entity id. I am trying to set up a contextual filter so only certain node fields (node type B) ...
2
votes
1answer
397 views

Add the same field multiple times to a display suite node display

So I'm using display suite with a 2-column layout, and my node has an entity reference field (field_journal). I'm already displaying field_journal as a rendered entity in the LH column, but I'd also ...
0
votes
1answer
678 views

InvalidArgumentException: Cannot redirect to an empty URL. in Symfony

Pages are not shwoing up. They display the follwoing error: InvalidArgumentException: Cannot redirect to an empty URL. in Symfony\Component\HttpFoundation\RedirectResponse->setTargetUrl() (line 86 of ...
2
votes
2answers
336 views

resolved - Order total field, transactions and balance

In drupal commerce, using the commerce payment payment module, I would like to display the amount paid and order balance in paid order like on the example below. Subtotal ------------- 20 TAX ...
0
votes
1answer
362 views

Taxonomy terms with associated nodes: display page by page navigation in node page?

Hi i have a content type called Product and have fields(title,description,code,image) and also have vocabulary categories like below formate parent term 1 -child term 1 --sub child term 1.1 ...
1
vote
1answer
387 views

Views PHP date filter using $row data not returning any results

I am trying to filter my view by using a date range so that it shows all the activities at an event: Activity Start >= Event End & Activity End <= Event Start To do this I have set up a view ...
0
votes
1answer
338 views

Drupal 7 Views Custom Join in an External Database

I am trying to join two tables in a second database (they are both in the same database, db2). I am trying to join tablename to tablename2 on the field tablename.ItemID = tablename2.ItemID. While the ...
-2
votes
0answers
12 views

Show related content by taxonomoy term and limit a maximum of 2 content links by each taxonomy term

I am able to show related content by taxonomy terms tagged on that particular node. The next feature I looking for is to be able to limit a maximum of 2 links for each taxonomy terms. Ex. Node 1 has ...
0
votes
0answers
10 views

How to create a custom token from the parent entity of a comment for the Message module?

I have a site with Drupal, as well as the modules "Message" and "Token". I created a custom module based on the module "Message example". It is possible to create comments on several types of ...
0
votes
1answer
21 views

How do I include data from the order item type fields in the order receipt email?

I have created an "Event Registration" product type and order item type. In the order item type, I added fields for the registrant's name and job title. How can I print the submitted values for those ...
1
vote
1answer
390 views

Adding two contextual filters (Content : nid)

I want to display two type of contents : News and Events. So I added them in the filters criteria. This works great. Now I want them to be further filtered on the basis of the category the News and ...
2
votes
1answer
512 views

How to implement Drupal ajax API on non links and not form submit

There are many examples how to make ajax form submits and also many examples how to make drupal ajax links. But how to attach ajax click events for example on <button> or <div> elements?
1
vote
1answer
379 views

How do I set the options for a programatically created content type?

For example, if I want to set 'Publishing options - Promoted to front page' to 0 in a .install file when creating a new content type. I've looked in the variable table, where I was expecting to see ...
2
votes
1answer
276 views

Why does loadMultiple load 1000 nodes 5.5 times faster than loading each single node one by one?

I have always known that loading multiple nodes at the same time is faster than loading a single node many times. What I wasn't aware of, is the huge performance difference between the two ways of ...
0
votes
0answers
6 views

JSONPath Feed Import looks right but not creating nodes?

Using a Feed Importer with the JSONPath parser, I'm stumped as to how I can import the JSON objects as nodes with mapped fields. Here's the JSON that gets returned: [ [ "Label", "...
2
votes
1answer
1k views

How to set a validation error via ajax?

I am using the formapi to create a form. On one of my fields I have an #ajax call. When the field is changed I call the function. I recreate the form and then replace the whole form on the page. This ...
1
vote
1answer
22 views

Prevent clubbing of server side error messages on top

I have inline form errors module enabled on my drupal 8 site. The server-side errors that appear on form submission are appearing as clubbed together like below: How to change this error language and ...
0
votes
2answers
129 views

Custom Entity: define a view in entity reference field

I defined a custom entity and for a entity reference field I want to set the view reference widget and a view/ display to be used instead of an autocomplete. I tried many different settings - nothing ...
0
votes
1answer
21 views

How can I add a pager to the top of a forum?

I am using the standard forum module that comes with Drupal 8. The problem is, when I view a forum node, it shows the pager the bottom. I want the pager to also appear at the top. The closest I've ...
1
vote
1answer
340 views

How can I enable search on parts of a word and autocomplete suggestions?

I'm using Search API in Drupal 8. I tried with Search API pages and even views, but I didn't find %like% function query Can I do %like% in Search API or Views?
-3
votes
0answers
18 views

How to show/hide div based on the radio button selection in form alter

I have a content type, having a field with radio buttons. Radio button describes a list of the interest. Field Name: field_interest Field Type: Select List (checkbox-radio enabled in the form display ...
0
votes
0answers
9 views

How to use webform tokens in mimemail Twig templates

I'm trying to send webform confirmation emails via mimemail. I managed to trigger the correct template file, but my problem is: How can I pass certain webform submission_values into the twig file of ...
0
votes
0answers
18 views

How can I migrate an Amazon S3 bucket to into Drupal?

SCENARIO I currently have a bucket where all my images are hosted and stored. I currently display them by simply using URLs that link to the images (i.e https://[bucketName].s3.amazonaws.com/[...
0
votes
0answers
19 views

How can I use an if-else-statement to conditionally display or hide field collection items?

How can I use if then condition to display filed collection items I have a filed collection with 3 filed time. The max limit of the filed array is 3 in another word [0-2]; Filed name: - television ...
0
votes
0answers
26 views

How can I add sub-items to a tray?

I've successfully added an item to the the admin toolbar and now would like to create a drop down menu from that (i.e. the way Manage > Structure drops down Content Types, etc.) This is how I've ...
0
votes
0answers
8 views

Have can I have a view grouped by nested hierarchy?

I have a nested taxonomy as follows: Some forms will only have the taxonomy of "Basic Forms", some will have taxonomy of "overtime forms", etc. So I want my Forms view to look like this example: How ...
0
votes
1answer
350 views

Link field title from entity/route

I have a Drupal link field configured to allow both internal and external links and have the title field enabled, but optional. I want users to be able to reference internal entities without having ...
2
votes
3answers
802 views

How to create a Search API search box that redirects you to the search page

I am using Drupal 8 and the Search API. I have created a search page using the API and views (basically modified the view that came prebuilt when you install the search API). Everything works as ...
0
votes
1answer
336 views

ahah helper populate dependent dropdown

I am using the ahah helper as I couldn't seem to get my dropdown lists to depend on each other anyother way in Drupal 6. Below is my code, I can hard code the changes so that the second dropdown ...
7
votes
1answer
1k views
+50

How do I translate theme settings?

How do you translate custom theme settings in Drupal 8? I use hook_form_system_theme_settings_alter to add custom settings to a theme. One setting is the text string (e.g. 'Menu') to display beside ...
0
votes
0answers
23 views

Site complete loss of styling and not saving settings

I recreated a D7 site on EC2 for a client. After importing the database all seemed well until I refreshed and all the styling had disappeared. I thought it was because I clicked on the HTML Purifier ...
0
votes
1answer
418 views

Drush error on Mac

I installed Drush using Composer globally but when I try to clear the cache I get the following: No Drupal site found, only 'drush' cache was cleared. [warning] 'all' cache was cleared. [...
1
vote
1answer
340 views

Leaflet library not avaliable even though it's in sites/all/libraries

I've seen people talking about hook_library() etc., but I'm not creating a custom module, I'm trying to use Leaflet. In the browser I get the error message: L is not defined From leaflet.drupal.js ...
0
votes
0answers
20 views

How to create a custom token for the Message module?

I have a site with Drupal, as well as the modules "Message" and "Token". I created a custom module based on the module "Message example". I created for entities, a display mode called ...
0
votes
0answers
14 views

Only allow 1 discount using commerce_discount

I am having trouble finding out how to only allow 1 discount per order. eg. a specific user role allows 15% discount on their order. We also have another discount set up that applies a further 15% on ...
0
votes
1answer
15 views

Node Reference Argument In loadByProperties() while Creating API

I have a custom module which generates an API, I want the API to filter content based on a node reference field. How do I pass the field field_author(Entity Reference from another content type) field ...
0
votes
0answers
13 views

Completely delete an entityqueue config

I'm trying in my module uninstall hook to delete a config of an entityqueue which is created by the module myModule. entityqueue.entity_queue.my_entityq.yml : langcode: en status: true dependencies: ...
0
votes
1answer
418 views

Add an enddate to my date field programmatically

I'm using the date field contrib module and added it to my custom module which creates a content type and its fields. I've successfully added a field(+instance) of date with a popupcalendar to my ...
0
votes
2answers
417 views

How to hide field if blank

I have a view created which has a column 'Price'. I also I have another column 'Special Price' in the same view, but 'exclude from display' is selected. In views, click the price field > rewrite ...
1
vote
2answers
340 views

Drush dl not working on Ubuntu with postgresql backend

modules can be added manually, but drush dl or drush en produce errors and will not download a module database section from settings.php $databases['default']['default'] = array( 'driver' => '...
0
votes
1answer
347 views

Install multiple apps on a Bitnami stack

I am currently transitioning from my Ubuntu 16..04 LAMP Server to a Bitnami 7.59 Drupalstack. However, I discovered that Bitnami does NOT provide instructions / FAQ on how to install multiple Drupal ...
-3
votes
0answers
12 views

Display only last value checked from a related node

I have a view where I display different users (Profiles). On the other hand I have Content Type which has a field related to those Profiles. Moreover I have a check field (Yes/No) in that Content Type....
0
votes
0answers
5 views

managed_file - get ajax_submit of Upload/Remove button

I have a managed_file form field. Is there a way to add more functionality to the Upload/Remove buttons of that field, like modifying the ajax_submit of these buttons? For example, if the Remove ...
-2
votes
0answers
14 views

How to make dropdown in front view drupal 8 [on hold]

i have developed drupl8 site .How to make city dropdown? Not for a menu dropdown.
5
votes
1answer
5k views

How can I make the taxonomy terms appear in a drop down list?

How to make the taxonomy term in drop down list? Vocabul Drupal 6 taxonomy term in drop down list while creating new article. Drupal 8 taxonomy term can't show drop down list while creating new ...
0
votes
1answer
22 views

Permissions Rebuild fails

After I installed a quiz module on my Drupal 7 site, it asked me to rebuild permissions. when I try to rebuild it throws this error: I've tried everything that I found online, including: increasing ...
0
votes
1answer
374 views

Node is not created, but nid is returned

I have this code in my module. $node = new stdClass(); $node->title = "YOUR TITLE"; $node->type = "page"; node_object_prepare($node); $node->language = 'it'; $node->uid = 1; ...

15 30 50 per page