All Questions

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

Show multiple drupal 7 'name field' in one view row?

Using this on D7: https://www.drupal.org/project/name The name field is on a 'book' content type. 1-to-many authors. In views, I want to see the name of the book, and the authors. Currently, it ...
0
votes
0answers
3 views

Token Content Access blocks access for author too

I am using the Token Content Access module to hide member created nodes from public view and but allow them to share private links with private links (URL tokens). My problem is when a user restricts ...
1
vote
0answers
7 views

Render HTML in Drupal 8 error messages

I'm working with Twig templates, and often see messages like this in the browser when I make a mistake: The website encountered an unexpected error. Please try again later.</br></br><...
0
votes
0answers
5 views

cant read current user in middleware

i am relatively new to drupal . thus i am trying to make an sso system work . i have this parent domain "domain.com" and the drupal site is running on sub.domain.com  . i can read the cookies and all ....
0
votes
0answers
4 views

Modules to let pro gamers connect with and apply for weekly timeslots of e-sports clans

Hi everyone I am looking for one or several modules that provide the following functionality. public organization profiles for e-sports clans (with website url, postal address, image, description etc....
0
votes
1answer
9 views

Drupal 8 correspondence to node_access function on Drupal 7

I feel like asking a silly question, but here it is anyway: I need to test if a given user (in my case, the logged in, current user) has access to a given node for one of the existing operations (view,...
0
votes
0answers
8 views

8 - Show all values from multivalued flag in one line in Views

I'm very new to drupal (~3 months). I'm creating a PSU site to manage project proposals. One of the pages I'm creating allows the user to view the submitted project proposal, flag/unflag as interest (...
0
votes
0answers
10 views

How to refresh a view after a webform is submitted

I have a webform placed in a block below the webform block I have a view that displays the content now I want to refresh this view after the webform is submitted. The webform is ajax enabled and so is ...
0
votes
0answers
17 views

Popup Message configuration settings menu item missing [closed]

I'm trying to use Popup Message of Drupal 7.x-1.2. I already installed it and enabled. I got a notification that saying I can access it in admin/config/user-interface/popup_message. But upon ...
-2
votes
0answers
16 views

how to make commerce manual payment only working for backofice (administration) and not working on front office [closed]

hello im trying to make drupal 8 commerce manual payment only working from admistration and not wolking from fron office so client cant chose manual payment thanks you
0
votes
0answers
16 views

Conditional Display Suite Fields

In D8, I am trying to use Display Suite Fields to make a Twig field to output a string for anonymous users but this snippet is showing for logged in users as well. {% if not logged_in %} ...field ...
0
votes
1answer
10 views

Problem w/ Migrate Source CSV importing Body content w/ HTML

I am using migrate_source_csv to import node body fields. The header for my CSV file is: "nid, title, body". The body fields contain HTML. My problem is that, on import, the HTML is being encoded into ...
0
votes
0answers
10 views

Fatal error when using some filters or sorting options in admin/content

Using Drupal 8.8.0, multilingual, on localhost (Windows 10, PHP 7.3.12). I have a fatal error on the admin/content page, but only if I use certain options for sorting or filtering the results. ...
-2
votes
0answers
13 views

I would like to display documents on a page [closed]

I have a webform that is collecting data and files of type word and pdfs. I want to build a page to display these documents inline. Also, I want to display a document on a browser window from the ...
0
votes
0answers
16 views

Get argument from current URL in twig to generate a link with that argument

I'm trying to get an argument from search page URL so that I can pass that argument to a link. For example I have this URL for a search results page: http://domain.com/site-search?search_api_fulltext=...
-2
votes
0answers
9 views

How update image select field of webform? [closed]

How can I update the image src field by code in Image Select of a webform
0
votes
0answers
16 views

How to render related nodes by vocabulary X on vocabulary Y terms?

I did many research about related nodes by term. These solutions are good with related nodes by term on node pages but does not work on term pages. Solutions I found: Add "Content: Has taxonomy term ...
0
votes
0answers
19 views

Migration from CSV: how to define a default value for autoincremental id field?

I run migrations from CSV using Migrate Source CSV, Migrate Plus and Migrate Tools modules and it works fine. The result of one of these migration is a custom entity which key is a 'id' field that has ...
0
votes
0answers
6 views

How to fix: error message upon websform save

Webform 7.x-4.20 Views 7.x-3.23 Chaos Tool Suite 7.x-1.15 Able to press add and then get to the options page But once I hit "Save Changes", I get the error: Error The website encountered an ...
0
votes
0answers
11 views

get node by URL alias for APIi

I have added URL alias /the-person in node. I have also created API view which works well with ID, but I want to get it via alias path eg: http://drupaldomain.com/api/v1/person/byaliaspath/the-person,...
0
votes
1answer
19 views

How to define frontend theme (non-admin) for a given node tab route?

In my custom module I want to define a new tab associated with nodes. I have my own custom route file with the required definitions and a Links file to make sure the new route will be displayed as a ...
0
votes
0answers
15 views

How to hide the site name from browser tab?

Is it possible to rewrite what is displayed in the browser's tabs. Fro example when I open some page, in the browser tab it is displayed as "Page name | site_name". For example " About | site_name". ...
0
votes
0answers
12 views

Programatically add new element for each entity reference checkbox in webform

Question: I have an entity reference checkbox and need to programtically add, for each checkbox checked, a textarea. Could anybody give me some advice? I'm looking into composite element if can ...
0
votes
0answers
10 views

Add property labels from address field properties in the view display

I use address field module and added this field to my customer profile (for Drupal Commerce integration). In the form you see decently the labels above the input fields (frontend). After filling in ...
-3
votes
0answers
13 views

Using contact forms with GraphQL in Drupal 8 [closed]

Can someone give me a solution for using forms with GraphQL in Drupal 8? I am willing to use any kind of form (contact, webform...) I just need to send the form to the frontend app and receive the ...
0
votes
0answers
15 views

redirection in htaccess file

I'm working on Drupal7. I want to redirect all the URl's to external domain except some. Below rewrite I have added in .htaccess file and its working fine. RewriteCond %{REQUEST_URI} !/user.*$ ...
0
votes
0answers
6 views

In views use the value of a field in next row, in current row

I would like to use the value of a field in row 2 of a views table output, in row 1 so that I can do some basic math on it. This is what I would like to do; Title | Field_x | Field_y+Field_y(2) | ...
0
votes
1answer
21 views

How to display a table with results when a batch is finished

I could setup a nice batch, everything is working well. But when the batch is finished, I would like to display a beautiful table with the computed results. I could do it with the drupal_set_message ...
0
votes
0answers
15 views

Getting a config_installer not found error after upgrading to Drupal 8.8 when accessing admin/reports/status

After upgrading to Drupal 8.8 via composer I am seeing the following error when accessing admin/reports/status. It seems to point to missing config_installer profile but that profile is found in the ...
0
votes
0answers
11 views

How can I create a menu item and tabs in my view?

Building on How to create views tabs in D8? where the asker gets information on how to turn the different pages in their view into tabs, I would like to also add a menu item for my default tab in the ...
0
votes
2answers
26 views

How do you import a database through lando?

I am trying to setup a site within lando and need to import the database. How do you import a database through lando?
0
votes
2answers
40 views

Can I add and edit a custom entity from the same URL?

I am creating a custom entity called user_profile. Each logged in user will have a user profile. I want to be able to add and edit the user_profile entity from the same URL. The example module ...
0
votes
1answer
14 views

Redirect logged in users to a verification page

We require our users to verify their phone numbers upon creation or number change. If there is no logged in user, they get redirected to the login page no matter what path they type into the browser. ...
0
votes
1answer
15 views

Entity Validator failing Integer for not being integer

I have a custom entity with an integer field with the following baseFieldDefinition: $fields['permission_level'] = BaseFieldDefinition::create('integer') ->setLabel(t("Permission Level")) ...
0
votes
1answer
16 views

Need multiple url paths for single node without redirecting

I have the requirement on our Drupal 7 site where if we have a single node we need to be able to have multiple url paths to reach that node. For instance lets say we have a node with id 1234 ...
-1
votes
0answers
9 views

Custom HTML / CSS Block OR import

For a given Drupal installation, how could one go about either 1.Copying and pasting HTML code to a block (while accurately specifying its required CSS). or Adding REAL RAW HTML5 code of EVERY kind ...
0
votes
1answer
18 views

Display view on all page routes

I would like to display a multi value media field and its file type and size in a content type and display it in a table layout. I thought using a view would be the best way to pull the media file ...
1
vote
1answer
7 views

How to copy/clone menu of a node when clone with Entity Clone module?

When cloning a node using Entity Clone module, the menu link are not copied. As menu link item is created and managed on the node form level, there is no reference of the menu link item in the node ...
-1
votes
0answers
8 views

How to display by code an image generated by geoserver's wms request in a webform field?

I need to show in a webform in drupal 8 an image that is generated from a wms request from geoserver, I have been testing with image select but the src is long and does not assume it completely, also ...
0
votes
1answer
25 views

Altering UserPasswordForm redirect with a custom submit

I want to alter the redirect of UserPasswordForm from Drupal’s core, I did this function maubl_user_form_alter(&$form, FormStateInterface $form_state, $form_id){ switch($form_id) { case '...
0
votes
1answer
22 views

Display the URL of where the content is located in my search results

I'm using SOLR search/search API on my Drupal 8 site and I've set the view to display the following two fields: Content datasource: Title (The title & link to the page) Search: Excerpt (...
0
votes
0answers
16 views

Ajax call in form alter of inline entity form

Inline entity form is using in bricks. In that Inline entity form, there is 2 dropdown fields available . i want to form alter in that Inline entity form, so that selection of one dropdown value, ...
0
votes
0answers
26 views

Create a link to a private file from just a file id?

I am building a controller that returns a rendered HTML Response object to an AJAX request in the theme. I need to display a button that contains a link to a private file. I tried to mimic what the ...
0
votes
1answer
30 views

Add specific CSS class to form elements from the address field

I try to add a custom css class to a form element inside my address field for e.g the postal_code field and another class to the given_name and family_name field. I tried it with a ...
0
votes
1answer
46 views

Run code once on each page load

In the past there were some hooks, such as described here: How to run check on each page load? to execute arbitrary code on each page load. Now this has been replaced with an event based approach. I ...
0
votes
0answers
18 views

Location migration not working

I'm trying to convert a d6 location field into a a d8 geolocation field, but when I run it the field does not get updated, and I don't get any messages either. All of the other node data has been ...
0
votes
0answers
28 views

Get a parent Paragraph's field values from hook_preprocess_field_collection_item()?

I'm trying to update the value of a field within a Field Collection item using hook_preprocess_field_collection_item(&$variables) but the value I need to reference is in a parent Paragraph Entity. ...
0
votes
0answers
10 views

Date difference with taxonomy field

I'm using D8 and I have a little problem with calculating age. I have a taxonomy term "Animal". It has a "name" and "date of birth" field. I have a content type "Test Results". It has a "date of ...
0
votes
1answer
37 views

Error while updating

Updated Drupal from 8.7.8 to 8.8.0 with: composer update --with-dependencies That part went well, but when I run: drush updb I get following error: In ProcessBase.php line 188: Unable to ...
0
votes
0answers
14 views

Lost name attribute after recharge select field with ajax callback [duplicate]

I have a great trouble with ajax callback, I need to recharge a select field, the callback goes right, but, the returned field in ajax request goes without name attribute, so, I lost it while submit ...

15 30 50 per page