All Questions

0
votes
0answers
4 views

.htaccess error on local site in docksal

I've built a Drupal 8.6.4 website within Acquia Dev Desktop, but moved it into a local Docker/Docksal setup to continue working (haven't used it before) - on a mac, if it matters. Everything seems ...
0
votes
0answers
11 views

Grandchild Pathauto from Nodes

I have a node that has a parent_field (entity reference) that if left empty, that node is a parent. If parent_field has data (ie the nodes parent node name) then I can easily add pathauto in there ...
0
votes
0answers
11 views

Rebuild menu after adding a menu item

I am migrating nodes from D7 to D8. For various reasons I am writing my own code to do this. The migration will run on a couple dozen different sites so the solution needs to be as generic as ...
-1
votes
1answer
8 views

can i submit webform 8.5 images and files?

I want to submit files with forms and store a link to it in submission data. specifically i want to add an image to a submission and control its rendering in views. Can I do this with drupal 8? ...
0
votes
0answers
8 views

How to use mmenu 7.2 in Drupal 8 - libraries not detected

I'm trying to use the Mmenu library in Drupal 8.64. Mobile Sliding Menu (mmenu) module successfully installed, libraries installed under /libraries/mmenu/main as per instructions. When I use the ...
3
votes
3answers
44 views

Show if a user is online, idle, or offline on their account page?

I want to display the status of the user on the account page. I added the code below in the .theme file of my theme. It works, but users are never displayed offline. Why ? Is there a mistake ? ...
0
votes
1answer
22 views

How do I automatically generate image styles?

How do I automatically generate different image styles in Drupal 8, for existing images? For example, I have about 10K images in field_image field. I would like to generate thumbnails using my ...
0
votes
0answers
5 views

How do I show webform file in email as text only, not a link to the file

I want to store uploaded files in private file system which users cannot access. How to I show the uploaded file name as text only in a confirmation email instead of a link to the file which they ...
0
votes
0answers
7 views

Is it possible to delete or disable a set of entities via Migration plugin

Currently I have migrated a few taxonomy vocabulary entities whose source type is URL. These are migrated based on a flag. The flag value can change from time to time. The possible values are new/add/...
0
votes
0answers
9 views

Reusing logged in user fields in customer profile?

Is it possible to reuse registered users details in the Customer Profile? e.g. [current-user:display-name] in the default value. I tried this but can't get it to show in the commerce checkout - uses ...
0
votes
0answers
22 views

Can a taxonomy vocabulary entity be disabled or unpublished?

Vocabularies are config entities. I can see the delete link in the UI. In the example vocabulary config yml - taxonomy.vocabulary.blah.yml - uuid: 16ebbc47-16ac-461c-0000-00000000 langcode: en ...
-1
votes
0answers
10 views

Your requirements could not be resolved to an installable set of packages

Could anyone with a lot of composer experience please add a debug workflow for the opaque composer error messages. Like, My website is running smoothly, i can install a lot of things, and then ...
1
vote
0answers
14 views

How to add autocomplete to text_format element?

How can I add autocomplete functionality to a text_format field? I want to do this because I'm trying to create a field which has both autocomplete functionality (auto-suggesting certain configured ...
0
votes
0answers
9 views

Page manager external URL has crashed UI

I accidentally added an external URL as my page URL in page manager. I'm now getting the following error and cannot get back into the Page Manager UI The website encountered an unexpected error. ...
0
votes
0answers
8 views

Raising profile of new Commerce module

I've just released a new module to integrate Drupal Commerce with GoCardless.co.uk. See: https://www.drupal.org/project/commerce_gc_client. Please can someone advise, how can I go about raising the ...
0
votes
0answers
17 views

Many-to-one relationship [on hold]

I am using the JSON Api to get content for my decoupled web app. I have content-types Pages and Sections. 'Section' content-type has Entity reference field to a 'Page'. So that is a one-to-many ...
0
votes
0answers
11 views

control views contextual filter; ajax

I would like to implement a view exposed filter that filters by Year. I need to use ajax. I do not want to create a new field that saves the year as a simple integer and instead use the existing built-...
0
votes
0answers
12 views

Can't select the layout in manage display configuration

I updated my Drupal site from 8.6.3 to 8.6.4. Now I can't select a layout for a content type in "manage display," as shown in the image below. The layouts are template files. Did something ...
-1
votes
1answer
29 views

What is the basic concept behind revisons in term of performance?

On a Drupal 8 project, I am planning to allow revisions to be created for one "content type" which consist of around 40 different fields ! Can someone explain the concept behind on how Drupal save ...
0
votes
0answers
10 views

How to access private page (views page) with authentification in the URL?

All the pages of my site are private (by role). I have nodes and views pages. I want to access to a views page with an external link. But, If the visitor isn't logged, this visitor can't access to the ...
-3
votes
0answers
22 views

Configuration form is not working [on hold]

I am working on views bulk operation in drupal 8 on commerce site. I want to change the status of the order. By view bulk operation. what i have done is i created a .info file and and php file in my ...
0
votes
1answer
21 views

Custom View per page

I need something that I thought is easy to do with drupal: a custom view that lets the user assign a image and a body (the Image will bootstrap-like in back and the text above.), that a moderator ...
1
vote
1answer
19 views

How can I add field to the view?

I have created a view, which displays different content types. I have added some fields for dispalying (image, title, description). The issue for me is that not every node has an image. When it doesnt ...
-1
votes
0answers
18 views

How to resolve How to resolve com.wm.net.NetException: [ISC.0064.9324] Server Error: 503 Service Temporarily Unavailable [on hold]

I am working with my drupal7 site.Am using a third party module to import data to my site.This is a batch operation in my prodcution site.At Some day this have give me an error "com.wm.net....
0
votes
1answer
8 views

How to display a message to a user, with the selections he/she has made from the contextual filter in drupal 7 views?

I have a view with more than one contextual filters. For example, filter on Age, and Gender. if the filter is on Age, and/or gender I would like to display a message to the user regarding the ...
1
vote
1answer
37 views

How to create URL alias for node edit page

Pathauto can create URL alias for node view page, for example, URL from node/nid to project/nid (project is a name of content type), but the link to the edit page is not /project/nid/edit, but /node/...
0
votes
0answers
19 views

Infinite redirect loop with IIS 8.5 [on hold]

After configuring my website, i stuck in a infinite redirect loop. I have 6 domains, example.com is main domain. example1.com, ..., example5.com are forwarding to example.com. Doesn't matter which ...
-2
votes
0answers
14 views

How to update a block_field field programmatically in Paragraph field? [on hold]

i have a block_field field in a paragraph. I would like to update this field programmatically. How can i do that?
1
vote
0answers
21 views

entityQuery where a translation with a different value returns incorrect nodes

The title seems a bit odd, I know, but I couldn't find any issues similar to this and that's the best I could come up with. We are running into an odd instance of entityQuery returning nodes that ...
-1
votes
0answers
10 views

Views showing old and new values

We've just migrated our site from on premise server to aws 4ec2s behind lb. Now we're having strange issue that when user made changes in to a node, which goes into the database. But when views try to ...
0
votes
0answers
30 views

Subscribe to content type creation event

I'm using Drupal 8 (8.6.2). My main objective is to read fields of newly created content type (or changed, it doesn't matter) and create few helper data structures. To achieve this, I'm trying to ...
0
votes
0answers
19 views

How to access the properties in a config entity when loaded by entityTypeManager

Drupal 8 with custom config entity. I have a custom config entity that has various custom properties such as 'product_id'. I am loading the populated config entity like this: $config = $this->...
-1
votes
0answers
18 views

I need a hook to media insert [on hold]

I need to know if exist a hook when some user add a content media in a kind of media type. I tried to use the hook_ENTITY_TYPE_insert() but it doesn't work for media.
-1
votes
0answers
25 views

disable node url access [duplicate]

I have setup my pages in Drupal 8 and setup URL alias for all of my pages. I would like my users to only be able to access the page using the url alias and not the node/3 url. I have seen several ...
0
votes
2answers
35 views

Why can only administrators see blocks?

I'm using the Paragraphs and Block field modules to display a list of nodes within the content of a page. This works great while authoring, but as soon as I log out from the administrator account, the ...
1
vote
1answer
13 views

Field value empty in submitForm

I've got a form field that is empty ("") when I submit my form and I cant figure out where I am going wrong. The field in question is reason - as in the reason why this record is being changed. I also ...
0
votes
1answer
14 views

Sum the value of all nodes fields and display them on the taxonomy page [on hold]

How to get result like on the picture? I created taxonomy term - Coins with two nodes. A field_coin_price is attached to the nodes. Using the View I can easily display the number of coins (nodes) on ...
1
vote
1answer
23 views

The following module is missing from the file system: (Theme name)

In D7, I'm getting many of these warnings: User warning: The following module is missing from the file system: bootstrap_barrio. For information about how to fix this, see the documentation page. ...
2
votes
2answers
41 views

Rendered Webform has no Javascript attached

I've created a simple filter that allows webforms to be rendered anywhere in a node with a tag like this: [webform:machine_name] The code to render the form is as follows: $webform = \Drupal::...
-2
votes
0answers
25 views

Migration of commerce module?

I am trying to migrate Drupal Commerce module from Drupal 7 to Drupal 8. The issue i am facing here is that, in the product content type i have added product reference field. While trying to migrate ...
0
votes
1answer
21 views

How to compare before and after state in whatever_submit($form, &$form_state)

In a custom module, I have a form allowing some Create/Update/Delete data in a specific table of the database. In the submit part of the code, I'd like to compare 'before' state (what was displayed to ...
0
votes
1answer
39 views

How to override other module function/hook from my custom module?

I'm currently working on a custom module which holds a list of organization IDs that will be used to match with an attribute I get from a SAML idP response. I'm currently using the saml_sp SAML ...
0
votes
1answer
24 views

How to display form element and label inline

This must be simple, but I cannot find the answer. I want the label and the textfield on the same line. I tried this: 'odt-filter' => array( '#type' => 'textfield', '#title' => 'Filtra',...
0
votes
0answers
12 views

preprocess views send arguments to facets

I am trying to filter user ip on the template.theme file on drupal 8 and the intention was to filter on user ip and based on the ip add in the correct arguments into the facets that is created in ...
0
votes
0answers
25 views

buildForm is called twice after submit

I try to display a query result on a form with some parameter options. I created a class extending FormBase and wanted to display the results according to the $_POST variables of the form. After ...
0
votes
0answers
22 views

Why is node content is not showing edited value?

In Drupal 7, I changed the value of body field with a new value but after saving the node when the field content is showing in a page, the value was the old one. I have tried cache_clear_all('field:...
0
votes
1answer
24 views

How to get the language code when language name is given

We are creating nodes programmatically on submitting a form. The language of a node is an input value in the form. How can I get the langcode, when I have the Language name? For example, user may ...
0
votes
1answer
23 views

Update programmatically value of field collection item

I want to update a field collection I have the following: function pdf_app_node_presave($node) { if (!$node->is_new) { global $base_url; if($node->type == 'article') { ...
0
votes
0answers
36 views

PHP 7.2 compatibility check (contrib modules) [on hold]

I'm using Drupal 7 and the latest release 7.61 is fully compatible with PHP 7.2, however, I'm using a lot of modules that are no more maintained. How can I check if they are compatible with PHP 7.2? ...
-1
votes
0answers
20 views

How to move field existing content to new field using field collection?

How can I use field collection module from existing field content in drupal 8. I had migrated content from Drupal 6 to Drupal 8 and how can I use field collection. In Drupal 6 I use CCK module to do ...

15 30 50 per page