Pathauto pattern for Index Pager?

Anyone using clean URLs for the Pager (www.example.com/?page=0) on their site main index, if so how?

Add local tasks on a view display

Hi, I'm trying to add a local task on a view page display, I have already created the view, enabled the module but still don't working, her it's my code:

module_name.links.task.yml

module_name.opentab:
route_name: restorationjobs_myjobs.openjobs
title: 'Open'
base_route: view.my_jobs_dashboard.page_1

module_name.routing.yml

module_name.openjobs:
path: '/my-jobs'
defaults:
requirements:
_access: 'TRUE'

Contextual filters (in a block)

I am a Drupal beginner and have almost no skills with coding, etc.  Fighting my way through this brutal learning curve.

I am basically trying to create a User page from the outside looking in (User A looking at User B's page).

Drupal Site and Admin Pages Slow - Long Wait Time

My Website built on Drupal 8.6.1 CMS takes long time to load, every single page of the site including the Drupal admin panel pages takes about 8-9 seconds to load and appear on the browser. As far as I can identify it might be because of slow server response time. Briefly speaking, the HTML document itself has 5-6 seconds of wait time, i.e. Time to first byte(TTFB) is more than 7000ms, https://www.webpagetest.org/ results First Byte Time is F for my website.

Comments Module is like a Plague!

I have many (Drupal) websites, and Commenting is never allowed in my websites. So, the first thing I have to do on every website - is to remove Comments Module....

Now, on Drupal 8....

Comments Module is enabled by default, and by default added to all Content Types.... To be able to Uninstall Comments Module, you have to Remove Comments fields from all Content types....

Since, with migration, we have many content types..... Comments field is automatically somehow added to ALL Content types.....

Remove size element from input

Hi,

I'm using stable as a parent theme to create a simple theme for my site.

For formatting reasons, I would like to remove the "size" element from all my input.

I tried to add this code in my mytheme.theme file:

function mytheme_form_alter(&$form) {
 $form['input']['#size'] = FALSE;
}

But my size elements are always present.

Do you know what is the track to follow?

Thanks in advance

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x