Is there an easy way to add a number slider (not image) UI widget to a user profile to input integers 1-10

Is there an easy way to add a number (not image) slider UI widget to Drupal 8?

e.g. In the user profile page 'How happy are you today', which will store integers 1-10?

Do I have to start programming/hacking to add a slider in this way or can I do this via the drupal admin interface and or additional modules?

Currently I have a select list with values 1-10 but would like to make this into a slider.

Thanks

Dynamic links in .links.menu.yml

Hi,

I have started creating an example module, at this moment is basically a Hello world.

My intention is to include CodeIgniter views in the module's page. I also want to create a menu in Drupal's admin panel, with links to all the CI controllers.

I know I need to create a .routing.yml file with all the routes, but I have managed to do this dynamically in a PHP class, inside module_name/src/Routing/Routes.php with RouteCollection, and adding a route_callback in the .routing.yml pointing to my class.

Drupal/Ubercart 6x Custom Module Update to 8x

We are looking for someone who can update a custom module for drupal/ubercart 6x to the latest 8x.

Our site is in need of an update. We will provide an already updated installation of Drupal 8x with full access for updating and testing of the module during the testing phase. We just need someone to update it so it works exactly as in 6x, possible with some minor tweaks.

D8 breadcrumbs and active paths wrong for pages untill flush cache

I have a D8.1.3 where the breadcrumbs and active paths are not correct until a cache flush.
Behavior exists when you click through to successive pages
Site is in development so I don't have any caching in performance enabled.

BC Example 1

  • page /news. BC=Home->News (ok)
  • then go to /careers. BP=Home->News (?) / flush cache then BC=Home->Careers

BC Example 2

View template for different blocks in one view

https://api.drupal.org/api/drupal/core!modules!views!views.theme.inc/gro... Reading this gave me some adjustment possibilities what I needed, but not all.

I have one view that has several blocks. Is it possible to use different templates for different view blocks? And what would be the correct naming syntax in that case?

e.g. I would like to have something like views-view-fields--VIEW_NAME--BLOCK_DISPLAY_NAME.html.twig

Delete field collections programmatically in Drupal 8

Is there anyway to delete field collections programmatically in Drupal 8? I have created a field collections and attached it to the user entity in the following method.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x