Pager with Ajax Content

What is required to include a pager when returning ajax from a controller and or block? 

I have created content with a pager that updated on page load simply by adding the pager api. Something like so - 

return [
  'results' => [
    '#theme' => 'some_theme_template',
    '#nodes' => $nodes,
  ],
  'pager' => [
    '#type' => 'pager',
  ],
];

Custom theme development

Hello,

I want to make a custom theme from the ground up.

I have make all the necessary settings from the documentation and all works fine but here is where the trouble begins..

I don't want to use the front page view which drupal give's me so I disable it.

Right now I work with context module to create the front page but it doesn't work as I have excepted...

Who is the best way to develop my theme?

Any recommendations?

Thanks for advance!

Empty parametres in rest api method

Hi all,

I am strugling with getting my custom rest resource plugin to work with empty params. Here's what I got so far:

Use Drupal only as Blocks frontend

Hi to all,

I'm starting a new project that consists in migrating an old CMS to a new CMS. The new CMS it is not Drupal, but all content are delivered via API, the page structure too. The page structure is a Json file with a set of entries that contains the name of the block and the parameters.

Update version 8.5.6 to 8.57

Hello everyone

sorry for my English.

We use Drupal for the site of our company. It's a great tool!

But we encountered a problem to update Drupal.
Currently the version of Drupal is 8.5.6.
We tried to migrate to 8.6, without success.
So we tried to update to version 8.5.8 (for the security update). The update is going well but it is no longer possible to create or modify a content.
Below is the error message that appears after clicking the "save" button.

Clearing Cache leads to Drupal Site break down theme is crashed

I have my source code in AWS Server (Primary & Secondary with load balance and domain pointed to load balance IP address), Database connected to RDS. If I clear the cache, theme is not coming up . it looks like site broken up and if i restore the backup it is working fine. Please advise.

Thanks,

Prabu.P

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x