Static home page and blog via a menu item ?

User avatar
jeronath
Sr. Bludit
Posts: 37
Joined: Tue Apr 26, 2022 11:54 am
Location: Paris
Has thanked: 3 times
Been thanked: 4 times
Contact:

Hello,

I have created a personal website with Bludit and I would now like to modify the presentation by making the home page a static page and accessing the blog from the menu which would also give access to other static pages.

Is this configuration feasible with Bludit? If so, please tell me clearly what changes to make to the php code! I know a bit about html and css but my knowledge of php is almost nil. And I can't completely understand the general functioning of Bludit.
Thanks in advance to all for your insights!

Jeronath
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 78 times
Contact:

For this you don't need PHP or CSS.

Set the following:
  • Enter the title of your mainpage at "Settings" > "General" > "Advanced" in the field "Homepage".
  • Create a static page "Blog".
Done.

Please be aware that the slug of the static page has to be blog. The title can be modified.
Last edited by Edi on Tue May 09, 2023 10:58 am, edited 1 time in total.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
jeronath
Sr. Bludit
Posts: 37
Joined: Tue Apr 26, 2022 11:54 am
Location: Paris
Has thanked: 3 times
Been thanked: 4 times
Contact:

Thank you Edi for your advice!
But I tried it without success.
I chose a main page as indicated in your article, I created a static page named Blog with the url "slug" and I got a new blog item in the menu but when I write new articles, nothing appears on this new page.
Maybe I didn't understand your explanation...
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 78 times
Contact:

Sorry, my bad! :oops:

The slug has to be blog.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
jeronath
Sr. Bludit
Posts: 37
Joined: Tue Apr 26, 2022 11:54 am
Location: Paris
Has thanked: 3 times
Been thanked: 4 times
Contact:

Thank you Edi for this clarification. Indeed it works if the slug is blog. Thank you! But there is a small problem: the chosen homepage also appears in the blog posts. Is it possible to avoid this?
Thank you in advance for this last clarification.
Nath
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 78 times
Contact:

The chosen blog page has to have the type "static".
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
LucyDemoon
Ssr. Bludit
Posts: 11
Joined: Thu May 18, 2023 7:55 pm

i have similar issue on the home site,

but my blog site have always the last blog entry as titel insted the static page title.

se picture:
Attachments
blog title.png
blog title.png (45.63 KiB) Viewed 2580 times
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 78 times
Contact:

LucyDemoon wrote: Fri May 26, 2023 3:06 pm i have similar issue on the home site,

but my blog site have always the last blog entry as titel insted the static page title.
Can you please give the link to your website.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
LucyDemoon
Ssr. Bludit
Posts: 11
Joined: Thu May 18, 2023 7:55 pm

send it via PM to you
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 78 times
Contact:

I think this has to do with your code of the template home.php.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply