All Questions

0
votes
1answer
586 views

Creating a layout with Page Manager

I'm trying to use Panels and Page Manager in Drupal 8. My current versions of each are: Page Manager: 8.x-1.0-alpha23+12-dev Panels: 8.x-3.0-beta4+41-dev My current problem is having no idea how to ...
0
votes
0answers
2 views

Site wide settings versioned & staged

I'm developing a decoupled site and there's some site wide settings, such as logo, social links and others that appear in multiple places so we're looking to have a centralised location to store them ...
0
votes
3answers
473 views

media_gallery images are not opening with proper size

I have set up a media_gallery with colorbox in http://www.mountvilleresorts.com/. The gallery is working fine, but gallery images are shown very small. After opening the images again, they are shown ...
3
votes
2answers
500 views

Strip HTML tags from Field Collections in Services Views

I'm trying to strip the HTML tags from a JSON response I generated using Services Views, but I'm not having any luck so far. I have a content type with a Field Collections field in it that is ...
1
vote
2answers
682 views

Iterate through all children of an element

I have a Drupal code below: function myid_create_template($form, &$form_state){ $form['myid_templates_editor']['#access'] = TRUE; foreach (element_children($form['...
-2
votes
0answers
17 views

Selection, storing, caching of custom fonts

I would like you something about font paths and font caching in Drupal 8 (8.7.2). My aim is to use a custom font, without using the @font-your-face-module. Just for trying out, on my local ...
4
votes
1answer
493 views

Single Signon with Microsoft Outlook Webmail

I am using Drupal-7. I wanted to create Intranet pages where staff/employees can login with their credentials. Is there any way so that they can login with their https://login.microsoftonline.com/ ...
-1
votes
1answer
53 views

Export/import users

I am looking for a way to export users from one Drupal 8 Site into another Drupal 8 site. Is it possible to do this by exporting and importing the Users tables? If so which ones? I see there are ...
0
votes
1answer
841 views

Display date picker not inline in Drupal 7 Forms API

I have installed Date Picker Module and it works fine. Below is the code: $form['date'] = array( '#title' => t('Select your birthdate'), '#type' => 'datepicker', '#date_format' =&...
1
vote
1answer
167 views

Converting UTF8 Data to SQL_ASCII

I want to convert my query results from a database, which is SQL_ASCII database encoded, to UTF-8. $result = $query->execute; $converted_data = array(); foreach($result as $record){ $...
0
votes
1answer
9 views

how to get valid URL in combination of text and field content in VIEWS

Field HOSTNAME returns IP Adress. I have to overwrite the field output . Is there a way to modify this with an given URL like this: 'www.ip-tracker.org/locator/ip-lookup.php?ip=' and adding the field ...
1
vote
1answer
578 views

Why are nodes not saving, and redirecting to edit instead?

When editing a node and attempting to saving it, the user is redirected to the edit form with no error message and the node is not updated. This situation is similar to the problem described in "Nodes ...
0
votes
1answer
36 views

Create the FooTable functionality by using only views

I noticed by using FooTable display on one of my view on a Drupal 8 site, it is increasing the load time of the view by more than 2000 ms. The main idea i am using Footable is because of the ability ...
1
vote
0answers
25 views

How can I apply my own Form API #states to an existing webform?

I have the need to set visibility state of a checkbox option in one question (Table checkbox select) based on the value of another checkbox in the same table. I also have other scenarios where I would ...
0
votes
1answer
12 views

Drupal 8 Quick Start site not reachable

I'm trying to launch a Quick Start distro on macOS with MAMP: [519] : php core/scripts/drupal -vvv --verbose quick-start Select an installation profile [Install with commonly used features pre-...
3
votes
1answer
441 views

Custom form values in hook_form_alter not available in custom validate function Drupal 7

I'm modyfing a node form to add a few extra fields. On submit, I need to program some extra logic to these values then save them to the node object. function module_form_alter(&$form, &$...
1
vote
2answers
17 views

How to let non-admin Role Approve comments?

I'm looking for a way to allow a non-admin user Role to Approve comments. I thought a Flag/Rules combination might be a solution but I can't figure it out. I added a content-moderator role, then ...
0
votes
1answer
483 views

Module webform2pdf modify template

I have sereval webforms et each webform send a mail with a pdf. I would like to do a template for each webform. I use webform2pdf in Drupal 7 to send pdf by email. How can i do that ?
0
votes
1answer
488 views

Ajax form an multi-select

I have a form which provides select2 when the select1 is changed. However I would like select2 to be a multi-select. I can't seem to get this to work. It populates a single select input just fine, but ...
0
votes
1answer
489 views

Drupal 7 Custom Module - Creating a Block with Visibility set to “Only the listed pages”

I have the following code. It does create the block but I still cannot figure out why it is not adding that block to the desired region and also pages visibility settings are not working. What am I ...
0
votes
1answer
871 views

Drush does not work invoking the local Drush

I have installed new D8 on a remote server using this way https://github.com/drupal-composer/drupal-project . I have pulled files from GitHub and I have run 'composer install' for getting the all ...
1
vote
1answer
456 views

How to alter node body content through Views pre render hook?

I have build the view to display node title and node body also I have applied combined fields filter which searches the keyword in title and body and returns the results. While rendering the contents ...
0
votes
1answer
488 views

hook_views_pre_render -> how to access variables

I have a view of teasers, and would like to check the status of each node. Using hook_views_pre_render (in the template.php file of the theme), I can access: $view->style_plugin->row_plugin ...
1
vote
1answer
8 views

Undefined index: und on .tpl.php for content type

How can i fix the error message? the error message is Notice: Undefined index: und in include() (line 9 of /var/www/html/sites/all/modules/custom/theme/icons.tpl.php). my code is: <?php ...
2
votes
1answer
563 views

How to filter taxonomy term in views from URL

I am working on a travel website, and I made taxonomy with depth continent/country/city. I also have taxonomy locations restaurants, museums, nightlife... I have content types destinations and ...
0
votes
1answer
340 views

JavaScript files not loading

The JavaScript files for my theme aren't loading. What am I missing? My theme.info.yml: name: theme type: theme description: Custom theme. core: 8.x base theme: classy version: 8.x-1.0 libraries: -...
4
votes
4answers
4k views

`drush uli` generates correct link but results in 'Access Denied'

I have set up a Drush alias for my website (hosted on a shared hosting), the alias works correctly, because commands like drush status, drush cc all, etc. work. The problem comes with drush uli. It ...
1
vote
1answer
452 views

Infinite Redirect Loop with PURL and spaces_og

I created a calendar feature for organic groups, and tried to enable it in a group with spaces_og. The page refreshes saying changes have been saved but the feature is still disabled. In the logs, ...
0
votes
1answer
460 views

Views Custom Field Handlers tokens

I am using simple views custom field handler. And I would like to make list of custom tokens for this $data array I have. How could I do that? class custom_views_handler_field_hostname extends ...
0
votes
0answers
18 views

custom webform time and date elements id's

Using webform, I have two "Date/time" elements with popup date and timepickers enabled. I have a jQuery script to calculate and display detailed time difference between the values (date and time) ...
0
votes
2answers
463 views

Need to display fields in a different format

I have following fields in my content type: Title: [some value] Year: [2011,2012,2013,2014,2014,2016] Volume: [01,02,03,04,05] Issue: [1,2,3,4,5] Description: [some text] And I want a output display ...
0
votes
1answer
467 views

Multiple blogs per user, each with a blog profile page

I'm trying to to create a site where users upon admin approval, can have multiple blogs, typically differentiated by language. Each blog should have a profile/landing page specific to that blog. I ...
4
votes
2answers
525 views

Contextual filter with hierarchical taxonomy terms

Using contextual filters, I have created a view which shows a page of users at us/california, based on a taxonomy I have made of locations. This taxonomy is hierarchical, though, so when the user ...
0
votes
0answers
14 views

How to set an array of hidden form fields using $form_state->setValues

I want to set hidden fields (permission by field) of a form in Drupal 8. The fields in the form have the names field_pbf_municipality[0]['target_id'] field_pbf_municipality[0]['grant_public'] ...
2
votes
1answer
998 views

How can I allow users to specify image dimensions in CKEditor

I have a use case where content editors have a requirement to specify the height and the width of an image in the image properties. Sticking to styles is not possible because $reasons. The CKEditor ...
0
votes
1answer
27 views

Why isn't my controller returning AccessResult::forbidden()?

I'm working on a node access module. I've set up my logic. I can't seem to get my code to return AccessResult::forbidden(). I can't even get \dpm to run in access method. What am I doing wrong? Below ...
1
vote
1answer
496 views

Is there a way to trigger migration imports from the admin UI?

I want to use module WordPress Migrate to import content from WordPress into my new Drupal 8 website. I can use the module's button "+Add import from WordPress" appearing on page admin/structure/...
1
vote
1answer
10 views

How can I export Image Crop configuration with an Image Style for custom module?

I have a custom module I'm re-using on other projects and I want to include an image style with an image crop configuration. Under the configuration menu, I export a single crop item: langcode: en ...
2
votes
1answer
343 views

Third party library added via composer.json but how can I load it in a module now?

I have set up a module in my Drupal 8 project to handle some tasks I need doing using AWS. I added the awssdk (for PHP) to my composer.json and ran the composer update command successfully. the AWS ...
1
vote
1answer
452 views

How to enable special characters in Drupal Menu?

I am using Drupal5 and Nice Menu Module. I need to provide a URL in my Menu dropdown. There are special characters in it. When I add the complete path it works but on giving the relative path special ...
0
votes
1answer
621 views

domready is not defined

I'm building my own theme to be used with Angular 4 and can't tell where/why Drupal is deciding to import jQuery. Here's the code for my theme, loosely based off this Angular 1 theme: ng.info.yml ...
0
votes
1answer
485 views

SearchApiQuery - possible to remove a filter?

The query parameter that is passed to search_api_query_alter has SearchApiQueryFilter member. It contains a protected array of filter elements. I can add to this by calling the createFilter() and ...
1
vote
0answers
29 views

How can I round up price matrix percentage to two decimals?

I'm looking for a way to round the percentage from Drupal 8 Commerce Shipping Price Matrix module to cents in USD. Is this possible? I found this function in the commerce_shipping_price_matrix/src/ ...
1
vote
2answers
523 views

How to reuses page--front.html.twig for multiple pages

I created a page--front.html.twig which allows me to create a distinctive front page. How would I go about reusing this page to create a landing page, a page with an identical layout the front page ...
0
votes
1answer
455 views

Show node body fields for entity reference checkboxes widget?

I need to show the body field of the nodes next to their checkboxes in an entity reference field widget (default is just their node titles). Is there a way to do that without writing a new widget?
1
vote
1answer
25 views

How to filter a node view on a paragraph field

I have a content type "Lunch" containing a paragraph type field named "Ingredients". This is a multiple values field which store a prapgraph type named "Ingedients" => Taxonomy term + Quantity LUNCH ...
0
votes
2answers
569 views

How do I implement the login, register and “Forgotten password” forms?

I'm trying to implement the three Drupal 8 user forms : login, register account and forgotten password forms. I'm creating custom pages in my module for each one of them because I want to display ...
2
votes
1answer
571 views

Add animation/fade to modal/dialogue box (without using the bootstrap)

The current state of a modal/dialog opening in Drupal 8 (and 7 for that matter) is pretty clunky from a user experience perspect. Leveraging some type of animation/fade would really enhance the ...
1
vote
0answers
6 views

Use generated JWT from Keycloak to authenticate user in Drupal using REST API

We are working on developing a mobile app and users should be able to log in to the app and in our backend Drupal site authenticated from Keycloak. Our main goal is that the user would be able to ...
0
votes
1answer
509 views

How to filter a View by Year and Month with Summaries for each one

or How to remove the exception parameter of a View's contextual filter Hi, In Drupal 7 I have a View with two contextual filters (date field): /view-url/YEAR/MONTH When YEAR is the first argument ...

15 30 50 per page