Installationsanleitung für das Bootstrap4-Template
- Alle Dateien aus dem Ordner /new_files/ ins Shoproot kopieren - es werden hierbei KEINE Dateien überschrieben.
(Schritt entfällt bei Installation via MMLC.) - Optional, falls man einen RSS-Feed anbieten möchte: Alle Dateien aus dem Ordner /rss_files/ ins Shoproot laden. Es werden auch hier keine Dateien überschrieben.
(Bei Installation via MMLC ist der RSS-Feed fester Bestandteil.) - Öffne: /templates/bootstrap4/index.html und suche nach allen Vorkommen von:
{if $smarty.const.BS4_STARTPAGE_BOX_CATEGORIES != 'false' && isset($box_CATEGORIES)}{$box_CATEGORIES}{/if}
{if isset($box_CATEGORIES)}{$box_CATEGORIES}{/if}
{if isset($box_BLOGSYSTEM)}{$box_BLOGSYSTEM}{/if}
- Öffne: /templates/bootstrap4/source/boxes.php und suche nach:
require_once(DIR_FS_BOXES . 'categories.php');
require_once(DIR_FS_BOXES . 'blogsystem.php');
- Öffne: /templates/bootstrap4/css/general_bottom.css.php und suche nach:
$css_array[] = DIR_TMPL_CSS.'cookieconsent.css';
$css_array[] = DIR_TMPL_CSS.'blogsystem.css';
- Öffne: /templates/bootstrap4/module/main_content.html und füge ans Ende oder an gewünschter Position ein:
{if isset($BLOGSYSTEM_START)} {$BLOGSYSTEM_START} {/if}
- Öffne: /.htaccess und suche:
##-- Categories (:::)
##-- Blog
RewriteCond %{REQUEST_URI} (.*)::\.([0-9]+)-([0-9]+)\.html$ RewriteRule (.*)::\.([0-9]+)-([0-9]+)\.html$ /blog.php?blog_cat=$2&blog_item=$3 [qsappend,L] RewriteCond %{REQUEST_URI} (.*):.\.([_0-9]+):([_0-9]+)\.html$ RewriteRule (.*):\.\.([_0-9]+):([_0-9]+)\.html$ /blog.php?blog_cat=$2&page=$3 [qsappend,L] RewriteCond %{REQUEST_URI} (.*):\.\.([_0-9]+)\.html$ RewriteRule (.*):\.\.([_0-9]+)\.html$ /blog.php?blog_cat=$2 [qsappend,L]
##-- Categories (---)
##-- Blog
RewriteCond %{REQUEST_URI} (.*)--\.([0-9]+)-([0-9]+)\.html$ RewriteRule (.*)--\.([0-9]+)-([0-9]+)\.html$ /blog.php?blog_cat=$2&blog_item=$3 [qsappend,L] RewriteCond %{REQUEST_URI} (.*)-.\.([_0-9]+)-([_0-9]+)\.html$ RewriteRule (.*)-\.\.([_0-9]+)-([_0-9]+)\.html$ /blog.php?blog_cat=$2&page=$3 [qsappend,L] RewriteCond %{REQUEST_URI} (.*)-\.\.([_0-9]+)\.html$ RewriteRule (.*)-\.\.([_0-9]+)\.html$ /blog.php?blog_cat=$2 [qsappend,L]
- Installiere das Modul im Backend unter MODULE > SYSTEM MODULE > modifiedBlogSystem
- Blog-Kategorien und Beiträge anlegen.