Commerce 2 Products and theme help

Hey all!

I’m very new to Drupal so apologies for my ignorance.

I’m working with Drupal 8, Commerce 2 module, and the Dawn theme.

Do one click installs work?

I am using Drupal for the first time.  I am changing hosting providers as my current one (used for non-drupal software) no longer supports Drupal.

Many of the hosting sites listed in the drupal hosting services list use a one click installer.

I have read that composer should be used for installs so there will not be any problems with future modules.

Do these one click installs user composer?

Change the owner of the generated files in the / files directory

Good morning everyone! I noticed that when I replace an image in my drupal site, I upload multimedia or similar files, these are obviously uploaded to some subdirectory of the files directory, and the group and user that owns these files is apache.

The problem is that I use disk quotas in my server centOS 7, and I can not apply restrictions to the user or group of apache since there will be multiple sites on my server (and I think it would be wrong to do so)

Is there a way to change who owns the new files that are generated in the / files directory?

External RESTful API access

It is possible to access our APIs from any external site using AJAX calls in Drupal 8? 

I have been trying to follow this approach, but it is not clear how to access externally the API.

https://www.chapterthree.com/blog/custom-restful-api-drupal-8

Do I need to add something extra to my module routing file? 

when I encountered problem to install site via webui

I tried it with

drush site:install xxx(the profile name)

and it worked fine.

Thanks to drush

just for some one's reference

Show multiple content types in a single page with twig

I have few content types such as news, lead story, events. I want to show those content types in a single page (Front Page and some other pages and that pages may content some static HTML content) with some logic using twig template. As an example I want to show one randomly selected lead story and three news items in a single page. How can I achieve this.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x