Bóthar - Helping poverty-stricken families to solve their problems, permanently

Home page of Bóthar website - helping people to help themselves

Bóthar have a trustworthy reputation for taking action on international aid that provides poverty-stricken families with the means to solve their problems, permanently.  They help ensure families overcome hunger, malnutrition and poverty in a simple sustainable manner by donating animals, trees, bio gas and water systems to families throughout the world. 

Sectors: 
Non-profit

Small CSS corrections

I have made a sub-theme of Bootstrap 3 and want to alter some small CSS default settings. I need help for that. I make use of the Asset Injector module.

- I have several jpg-files. How can I make a header carousel of them?
- If I want to make the height or width bigger from the header, how can I do this?

I am convinced this is just a small piece of code.
But how can I find it out?

Admin site settings form - The Drupal way?

When I build website using Drupal I always have to do an admin page where the site owners can set site settings (or configurations), such as telephone numbers, emails, address, social media settings etc etc. Usually what I do is create a content type called 'admin' then I'll add all the fields that I want to store all the certain site settings. I will create a class/service called 'Admin' and load the admin node and add various methods so other services can fetch the stored settings.

Anonymous user sees block but not admin or authenticated user

I have a problem where one block on my content type "homepage" is not showing if a user is Authenticated or admin. 
So in other words everything works fine as long as you don't log in (anonymous user).

Visibility:
Content types: Home Page is checked
Pages are not restricted
Roles are not restricted

In views I duplicated the block display to a page display to try it out and that works fine both when a user is anonymous/Authenticated as well as admin.

Redirect 404 page not found to subdomain

I have archive my drupal 7 site to a subdomain and created a new drupal at site but now all the old links to my site are broken.  I have been trying various .htaccess rewrite rules but everything I try rewrites everything to the subdomain.  

I have tried things like:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) https://archive.heavengallery.com/$1 [L]

or 

Installing Drupal 8.7.2 requires changing 'localhost' to '127.0.0.1' under 'Advanced Options'

When performing a clean install of Drupal 8.7.2, I am getting an error on the Database Setup page related to failing to connect to my database.  This is when using the default settings. 

To resolve the issue, I must go to 'Advanced Options' and change the 'Host'
from: localhost
to:  127.0.0.1

I remember at some point this changed (maybe with PHP 5-7?) and I'm not sure why.

Hopefully this is helpful for anyone else having issues with the default settings.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x