Redirect the user to login page if user tries to add content

My requirement is like, A authenticated user can add the content. but if the anonymous user tries to add the content, they should be first redirected to login page. If the user is authenticated then the session is redirected to Add content page.

Please help.

Hierarchical and Multiselect faceting

I've been doing a lot of researching the past few days, and I cannot for the life of me figure out how to create a facet block like amazons. 

I believe what I'm looking for is a taxonomy Hierarchical facet, and something for ensuring you can have multiple checkboxes checked within a facet. 

I've been messing with search api, and facets. However, it would seem some features in search api are no longer there. The guides I was going by were all from before search api had removed those features. 

how to put the public file system on a separate disk from web root

I've been searching to find out how to configure the public file system to store files on a disk separate from the web root. The only thing I can find is that the path I use must be within the web root. Any ideas how I can accomplish this?

Lockdown "My Account" with second User Password

I want organizations to create accounts - the head should create a second password to manage "MyAccount" and some other functions. The rest of the side should be accessible with the normal account password as normal members of the organization should still be able to use this account.

Is there a way to implement that?

Problem updating a module

Hi

I installed drupal and have my site running, today I receives a notification that there is an update available.

I'm on a cpanel server, my drupal installation is from softacoulus.

When trying to update I receviced this error.

Assigning integer to D8 form parameters

This is basic to most of you, but starting to convert old D7 modules to D8. I want a basic CRUD form to a non-Drupal database. So I'm building a basic form that will populate values if its parameter is not NULL and a positive number. If NULL then it's a CREATE action.

I'm getting Class Drupal\my_feature\Form\int does not exist ReflectionParameter->getClass()

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x