Page content section role based visibility control #789

Closed
opened 2026-02-04 22:17:38 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @tiredofit on GitHub (Aug 22, 2018).

Describe the feature you'd like
This would be a feature that based on the users role memberships (let's just use Grades as an example) to show specific content for those with that membership of the role. IE In a learning "library" environment in a Book or chapter called "The Human Body" showed more detail for specific members, shielding it from people who were not of age.

Describe the benefits this feature would bring to BookStack users
This would be very useful in a learning environment, with more and more learners using digital systems to get information that was specific to the topic they were researching.

Originally created by @tiredofit on GitHub (Aug 22, 2018). **Describe the feature you'd like** This would be a feature that based on the users role memberships (let's just use Grades as an example) to show specific content for those with that membership of the role. IE In a learning "library" environment in a Book or chapter called "The Human Body" showed more detail for specific members, shielding it from people who were not of age. **Describe the benefits this feature would bring to BookStack users** This would be very useful in a learning environment, with more and more learners using digital systems to get information that was specific to the topic they were researching.
OVERLORD added the 🔨 Feature Request Question labels 2026-02-04 22:17:38 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Aug 23, 2018):

Hi @tiredofit,
Thanks for this request.
You are already able to set per-role permissions per Book, Chapter or Page which should allow you to control visibility.

Control per-section of the content a page is kind of possible but is not straightforward to use and has limitations since it is a bit of a hacky use of multiple BookStack features but I could detail it if you'd wish.

@ssddanbrown commented on GitHub (Aug 23, 2018): Hi @tiredofit, Thanks for this request. You are already able to set per-role permissions per Book, Chapter or Page which should allow you to control visibility. Control per-section of the content a page is kind of possible but is not straightforward to use and has limitations since it is a bit of a hacky use of multiple BookStack features but I could detail it if you'd wish.
Author
Owner

@tiredofit commented on GitHub (Aug 24, 2018):

Hi @ssddanbrown If you did have some time to unpack even some thoughts on how to go about doing it that would be great! Our usage case for this would be a distance learning school where we would have books and chapters and pages based on topics for learning. Keeping all the content on same page would be fantastic to avoid duplication.

@tiredofit commented on GitHub (Aug 24, 2018): Hi @ssddanbrown If you did have some time to unpack even some thoughts on how to go about doing it that would be great! Our usage case for this would be a distance learning school where we would have books and chapters and pages based on topics for learning. Keeping all the content on same page would be fantastic to avoid duplication.
Author
Owner

@ssddanbrown commented on GitHub (Aug 25, 2018):

Within BookStack you can include sections of other pages, or all page content, within another page using a certain tag. To find this tag select the text of a section and you'll get a popup with a link. Click the 'link' icon on the left and this will show the include tag instead:

image

You can then paste this tag when editing another page to dynamically include the text of that section in any other page. Permissions should be enforced for this include so the tag will not show content unless the viewer has permissions to view the page where the content is being included from.

As I said, Not straightforward but kind of possible.

@ssddanbrown commented on GitHub (Aug 25, 2018): Within BookStack you can include sections of other pages, or all page content, within another page using a certain tag. To find this tag select the text of a section and you'll get a popup with a link. Click the 'link' icon on the left and this will show the include tag instead: ![image](https://user-images.githubusercontent.com/8343178/44617846-c9297980-a862-11e8-8ea8-615cc39a87f9.png) You can then paste this tag when editing another page to dynamically include the text of that section in any other page. Permissions should be enforced for this include so the tag will not show content unless the viewer has permissions to view the page where the content is being included from. As I said, Not straightforward but kind of possible.
Author
Owner

@ssddanbrown commented on GitHub (Dec 12, 2020):

Since it's been a couple of years and this feature request has had little demand, while being something which would be tricky to implement while adding extra complexity to some of the core features of BookStack, I'm going to close this off as out of scope.

Thanks @tiredofit for the original suggestion here and for your continued involvement in the project.

@ssddanbrown commented on GitHub (Dec 12, 2020): Since it's been a couple of years and this feature request has had little demand, while being something which would be tricky to implement while adding extra complexity to some of the core features of BookStack, I'm going to close this off as out of scope. Thanks @tiredofit for the original suggestion here and for your continued involvement in the project.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#789