what I wanted:
- posts on a static page with working pagination
- using a custom template
- different url than "blog"
How-to:
- It´s not required to create a static page. (I assume from WordPress experience that the system is then confused to either use the static page or the internal loop)
- admin > settings > advanced: setup a homepage like explained a few posts earlier. After refreshing that page you see the /blog/ URI filter. leave it as it is. It`s not working when you change the name here as the word "blog" is hardcoded and routed in bl-kernel\boot\rules\60.router.php and leads to confusions with the $where_am_I variable (as far as I got it)
- use htaccess to change the /blog to /posts/ url: (backslash at the end required!)
Code: Select all
RewriteRule blog posts/ [L,R=301]
Code: Select all
if ( $WHERE_AM_I == 'blog') {
include(THEME_DIR_PHP.'yourtemplate.php');
}