This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Exposing a date-based filter in views with a custom table

I have defined a content type which includes a date field. When I use this as an exposed filter in views I get extra settings including "Selection form element" and "Filter granularity".

I have also defined a custom table to views using hook_views_data. This includes a date field defined as follows:

Database data retrive with AJAX

Hello to everyone.

This is my first post on the site so thank you for any help. I am still novice when it comes to Drupal but i try to learn as i am currently in the process of writing new Library site.

My problem:

I am currently working on creating a form(i think it should be form) that is supposed to connect to our Database and retrive all resources. I did it in the buildForm funcion and in result I get the list of all resources. 

Anyone who integration Onepatch with Drupal 8

I am using Wordpress Commerce. Need to integrate inventory system in Drupal 8. We have proposed to use https://onepatch.com/

Anyone having integrations with this? Or better inventory management software that supports wordpress.

Menu in custom module.

Hi, I´m developing a module and I want to create a menu (view?) in this.

My routing .yml

my_module.addcompeticion:
  path: '/sport_tracker/competiciones/añadir_competicion'
  defaults:
    _form: '\Drupal\my_module\Form\AddCompeticionForm'
    _title: 'Añadir Competición'
  requirements:
    _permission: 'añadir competicion'

my_module.listcompeticiones:
  path: '/sport_tracker/competiciones/listado'

  requirements:
    _permission: 'access content'

My links.menu.yml:

Change or edit css style in content view ?

I want to edit the style of content view. I´m using EVA module to attach a view to entity and I´ve created some buttons for this view.

So, I would like to align horizontally these buttons with style flexbox o something similar, but I dont know how to edit the style of this view.

Percentile calculations in php vs. Excel

Hello All,

I'm working on a project that will calculate response times for our fire department. I paid a guy to develop a custom module to calculate the 90th percentile value of an array based on a date filter. All was well until I compared the results to the results I got in Excel using the "percentile" formula. The difference is about :30 secs +/-

No sure where to go from here.... any advice is greatly appreciated!

Jim

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions