How can add blog section with pages?

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

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

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 5390 times
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
elpak
Sr. Bludit
Posts: 35
Joined: Wed Jan 03, 2018 10:45 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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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>
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
elpak
Sr. Bludit
Posts: 35
Joined: Wed Jan 03, 2018 10:45 am

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

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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

The link is site.com/blog/ with a trailing slash.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply