How can add blog section with pages?

Post Reply
elpak
Ssr. Bludit
Posts: 10
Joined: Wed Jan 03, 2018 10:45 am

Fri Feb 16, 2018 9:42 am

How can add blog section with some pages? I'm with default theme
User avatar
Edi
Site Admin
Posts: 1237
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Fri Feb 16, 2018 12:08 pm

By default Bludit is configured as blog. This means new content is shown as posts (status Published at Advanced).

You can add additional pages to the blog as static content. For this you can set the status Static at Advanced.

To show a menu of the static content in the sidebar you have to activate the plugin Static pages.

static-content.png
static-content.png (8.81 KiB) Viewed 682 times
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
elpak
Ssr. Bludit
Posts: 10
Joined: Wed Jan 03, 2018 10:45 am

Sun Feb 18, 2018 11:55 am

How post new content in blog like this site.com/blog/ and site.com/my-new-post-for-something. I want to make same as g3ar .gr/blog
User avatar
Edi
Site Admin
Posts: 1237
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Sun Feb 18, 2018 2:32 pm

This can be done as follows:

1) Add a new content "Blog" (with the friendly URL "blog").

2) Set at "Settings" > "Advanced" > "URL filters" for "Blog" the slug "/blog/" (this is set by default).

3) Add the following rule to the file .htaccess in the root directory of your installation:

Code: Select all

RewriteRule blog blog/ [L,R=301]
With this the file .htaccess will be:

Code: Select all

AddDefaultCharset UTF-8

<IfModule mod_rewrite.c>

# Enable rewrite rules
RewriteEngine on

# Deny direct access to .txt files
RewriteRule ^bl-content/(.*)\.txt$ - [R=404,L]

# All URL process by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php [PT,L]

RewriteRule blog blog/ [L,R=301]

</IfModule>
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
elpak
Ssr. Bludit
Posts: 10
Joined: Wed Jan 03, 2018 10:45 am

Mon Feb 19, 2018 10:09 am

Thank you Edi
elpak
Ssr. Bludit
Posts: 10
Joined: Wed Jan 03, 2018 10:45 am

Mon Feb 19, 2018 1:29 pm

site.com/blog
gives me page not found, I add your code in .htaccess but nothing happened, do you suggest where is the problem?
User avatar
Edi
Site Admin
Posts: 1237
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Mon Feb 19, 2018 2:00 pm

The link is site.com/blog/ with a trailing slash.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
Post Reply