Difference between composer and extend to install module

Hello, 

I am trying to play with the module https://www.drupal.org/project/geofield_map

Instruction says to install the module using composer. I do not have composer set up in shared hosting server and I also have to learn how to use composer. All I did was structure > extend> Installed the module. I was able to successfully install the module. 

Document says 

[solved]Localhost problem of copy of production site

Hello,

I make a copy of production site on local. On web, everything is allright.

On localhost, I get this error message

Image src failed to load when move from local to remote server

In my article body, I use IMCE to upload and insert image at local, image's src is "/sites/all/files/imagename.jpg". Everything works fine.

When I move my site to remote server, at mydomain.com/subfolder/othersubfolder, every inline image is broken. To correct, I must adjust their's src to "/subfolder/othersubfolder/sites/all/files/imagename.jpg"

Is there any solution to prevent this happen everytime I upload from local to remote.

Thanks

Installing Commerce fails without allow_url_fopen enabled

[Drupal 8.8.4, Apache, PHP 7.2.26 with a big tick in the Status Report]

I'm trying to install Drupal Commerce the recommended way, using Composer (which is new to me) to ensure all the dependencies are included etc.

[myhost public_html]$ composer require drupal/commerce

When I first tried this, nothing happened. I checked the logs and discovered I need the PHP phar extension enabled. I enabled that, but now the installation won't proceed without enabling allow_url_fopen in the PHP options.

Best way to create a custom page with statistics

I would like to create some statistics: total number of registered users, total number of subscribers, total number of registered users online on website without paid membership and so on.

I'm trying to find out a solution. DRUPAL8.

Create a table in the database with all the statistics I need, after that create a view page with the the information from that table, so I need to write some custom php code in that view with simple queries.

Is this a good approach? There are any rules? I'm new to Drupal, thanks in advance.

API-first then Decoupled much later?

Can I build in API-first approach and still apply the usual approach to drupal theming? Go to production and then in the future (say a year's time) build a JS framework frontend that reads off content from the API-first drupal repository? Thsank you for any direction.

Regards,

Ojchris

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x