All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
13 views

How to update a field on menu_link_content (added using menu_item_extras module) entity from node form

I have a checkbox field added to one of the menus using Menu Item Extras module. By default, the checkbox is checked and works as expected when I create a menu item via menu admin UI. however, when I ...
0
votes
1answer
13 views

how to have a different page from the front page?

In my site (psa.modares.ac.ir) all my pages are the same as the front page. for example, I have our team block and price table on the front page but I also see them in blog posts or article pages. why ...
0
votes
1answer
8 views

Added menu link not showed in menu configuration

I have a very weird problem. If I add a new menu item, I can do it without any error in the menu configuration page, but the item isn't showed in the menu in this page neither in the menu. If I check ...
0
votes
1answer
12 views

Different shipping $ for west coast

Let me just preface this by saying I know nothing of Drupal. I am a wordpress developer but my company just inherited 2 drupal sites from a company we recently purchased. I am using Drupal 6.25. I ...
0
votes
1answer
22 views

Why does not the preview of the loaded image appear?

When I load an image into a Drupal 8 form, JS errors appear in the console and the file link is not displayed. I have a limit of 10 MB per file in Drupal. If I load an image of 1 MB or less, it works. ...
0
votes
0answers
5 views

Elastic search - Not parsing full stop?

I have used Elastic search connector in my project for Indexing. There is this field named "Body" of "Basic HTML" type. While indexing , In response , Body field is only displaying all texts , ...
0
votes
1answer
17 views

How to deny access if url is changed manually?

Maybe the way I'm doing this is not the correct one but here it goes. I have a page in my site where I have a form. In that form I have a select list that I fill with user ids from a query. So for ...
0
votes
0answers
42 views

How do I fix this version error?

I have a Drupal 8 site that has been installed with Composer. Last week, I updated Search API 1.14 and Search API Solr 3.7. The module are in the good version, but when I run drush updatedb, the ...
0
votes
0answers
11 views

Why are the Layout Discovery core layout templates overriding my custom layout templates?

I've defined this layout in a [mymodule].layouts.yml file; layout_twocol_section: label: 'Two column' path: layouts/twocol template: layout--twocol library: [mymodule]/twocol class: '\...
-3
votes
0answers
27 views

Alternative to FormBase to create D8 form [closed]

Is it possible to use Symfony to create Drupal 8 form api compliant forms? My project needs to generate multipage forms dynamically. While I have successfully created a class which extends FormBase ...
0
votes
1answer
17 views

Drupal 8 og:image and og:image:url

I'm working on a website with Drupal 8 and the metatags module. I need to not output the metatag og:image:url if the og:image exists. If it possible to do using the module? If not I would have to ...
0
votes
0answers
22 views

How to add meta tag to a hook_menu page which return json output?

I have a custom page which I have created using hook_menu $items['list'] = array( 'page callback' => 'page_callback', 'type' => MENU_CALLBACK, 'access arguments' => array('access ...
0
votes
1answer
28 views

How to setup drupal multisite in cpanel?

I want to setup a drupal multisite but without success. I have followed this tutorials (and search in drupal answer): - 2 minutes multisite - 5 minutes multisite - Setting up a multisite I have tried ...
0
votes
0answers
15 views

Problems displaying images on the product display

I have the following problem: I have some variations of products with a color field and another field for weight measurements and a field for images (6 images). Each product variation has 1 image at ...
0
votes
0answers
33 views

I am not able to find the directory structure [on hold]

I have installed the latest version of DrupalVM. Everything is working fine. I am able to access Drupal on my local as well as dashboard of DrupalVM, but in the directory, I am not able to locate the ...
3
votes
1answer
170 views

Why does this route work with a slash and not a dash?

I have defined a custom dynamic route that works, but isn't ideal: /** * Defines dynamic routes. */ class GuideUnitRoutes { /** * {@inheritdoc} */ public function routes() { $...
0
votes
0answers
12 views

Failed to import Bootstrap Paragraph sub module configuration

I tried to implement the Hero with Xeno Hero in the Bootstrap Paragraphs in Drupal 8. I encountered an error when I tried to import the config of the sub module. I am not sure if I do it the right ...
0
votes
0answers
7 views

How do I make a popup video using a video embed field? [closed]

I have installed video embed field and magnific popup module ,i have trouble achieving popup video on click. Moreover once i select the display format to magnific popup in manage display, thumbnail of ...
0
votes
1answer
34 views

Should the Update Manager module be uninstalled when installing with Composer?

Drupal 8 is installed with Composer and I use it to update. So I uninstalled the Update Manager module provided by the core. Now when I go to /admin/reports/status, I have the following warning. ...
0
votes
0answers
38 views

Drupal Queue Item Id in ProcessItem Function [closed]

I developed one custom module which will display a list of entries from my custom table. Now i need to add two buttons on top of the grid as "Clear out Unpublished" , "Clear All" Clear out ...
0
votes
0answers
9 views

Get the name of a Reaction Rule programatically

My module prvides RulesAction plugins (extending RulesActionBase) which can be used by admins when building reaction rules. In some cases the action is not valid and when this happens and the rule is ...
0
votes
1answer
22 views

Javascript not working in body field. Using Full HTML

I have created a basic page. Inserted the following tripAdvisor your rating widget code in that which contains some javascript. Used Full HTML formatting. But instead of displaying the rating widget ...
0
votes
1answer
19 views

Adding an extra class to the last element of the navigation/tree menu

For one of my projects, I have to create a tree menu, with parents and children, that would be used to navigate through the website. The parents are collapsible. Below is the twig file that I am using ...
1
vote
0answers
39 views

Filter a view displaying nodes of one type using a user entity reference field on that node

I have a vocabulary (Countries) listing all countries. I added an entity reference field to the User entity (Nationality) referencing the Countries vocabulary. To the Article content type, I added: ...
0
votes
0answers
13 views

Autoplay variable in settingforms

I am working on slider module in Drupal 8 using jQuery library. But I have little problem. I use default option/plugin of jQuery library like "autoplay": {"enabled": true, "direction": "ltr"} in ...
0
votes
0answers
18 views

Webform block not display

In D8, In Block Layout, Place Block of webform of webform form, but when we see output display empty. Inspect element display span tag data-big-pipe-placeholder-id="callback=Drupal%5Cblock%...
0
votes
0answers
17 views

How get Views data relationship values in one multivalues field?

Sorry for my english, but I struggle with this matter for too long now, and I want to know the proper way to display relationship datas in Views. Assume you have a relationship between data that you ...
0
votes
1answer
25 views

Changing position of the header in a view

I have the "Result summary" in the Header for my view however, it is being displayed at the top of the content. I would like it to be displayed in between the search form and the search results. I ...
0
votes
2answers
77 views

Paginated form with ajax checkboxes throws “The specified #ajax callback is empty or not callable”

Using Drupal 8.7.7 I have a form which consists of a paginated table of users. Each user row has a checkbox element in the form with an ajax event attached. This is essentially to allow me to store ...
3
votes
1answer
92 views

How do I make the same variable available to all my theme files?

In mytheme.theme I have the following: function mytheme_preprocess(&$variables) { $current_path = \Drupal::service('path.current')->getPath(); $result = \Drupal::service('path.alias_manager')...
0
votes
1answer
37 views

How do I compare two strings in a template file?

The template file I am using contains the following code. foo is '{{ foo }}' item.url is '{{ item.url }}' {% if item.url == foo %} equal {% endif %} I was expecting this code to output foo is '...
0
votes
1answer
19 views

InvalidArgumentException: The specified translation (fr) cannot be removed

Configurations: "drupal/core": "8.4.3", "acquia/blt": "8.9.10", "acquia/lightning": "2.2.5", I am trying to run migration of workbench moderation to content moderation on drupal core version 8.4.3, ...
0
votes
0answers
14 views

How to install a distribution on Docker using ddev composer command?

I am new to docker. I have to install openy distribution on docker using ddev CLI. ddev use this command to setup a normal Drupal 8 installation. ddev composer create drupal-composer/drupal-project:8....
1
vote
1answer
29 views

How does routing order / matches effect performance?

I have all the following GET routes defined in my_module.routing.yml: my_module.members_uid: path: 'users/{user}' my_module.members_uid_gid: path: 'users/{user}/group/{group}' my_module.user....
0
votes
0answers
13 views

Additional uncaught exception thrown while handling exception while creating a view [duplicate]

I am new to drupal, Created a website on drupal8 which has multilingual modules enabled and added one language and translated a content type. Created some views on this content type along with other ...
0
votes
0answers
32 views

webform conditionals for checkboxes

I'm trying to make a webform for an email sign up. The organisation has four different newsletter options, in multiple languages. I have each of the newsletters group in a set of checkboxes. What I ...
0
votes
1answer
15 views

Image Upload Issues Same Image Different File Name Always Receive This Error

We are currently working on fine tuning and updating the dev backend of our CMS we're rolling out for a new site. I was familiarizing myself with the new system and uploaded some images in error. I ...
-2
votes
0answers
27 views

Node edit form not saving the path alias

I am working on Drupal 8 node edit form. Logged in a Super User (Administrator with all permissions.) Drupal Version: 8.7.4. The form has a field: URL alias. Any value entered in it is not saving. ...
0
votes
1answer
18 views

How to show status messages in modal window?

Here, I tried many different ways to show status messages in pop window but was not able to get success in any way. So, basically i want to show all the status message of site in modal box whether it ...
0
votes
0answers
26 views

How to display '&' as it is instead of HTML 'amp;' in search autocomplete? [on hold]

I am coming across a strange issue in using Search autocomplete. When I am searching for a word which has & symbol, in autocomplete its showing up as &. In backend views of Node ...
1
vote
0answers
23 views

Remote File Upload with URL Parameters

I'm currently using a digital asset management tool that allows us to host images as a CDN. The DAM allows us to crop and position the image using URL parameters (example: https://embed.widencdn.net/...
0
votes
0answers
28 views

How to programmatically check in module if multisite is used?

Is it possible to easily check with code if a site is running as multisite instance?
-4
votes
0answers
66 views

How do I set and get cookie values via Twig?

What I am trying to achieve is setting a cookie name and value in my page.html.twig, only if this cookie doesn't exist or hold a value already. So usually I do this via PHP. if (!isset($_COOKIE['...
0
votes
1answer
51 views

How do I create and apply a configuration schema for an existing custom module?

I have a custom module, already running for a longer while, but I did not take into account that the configuration would have to support translation. I have had no config/schema/module_name.schema.yml ...
0
votes
1answer
30 views

List of replacement tokens?

Where can I find a list of the available tokens, so I can write things like {{ node.title }} in my templates? The documentation says the best way to find a list of them is to use this: https://www....
0
votes
0answers
20 views

Webform address field order

I have a Webform with address field and other fields as well. Is there a way to alter the order of address field form elements within other fields? If so how can this be done?
0
votes
0answers
47 views

Caching based on roles

How would it be possible to unset the "Cache-Control: must-revalidate, no-cache, private" that drupal adds for logged in users, for a specific role? I want a specific role, to follow the non-...
0
votes
0answers
12 views

using search api solr views, how could i get a list for all discrete values a field

i have created a view, with nodes indexed on solr. My problem is that the view is about a content type, which has a field which is a node reference to another content type. So how in the filter area, ...
-1
votes
1answer
38 views

Installing a module on a separate database

I currently have a Drupal 7 site with a big database. I have to install the Drupal Commerce module and I would like to install the module using a separate database. I know I have to setup the second ...
0
votes
1answer
18 views

VBO: “Change owner” Vs “Change the author of content”

I would like to change the author of a content for a bunch of nodes. So I've chosen Views Bulk Operations (VBO) module to achieve it. Part of it, created a VBO view, but in the VBO options I see "...

15 30 50 per page