All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
326 views

Uploading youtube videos to the site

I would like to be able to upload youtube videos to the new site I am currently building. I would like to have a page which will list ALL the youtube videos uploaded, and then on the homepage, I would ...
0
votes
1answer
379 views

CKEditor “Source” button does not brings back the full html

I have written a full html code <div style="background-color:red">&nbsp;</div> But when I edit the content and click on the "Source" button provided in the CKEditor toolbar. nothing ...
0
votes
1answer
355 views

How to configure drush with Acquia DevDesktop on Windows to access through proxy?

There are some answers to similar questions using WAMP, but now drush is not recommended under Windows (unless using DevDesktop, which I am). And this is seriously frustrating. I followed the ...
2
votes
1answer
392 views

“Content manager: broken/missing”

After upgrading to Drupal 7, all the pictures of the items have disappeared. In the View UI editor, I cannot add an image content and it says "Content manager: broken/missing". Help?
0
votes
0answers
337 views

Programmatically creating nodes populating taxonomy [duplicate]

I have a content type (we'll call it book for this thread) which has an element (we'll call it category for this thread) which is of type 'taxonomy term' ... so in the admin panel (under the '...
0
votes
1answer
500 views

Can't install modules from UI when site placed in subdirectory

I have Drupal 8 installed in a subfolder (www.example.com/drupal), and I have my root .htaccess configured to mask the subfolder (i.e. the URLs resolve to www.example.com; /drupal does not appear in ...
0
votes
1answer
334 views

View does not display attached file without Display field checked

I've got a view that exposes a list of nodes with fields: Title, Publishing date, Attached files. If an attached file has checked the "Display" flag it is visible on the view result, but if the "...
1
vote
2answers
332 views

Restrict delete operation on node refenreced by other nodes

I am using References module to make a node reference in my course content type that reference to school content type (a course belong to one school and a school have many courses). Now what I want ...
0
votes
1answer
31 views

Set new theme setting to default on theme update

Working We have a custom base theme. There are custom theme settings with default values. When the theme is initially installed, the theme settings are correctly set as default. Good. This custom ...
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 ...
1
vote
2answers
509 views

Cloning entities

i have 3 different entities build with help of EntityApi module. They connected with each other with ID column in tables. Entity - "Purchase" Entity - "Catalog" has 'purchase_id' column in table ...
2
votes
3answers
870 views

How to hide specific term/field value on the node?

Is there a way to hide a specific taxonomy terms (specific field values) on the node? (not hiding field/vocabulary altogether, just some values). For instance, there is vocabulary "Location" with a ...
0
votes
0answers
13 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
1answer
346 views

Managed to delete Event_Calendar_Status and cannot reinstate

When trying to get rid of notification emails every time I create a calendar event, I have managed to delete the ?built-in? event calendar status term. I have tried to reinstate it but machine will ...
5
votes
3answers
2k views

Role Hierarchy and Management of Assigned Users

I need to set up a role hierarchy like this: Super Admin - Full permissions, can manage all users and content Regional Manager - can manage only his/her own Store Managers; cannot manage another ...
1
vote
1answer
335 views

How to pass Webform elements from controller to custom twig template

I'm pretty new to Drupal and probably this is simple but I got stuck with this. What I'm trying to do: I have created a custom module where I have defined a custom route to display my webfrom in ...
1
vote
1answer
328 views

Views Bulk Operations skip confirmation

I have defined a custom action for a VBO. function expense_action_info() { return [ 'expense_finalize_action' => [ 'type' => 'node', 'label' => t('Approve and finalize ...
1
vote
3answers
461 views

Uploading file, parsing and displaying data

For a site i am building right now, there is one component that I would want the user to upload a file, where it will be parsed (currently a python script, but can be ported to something else). The ...
0
votes
1answer
401 views

Convert a variable to a string

Using Drupal 8, I have a media field where someone can upload an SVG file. I have this field display set to output as the URL path to the file. I'm trying to get this value as a string (currently it's ...
0
votes
1answer
547 views

Submission of dynamically generated input fields

I have created data entry form using Drupal 8 Webform (Yaml forms), Part of the form is table field which hosts dynamically generted textfields using jquery shown below: $(document).ready(function(){...
-2
votes
0answers
19 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
1
vote
1answer
499 views

Creating Parent-Child Entities

Is there a way to create parent-child entities in Drupal 8? I'm trying to create a structure where the top entity is for County, and the next level entity is for departments, and next level would be ...
3
votes
5answers
4k views

How to check if entity's property has a value

How can I check if entity's property has a value? I don't think this is the "drupal way" to check it like this $page_optimization->title->value() !== '' Is there any method, something like $...
3
votes
2answers
330 views

Set global data like $user

On my project, I have a custom table for some custom permissions for users. I want all permissions for a user loaded on each page like $user. I created a custom module and set the global variable $...
0
votes
4answers
1k views

Inside TWIG Template, how to determine if a paraph is empty or not

I have a paragraph called "Square cta" that I'm using like an old field collection. It has 2 fields in it - a text field (field_cta_text), and an Image (field_square_cta_image). I have a content ...
0
votes
0answers
17 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
2answers
421 views

Querystring in Views ajax_view.js

I'm using Views 7.x-3.11 with Better Exposed Filters and Ajax auto-submit in a panels page, and running into some issues that seem to be stemming from code in Views/js/ajax_view.js. I want to make the ...
1
vote
3answers
1k views

Is it possible to resize image before saving it with media module?

I am building a site using Drupal 7, in which users can upload content in a form, also images. The images will be uploaded and stored with the Media module version 7.x-2.x-dev. I want to allow users ...
0
votes
1answer
366 views

How do I allow same user to vote multiple times in Drupal 7?

I am trying to use the core drupal module for polls. I need to enable every user to vote a predefined number of time. I am not sure if this possible out of the box. If it is not how can I add this ...
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 ...
0
votes
0answers
12 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. ...
0
votes
1answer
327 views

Add class that surrounds all tables (or any other node,field etc…) using preprocess template?

I have been able to find information on adding classes to tables and other items in my pages, however, I cannot find any information on wrapping the entire table for example in a div through the ...
-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
1
vote
1answer
335 views

Adding a validation step via hook_form_FORM_ID_alter()

I am trying to add a custom validation function to an existing form. I am using hook_form_FORM_ID_alter() to edit the form. I am then adding a new function to the #validation array. When I use dpm() ...
21
votes
5answers
27k views

Get all nodes of given type

I would like to get all nodes that are of my_custom_type type in Drupal 8. I know I can get all the nodes (of any type) with \Drupal\node\Entity\Node::loadMultiple() and the list of all types by \...
1
vote
1answer
405 views

What to do for “Login attempt failed for admin.” and “Access denied” to path admin?

In Watchdog, I started seeing several entries like this: Login attempt failed for admin. And access denied 2016/04/04 - 15:06 admin These are generating a fair number of log entries. The IP ...
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 ...
1
vote
1answer
445 views

Setting exposed filter default value from query string

I have a view which show products and an exposed filter block (category, manufacturer, price). I want to set category default value from URL, like this: /browse-products/category-id though, I wrote ...
0
votes
0answers
18 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
1answer
57 views

How to locally export config from a remote environment?

If I have config that's out of sync on production, I may want to export it without copying down the database, or I may have environment-specific config that interferes with exporting config from the ...
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 ...
1
vote
1answer
432 views

Add views block to views header

I want to have the views header elements after exposed filters, so i try to get the filters in the header. For that, i expose them in a block, and try to add that block to headers, but no success. I ...
0
votes
1answer
34 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
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
1answer
344 views

Cannot configure the site as SAML SP with simplesamlphp_auth

I have a functioning SAML IdP, implemented with LemonLDAP::NG. I know it functions because it works with Nextcloud as an SP. I've also successfully configured a DokuWiki SP in the past. The IdP, the ...
0
votes
2answers
48 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
0answers
12 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 ...
1
vote
1answer
1k views

Views “Global: Custom text” field translation

Is it possible to translate this type of Views field? Or use t() function in this field for single words? I'm using i18n and Views Translation, but I can't translate these fields.
0
votes
0answers
18 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". ...

15 30 50 per page