All Questions

0
votes
1answer
498 views

Replacement pattern for one value of a multivalue field in views

Rewriting the results of a views field, I wonder if there is a way to use a replacement pattern for the first, second and third value of a multivalue field. In my case, as example: I have tried to ...
0
votes
1answer
539 views

How to programmatically create forums and containers (not forum topics)?

I need to create containers and forums using rules. If I use the action "Create new entity" -> "Taxonomy term" I got that by default the new term created is treated as a forum, not a container. How ...
0
votes
1answer
444 views

Displaying parts of main menu in separate blocks

I need to display my main menu in separate blocks: the first sub-menu in one block, and the following two sub-menus in another block. I'm using Drupal's native menu module and also the nice menus ...
0
votes
1answer
437 views

Drupal Facebook Autopost - “user hasn't authorized the application”

I have problem with Facebook Autopost module for Drupal (v. 7.28 here). After node publishing, I'm getting this error: Facebook SDK threw an error: OAuthException: (#200) The user hasn't ...
0
votes
2answers
23 views

How to attach media item created during migration to media field in node

I am migrating content from Drupal 7 to Drupal 8. There is an audio field that I am currently moving to media via a custom process during migration. When I get the id of the new media created I can't ...
0
votes
1answer
457 views

Different front page template for different domains

I have Drupal 7 installation with the Domain Access module. I need to have different page--front.tpl.php templates for some of the subdomains, for example: www.example.com should have one type of ...
0
votes
1answer
14 views

Form with manged_file filed is not submitted?

I have a form in my drupal module. in my form, I have used manged_file field. form name is "difference_form" and I have created two functions. one is "function diffence_form" for form definitions. ...
0
votes
3answers
521 views

receiving incorrect url from amazon s3 module

I am using drupal 7. I have installed amazon s3 module and its dependencies. I have created a bucket for saving my files on amazon server. Everything went good.. But when i try to get the path for the ...
1
vote
1answer
473 views

“Allow multiple values” vs “Allow multiple filter values to work together”

In Views, when adding an Argument for a vocabulary term id, I'm presented with the following 2 options: Allow multiple values If selected, users can enter multiple values in the form of 1+2+3 (for OR)...
1
vote
0answers
33 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 ...
1
vote
2answers
647 views

Update website from 8.0.0 to 8.6.1

I'm pretty new to Drupal and I'm trying to update a website from 8.0.0 to 8.6.1. I've followed the guide here: https://www.drupal.org/docs/8/update/update-core-via-composer The composer part went ...
2
votes
1answer
494 views

Exposed filter list by tags

I have a view, which is listing nodes. I like to exposed filter it by tags (what is a taxonomy). But I like to show tags, what is relevant (has nodes) for the current view. How can I make it?
0
votes
0answers
491 views

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 ...
1
vote
2answers
22 views

How do I let non-admin user approve comments?

I'm looking for a way to allow a non-admin user 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 I ...
0
votes
1answer
16 views

Quick Start site is 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-...
4
votes
1answer
495 views

Single signon with Microsoft Outlook Webmail [on hold]

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

How do I create a custom view filter for an existing field?

I ran into a problem with creating a custom view filter for an existing field for Drupal 8. I mean a filter not for fields like "nid", "title" and so on, but for fields, which were named CCK-fields ...
1
vote
1answer
479 views

Group audience versus group content visibility [on hold]

Can someone explain me what is the difference between group audience and group content visibility?
0
votes
1answer
700 views

Methods to migrate webform data [on hold]

I was wondering if anyone else has done this. I've got webform data I want to take from a Drupal 7 website to another. Having looked at the Migrate module and migrate extras, there is a destination ...
0
votes
2answers
38 views

How do I change drupal_core_path to /public instead of /web?

I use Drupal VM and I have to change the folder from {{ drupal_composer_install_dir }}/web to {{ drupal_composer_install_dir }}/public. When I do it and I run vagrant up, I get this error. An ...
0
votes
1answer
492 views

Redirect to custom error page if node submit fails validation

I've embedded a node/add form on my homepage for submissions but for caching purposes, I need to have any server-side validation occur on a different page instead of itself. I.e. If the form fails ...
1
vote
1answer
25 views

Mismatched entity and/or field definitions for comment field

I have been receiving this message ENTITY/FIELD DEFINITIONS Mismatched entity and/or field definitions The following changes were detected in the entity type and field definitions. Comment The ...
0
votes
0answers
24 views

Why isn't the access check being called at all?

I have the below code. I have set up the business logic and it works fine in a .module file, but not in an access controller. What am I doing wrong? // nodeaccess.routing.yml nodeaccess.people: ...
1
vote
1answer
546 views

RouteNotFoundException when trying to delete a custom entity

I am building a custom component in Drupal 8 that has an entity with child entities i.e., TeamEntity has one or more MeetEntity objects. When I navigate to the "Delete" link for a given MeetEntity, I ...
1
vote
2answers
56 views

How can I print the vocabulary name instead of the referenced term in a node template?

Let's say I have a content type article with a field "taxonomy". The vocabulary is "fruits". The terms are "apple", "orange", "bananas" The article belongs to "orange". I can easily print in my ...
4
votes
1answer
703 views

Send mail notification when node of given type gets created

Use case: a small site where I want to warn all users by mail whenever a new content of a particular type is created. I thought I would try Rules+Actions to handle this. I'm working on a vanilla ...
0
votes
1answer
589 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
9 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
683 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
26 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 ...
-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
10 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
40 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 ...
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, &$...
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
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
11 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 ...

15 30 50 per page