A Follow Up Question.....

Ceri
Ceri
@adolygwr
5 years ago
370 posts
This is a follow up question to the one I posed in this thread:- https://www.jamroom.net/the-jamroom-network/forum/my_posts/61093/sidebar-in-doc-module

Is it possible to do something similar in other modules using an "if/else" loop?

AND more importantly is it possible to achieve more granular control over the sidebar in modules by creating dedicated sidebars based on tags?

e.g. I would like to create a different sidebar display for a series of blog posts with a specific tag. Let's say I had a series of blogs and I wanted to present a unique sidebar display for all blogs with the tag (for example) "contrib". Is this possible and if so how would I go about it?

I used the "if/else" loop which Paul suggested to make the following sidebar for my Welsh language course:- https://americymru.net/americymru/documentation/nouns

BUT what if I wanted to create a different sidebar which is limited to a subset of these pages whilst leaving the rest as they are? Can I do this by adding some code to the template based on a tag? Also can I do something similar with other modules and in particular the Blog module?


--
Ceri Shaw - AmeriCymru

updated by @adolygwr: 07/21/19 02:30:31PM
michael
@michael
5 years ago
7,714 posts
Yes.

Jamroom is incredibly flexible. There IS a way to do what you want.

The tough part is figuring out what you want, then where to tweak.