All Questions

Filter by
Sorted by
Tagged with
-3
votes
1answer
137 views

How to display a vocabulary term list with node count?

How can you display a vocabulary term list with node count? I have a vocabulary named books authors, I want to display a list of the terms which includes the total number of nodes next to each term. ...
-3
votes
1answer
717 views

How to add advanced CKEditor dialog tab for iframe?

<?php namespace Drupal\custom_ckeditor\Plugin\CKEditorPlugin; use Drupal\editor\Entity\Editor; use Drupal\ckeditor\CKEditorPluginBase; /** * Defines the "dialogadvtab" plugin. * * @...
-3
votes
1answer
35 views

display webform table data based on serial no

i want just like for example display hospital based on location webform data from webform storing data of all hospital. How to fetch data from webforms table and display it on page just as searching ...
-3
votes
1answer
61 views

How to consume a web service using username?

I have set up a very simple web service in another server, using plain PHP, which receives data as GET, does a database search, and retrieves a JSON string. From the server where Drupal is installed, ...
-3
votes
1answer
1k views

jQuery ui options not working

hope someone can help, I have a jQuery ui accordion working OK, but I cannot get any options I set to work. I'm not using modules for this, adding jQuery UI in my library, and the accordion itself ...
-3
votes
1answer
117 views

Why Drupal Commerce 2 Installs in a Sub Directory

Why Drupal Commerce 2 Installs in a subdirectory ? Is there any way we can install that in public_html directory so website can be accessed directly through domain ? Edit let me try to clear my ...
-3
votes
2answers
193 views

After failing to remove fontyourface I'm left with PluginNotFoundException

I ran into the error described in this issue when uninstalling the google_fonts_api used by @font-your-face: https://www.drupal.org/node/2916712 I tried going through some manual uninstall steps for ...
-3
votes
1answer
236 views

How to escape square brackets in web forms?

consider the following HTML element in (View) Source page district: '#type':select '#title':District '#attributes': data-district: '[{Test!test!:Test!Test!}]' To my suprise ...
-3
votes
1answer
1k views

Form data get converted into uppercase at the time of saving [closed]

I have big drupal form and when the form get save, at that time I need all form data should be converted into upper case and then should get save.
-3
votes
1answer
717 views

How to get number of node of particular content type? [duplicate]

I have one content type as "refund", I want all number of node of this content type according to month wise, year wise and per day. I can get total number of nodes of refund content type by query but ...
-3
votes
1answer
89 views

how to highlighted clicked taxonomy term

I am using below code : echo "<h1>".Volume."</h1>"; $tid=db_query("SELECT th.tid FROM taxonomy_term_hierarchy th INNER JOIN taxonomy_term_data td ON th.tid=td.tid INNER JOIN ...
-3
votes
1answer
979 views

How do I add captcha validation in my D6 html content type form?

in our Drupal6 site, one of the previous developers created a html form inside of one of the content types, so in the body of the content type, there is thml form code. Users click submit and the ...
-3
votes
1answer
229 views

Filter out script tags in a view but leave link (from user input)

Users of my site will enter their twitter widget code into a field for their profile: <a class="twitter-timeline" href="https://twitter.com/ussername" data-widget-id="400306334257818144">...
-3
votes
1answer
217 views

How to convert the php array format to javascript array format

I uploaded the Beautytips module and I was able with some help from a member of this site to integrate some code into views, but I could not convert the PHP array format into JavaScript format. The ...
-3
votes
2answers
58 views

Php error views template

I am trying to implement this function in my code, to handle language fallback, but it doesn't really work: The content is not in the correct language. I am trying to use field_language('node', $node, ...
-3
votes
1answer
436 views

How can I hide the content to the users who didn't like the Facebook page? [closed]

I need to do a site where the content will be inaccessible to the visitors who have not liked the Facebook page. It is necessary to display a popup with the like button the visitor should use to like ...
-3
votes
2answers
361 views

2 Questions 2 Radio buttons no Loading

I have a website with a webform module. It has got 2 questions with 4 radio buttons each and then a break-page so when someone clicks on one of the radio buttons, it automatically takes them to the ...
-3
votes
1answer
34 views

Displaying menu items? [closed]

I am trying to create a view by pulling in a secondary menu I created. How do I do this? I would like 8 items displayed over two columns (which means 4 items in each column) on the homepage.
-3
votes
2answers
109 views

Page Title in drupal [duplicate]

In my drupal site some places the page titles are not shown.that are the term or a block but not a page.how can i show that title
-3
votes
1answer
335 views

Undefined property: stdClass::$menu in workbench_access_node_presave() [closed]

I'm logged in as user/1 and am using a workbench module. Whenever I unpublish a published revision (using the moderate tab) I am presented with the following errors: Notice: Undefined property: ...
-3
votes
1answer
89 views

Node edit area alterations

In my node edit area there are some hyperlinks exposed by the References Dialog module. I need to alter these links by appending some extra information to the url. Can anyone tell me what hook to ...
-3
votes
1answer
88 views

How to get this hierarchial view [duplicate]

Possible Duplicate: Clean way of building simple taxonomy browser of arbitrary depth Here Bachelor of programme -- Parent hierarchial term Year 1 -- Child term of Bachelor of programme Term 1 --...
-3
votes
1answer
23 views

Using jQuery to hide fields in a view

I have several parent and child taxonomy vocabulary terms in a content view. I would like to hide all of the unrelated child terms when a certain parent is selected. Is there a way I can do this via a ...
-3
votes
1answer
24 views

Why don't my redirects work?

I use redirect module. If I try to redirect from, for example, /theorien/1290 to /lektionen/11, I get a Page not found error after trying to visit /theorien/1290. Redirecting doesn't work for any path....
-3
votes
1answer
57 views

Domain Access Source - Canonical

for now domain access and source set the correct canonical domain and show the links linked to the correct page. I can disable that and the links stay within the domain I’m currently on. Visitors won’...
-3
votes
2answers
64 views

How do I solve this error?

I started facing AJAX issues on my site, due to which I was unable to create views. Googling, I found that updating the Views module might help. I added a new Views module under all/sites/modules/...
-3
votes
2answers
780 views

How to know the menu ID

Like a function to debug a page or something. Want to add a link via links.yml but can't get the menu 'parent' name
-3
votes
1answer
1k views

Drupal 7 dpm an object, but not sure how to render a recursion variable?

In Drupal 7 Views php. I'm trying to render and string replace the content:path field by using a global PHP views field. The issue I'm having is i'm not sure how to reference the content:path field as ...
-3
votes
1answer
392 views

Can I use Moment.js to fix a client side date format issue?

Different Browser and OS show a different date format on client side. Given the following markup: <input data-drupal-selector="edit-field-date-end-value-date" title="Date (e.g. 2019-05-15)" type="...
-3
votes
1answer
984 views

Use a Twig filter to resize / crop images in templates [closed]

I want to use a twig filter to resize/crop images in Drupal 8 templates for responsive images, I know I can generate responsive images with Image Style and Responsive Image styles, but that requires ...
-3
votes
1answer
42 views

How to change a view field programatically

I want to change the result of a view field in a custom module.I’m not sure which of the hooks to use for this there are not a lot of examples of how to use the views hooks for d8
-4
votes
1answer
57 views

How does a developer adopt an orphan module?

Is there any way for a developer to apply for adoption of an orphan module? Some modules like the Views PHP module are still actively used by many sites, but there isn't any active maintainer on it. I ...
-4
votes
1answer
74 views

Is there a solution, allowing to fill a string field by decoding the bar code?

Do you know if is there a solution which would allow to input data to a string field decoding an image with bar code ? That is, there is a field, containing a button. Having pressed at the button, I ...
-4
votes
3answers
2k views

How do I render search block programmatically?

I'd like to render the search block in a twig file.
-4
votes
1answer
100 views

How would one encrypt or protect a Drupal 7 Views Configuration Recipe from prying eyes?

I spent quite a number of days developing a Views configuration recipe and I would like to protect it from other's stealing this by just viewing the Views page. Is there a module or a way to encrypt a ...
-4
votes
1answer
3k views

Do we really need Blog module in Drupal 7 (and 8)? [closed]

In Drupal 7, the Blog module do not have any option to change the URL. Because I want a different URL, I build blogs without the Blog module. For blog pages, I make it using Views and theme ...
-4
votes
1answer
143 views

DATABASE SYSTEM VERSION: The database server version 5.6.41-84.1 is less than the minimum required version 5.7.8

I am trying to run a Drupal Security Update, update.php, but receive an error like this: DATABASE SYSTEM VERSION 5.6.41-84.1 The database server version 5.6.41-84.1 is less than the minimum required ...
-4
votes
2answers
141 views

Is there a single Drush and or Drupal console command to export and import all configurations?

Normally I goto Config Sync then export all > save config tar.gz > import. Can this be achieved with one command?
-4
votes
2answers
638 views

How i can add a refresh button in the views?

How i can add a button to refresh new content in views pages or blocks? like new tweets in twitter's timeline. Thanks
-4
votes
1answer
82 views

Optimize Drupal Composer Workflow via Gitlab

I have the following workflow for one of my product based on Drupal 8: I use three custom private dependencies via composer ( two modules , one theme) , a lot of contrib modules and obviously drupal ...
-4
votes
1answer
24 views

I'm using the media video module, how do I upload alternative webm and mp4 versions?

Server hosted video. Using the core video field. I'd like to put up a webm version, but also a mp4 version encoded for safari. Create a video block with 2 source items <video> <source src=&...
-4
votes
1answer
57 views

How do I integrate third-party payment gateways? [closed]

I need to integrate third-party payment gateways like Razorpay, Payu with Drupal 8 Webform. Is there any way to achieve this?
-4
votes
1answer
67 views

How to limit to certain page with TWIG?

I want this code to appear only when I visit one of the three paths below. How to do this in TWIG ? /product/add/produit or /product/*/edit or /product/*/duplicate The condition below does not work....
-4
votes
1answer
83 views

Multiple Gutenberg blocks in a module [closed]

I've created a custom Gutenberg block and would like to know how to add more within the same module. Some suggested to add JS in MY_CustomModule.libraries.yml, but it does not work. My custom H2 ...
-4
votes
1answer
105 views

Alter the login form [closed]

I am new to Drupal and I need to alter the login form add extra validation fields with adding two more date of birth and email id using hook_form_alter. How do i do this. and how to find the login ...
-4
votes
1answer
40 views

Issues while Updating drupa/slack to 8.x-1.2

The site I am working on is using drupal/slack ^1.2 in composer.json file but the module present in the instance and that in composer.lock is the dev version. I ran a lando composer require drupal/...
-4
votes
1answer
63 views

Expected \Drupal\User\Interface got Drupal\Core\Entity\EntityInterface [closed]

I am trying to load a user and pass it a UserEvent class to simulate an event trigger. $user = \Drupal::entityTypeManager()->getStorage('user')->load($id); However, the Class only accepts ...
-4
votes
1answer
32 views

How to have all options of some menu on the same line?

In the mayo theme I use for my site, I have a footer menu. By default, the options of this menu are displayed vertically: I'd like to have the options displayed horizontally. How can I do that?
-4
votes
1answer
38 views

Calling Drupal Form from non-Drupal 3rd Party Website [closed]

I have an existing non-Drupal 3rd party site and I am trying to submit a form request to a site written in Drupal. For some reason, the request does not process. I'm not familiar with Drupal and would ...
-4
votes
1answer
381 views

Use computed twig to get last item in a multi value composite field [duplicate]

I want to use a computed twig element in a webform to give me the value of the last item in a multi value composite field. the name of the field is destinations, and it has a departure_date field and ...

15 30 50 per page