How to group-by fields in view AND control output via template file

How to group-by fields in view AND control output via template file

I ‘m hitting a brick wall on this one, so trying to reach out for help. I did try to research this but could not find anything helpful. What I have: I have a content type of ‘courses’, which have title, code, credits and semester (semester ranges... read more
How to group-by fields in view AND control output via template file

Authentication cookie in a load balanced environment

Hopefully this is a basic question. I’m going to be setting up a drupal website there there will be multiple servers in back of a load balancer. The user will hit one web server where they will authenticate and the cookie will be added to the browser’s... read more
How to group-by fields in view AND control output via template file

Programmatically get current multi-site instance name

Let’s say I have the following multi-site setup: $sites[‘hello-world-a.com’] = ‘a’; $sites[‘stage.hello-world-a.com’] = ‘a’; $sites[‘dev.hello-world-a.com’] = ‘a’;... read more
How do I display labels in checkbox grid table?

How do I display labels in checkbox grid table?

I managed to create table grid with checkboxes, however I can’t get the label to display in first column. What am I missing, could you guys help ? Thanks! This is what I have in backend Update: Drupal issue:... read more
How to group-by fields in view AND control output via template file

Module requires Composer install of third-party library

I am trying to learn about drupal 8 and composer within aegir. It seems like aegir has some support for it but the problem that I am running into right now is that aegir doesn’t seem to install composer dependencies for modules. For instance, I am using the... read more
How to group-by fields in view AND control output via template file

How to remove a term programmatically from entity reference field using entity browser on translation form?

I have a content type “Articles”, this is a multi-language site, by default the content is created in English, and then translated into Spanish. On new article in English, I set a title and a term for the “Category terms” field, this field is... read more
How to group-by fields in view AND control output via template file

Submission handler for the user registration form doesn’t work

I’m working on a Drupal 7 portal. I added a custom field to the registration form and I would like to get hold of custom field value when the registration form is submitted and before it is stored in the database. I’m trying to use the submission handler... read more
How to group-by fields in view AND control output via template file

Custom sort with search api

I have created a ViewsSort plugin that works on a normal view (like taxonomy_term) but not on a view based on Search API : it is not present when I click on “Add sort” in BO. This sort is used to create a custom order of content types, and I use... read more
How to group-by fields in view AND control output via template file

How do I add the "error" class when a form validation fails?

I’m working with Drupal 7.56 and I am using the Webform module to create a custom form. I used hook_form_alter() in a custom module to add a validation test. function mymodule_form_alter(&$form, &$form_state, $form_id) { if... read more
How to group-by fields in view AND control output via template file

How to use ‘use-ajax’ class with pages created by controller?

I’m trying to use ‘use-ajax’ class to load a page inside a modal box. My Page is dynamically created using node id pass on my page controller My link looks like this Any idea on how can I achieve my goal? read more