Individual sidebar content

Post Reply
bigboy
Jr. Bludit
Posts: 4
Joined: Fri Jun 12, 2020 11:29 am

My next question:
How can I have for each page different content in the sidebar without hard-coding it?
I am searching a way to not have the same side bar content on every page but individual ones.
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:

You can copy the plugin or plugins and rename them and modify the sidebar with if conditions.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
bigboy
Jr. Bludit
Posts: 4
Joined: Fri Jun 12, 2020 11:29 am

Thank you, Edi, for that fast reply.

In the if condition you mentioned I think I will have to "grab" the page.
What's the best/safest way to do it? In this forum I found different approaches (slug, key). I might need it for a select choice in the admin panel.
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:

bigboy wrote: Tue Jun 16, 2020 1:12 pm What's the best/safest way to do it? In this forum I found different approaches (slug, key).
You can use the slug.
I might need it for a select choice in the admin panel.
There is no plugin for this. You have to write your own plugin or to hard code it.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
bigboy
Jr. Bludit
Posts: 4
Joined: Fri Jun 12, 2020 11:29 am

Edi wrote: Tue Jun 16, 2020 1:18 pm There is no plugin for this. You have to write your own plugin or to hard code it.
I know, I'll try (later!).
Post Reply