Hacked website

How do I recover a hacked Drupal site?...The files have been scanned, and reveal two locations where phishing files have been added...under root / profiles and under root / vendor / stack...the files look to be collecting personnel data, login passwords and credit card details for forwarding to an email address...although oddly the site doesn't have a payment gateway...there could be other malicious code in other files that remains undetected, but generally the file directories looks to be in order...not sure if the database has been corrupted.

Want to control pagination quantity in Drupal8.

Hi Guys, 

I want to control pagination quantity in Drupal 8. 

Like, I want this < 1 2 3 > instead of this < 1 2 3 4 5 6 7 > 

How can I achieve this ?

Trying to convert drupal_attributes() to new Attribute()

Hi, 

I'm converting my D7 theme logic to D8. 

I have converted this D7 line: 

return '<div' . drupal_attributes($element['#attributes']) . '>'. $element['#children'] . '</div>';

into this:

return '<div' . new Attribute($element['#attributes']) . '>'. $element['#children'] . '</div>';

But its throwing the error like this:

TypeError: Argument 1 passed to Attribute::__construct() must be of the type int, array given.

Can anyone please help me ?

How to limit max number of pages on pager query?

There are many index pages (very similar to activity tracker) on my site showing listings of different types of nodes. Many of these have pagers that go more than 1000 pages in past.

I do not want this.

I do not want these pagers to navigate to more than  10 or 20 pages. (Pages beyond that are too old)

How do I achieve this? Where should I put the fix in code?

Thanks in advance for any support

Regional Civil Society Observatory (RCSO)

Regional Civil Society Observatory Case Study

An enterprise-grade solution and information hub for providing globally relevant, evidence-based documentation to inform policymaking on gender equality.

Sectors: 
Non-profit

Create Condition node of different content types with Webform Content Creator module

I am using Webform Content Creator module and having two content type News,Blog. With Webform Content creation I need to create two forms and separately assign them in webform content creation then I can create entry with in the respect content type with webform submissions

If i create single Webform with conditional fields (show and hide) and map them differently and create two Content creation entries first with News and second with Blog with correct mapping but when i submit the form it ways goes to first content type which is News.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x