Drupal8

SVG - Scalable Vector Graphics

Putting SVG inside body are unstable. Shows up in texteditor but not on page.

As SVG is pure text you can put it in the text of a node using Source button and with textformat Full HTML.

TESTING THIS AT THE MOMENT


Author
Cord
Last modified
Sunday, 6.December, 2015 - 17:21
Tax

Images

Normal imageformats are accepted like PNG, GIF, JPG, JPEG.

You can change accepted formats in imagefield in content types.

SVG is not a imageformat, but a text/XML format and not accepted so far as we can see.

Author
Cord
Last modified
Sunday, 6.December, 2015 - 17:40
Tax

Apache PHP

Check loaded apache modules in terminal:
sudo apache2ctl -M

Check if .htaccess file is in use

inside .htaccess on first line write TEST
in webbrowser call the site.
if error, then it is in use

PHP
create following code and save in your sites root folder as phpinfo.php
<?
phpinfo();

?>
go to site and run http://(yoursite)/phpinfo.php

Recomended settings:
https://www.drupal.org/requirements/php

in phpinfo page the following should be set:

section   d8 d7
PHP version min 5.5.9 Rec 5.6.5 Min 5.2.5 – rec 5.5.4
core allow_url_fopen must be OFF or nonexistent must be OFF or nonexistent
core display_errors off off
core max_execution_time min 30 seconds min 30 seconds
core expose_php must be OFF or nonexistent must be OFF or nonexistent
core memory_limit 64MB 32MB
ctype ctype functions enabled  
cURL cURL support enabled (avoid 7.35)  
cURL libSSH Version required for install update required for install update
date date/time support enabled enabled
dom DOM/XML enabled enabled
fileinfo fileinfo support enabled  
filter Input Validation and Filtering enabled enabled
gd GD Support enabled enabled
? magic_quotes_gpc must be OFF or nonexistent must be OFF or nonexistent
? magic_quotes_runtime must be disabled or nonexistent must be disabled or nonexistent
? safe_mode must be disabled or nonexistent must be disabled or nonexistent
? register_globals must be OFF or nonexistent must be OFF or nonexistent
hash hash support enabled enabled
json json support enabled enabled
pcre PCRE (Perl Compatible Regular Expressions) Support enabled enabled
pdo PHP Data Objects(PDO) (specific for your database) (specific for your database)
pecl PECL version of PDO not compatible not compatible
session Session Support enabled enabled
session session.auto_start 0 0
session session.cache_limiter nocache nocache
SimpleXML Schema support enabled enabled
SPL SPL support lots lots
Suhosin APC.include-once-override avoid avoid
Tokenizer Tokenizer Support enabled  
XML XML Support enabled enabled
XML XML Namespace Support enabled enabled
Zend OPcache Opcode caching up and running  
Zend OPcache PHP 5.5+ opcache.save_comment 1  
Zend OPcache PHP 5.5+ opcache.load_comments 1  
MODULE TESTING memory_limit 256  
Author
Cord
Last modified
Sunday, 6.December, 2015 - 12:12
Tax

Theming D8

THEME

    Drupal 8 OFFICIAL THEMING GUIDE
    sqndr THEMING GUIDE
    see useful videos
    Creating a Drupal 8 sub-theme

Adding javascript to specific pages

https://www.drupal.org/theme-guide/8/assets Attaching a library to a subset of pages

Javascript depending on PHP info

https://www.drupal.org/theme-guide/8/assets Attaching configurable JavaScript

CDN / externally hosted libraries

https://www.drupal.org/theme-guide/8/assets

Inline JavaScript

https://www.drupal.org/theme-guide/8/assets 

 

Author
Cord
Last modified
Monday, 7.December, 2015 - 09:03
Tax

Menus

admin/structure/menu
create menu

admin/structure/types
select contenttype
manage fields
edit
menu settings
set which menu are available for this content type 

creating content of the content type
menu settings
provide a menu link
select paren item

admin/structure/block
go to (sidebar first
place block
place block on popup list
select visibility on popup window
save block

Author
Cord
Last modified
Sunday, 6.December, 2015 - 12:26
Tax

Drupal Commerce module

Drupal commerce logo

Drupal Commerce is open-source eCommerce software that augments the content management system Drupal. Within the context of a Drupal-based site, Drupal Commerce presents products for purchase; walks customers through the checkout process; keeps track of invoices, receipts, orders, and payments; facilitates shipping and payment; and performs other functions needed by online merchants.

https://drupalcommerce.org/

About Commerce for D8 https://drupalcommerce.org/blog/41591/commerce-2x-stories-update

https://drupalcommerce.org/blog/31782/managing-d8-module-dependencies-new-composer-manager

http://contrib.drupalcommerce.org/#li=MA1-17a65cc36441ad8a&cs=MA1-4aa424e2a3462560b4f8ca97e68b0b31

Author
Cord
Last modified
Sunday, 6.December, 2015 - 12:21
Tax

Themes

Basic core themes are now in site/core/themes

Downloaded themes are in site/themes

You can split the site/themes into /contrib and /custom

Official themeing guide for D8

Creating subtheme https://www.drupal.org/node/2165673

Read more at https://www.lullabot.com/articles/drupal-8-theming-fundamentals-part-1

and https://www.lullabot.com/articles/drupal-8-theming-fundamentals-part-2

 

Author
Cord
Last modified
Monday, 7.December, 2015 - 09:16
Tax

Favicon

Using Bartik, you can set the favicon in appearance > bartik settings

Your own favicon is placed in sites/default/files

Drupal favicon path is core/misc/favicon.ico

If you use your own favicon it shows up on your created pages, but Drupal favicon comes up on edit pages and any admin pages.

Author
Cord
Last modified
Sunday, 6.December, 2015 - 17:25
Tax