Support nested levels/use of content include tags #2320

Closed
opened 2026-02-05 03:39:15 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @sid3windr on GitHub (Jul 14, 2021).

Describe the bug
Multiple layers of page inclusion are not being evaluated correctly.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Create page A with some content.
  2. Create page B with some content, and include page A in it. This will display correctly.
  3. Create page C with some content, and include page B in it.
  4. Page C will have the page C content from step 3, and the page B content from step 2, followed by the {{@123}} inclusion tag for page A, instead of page A's content.

Expected behavior
All pages to be included should be displayed correctly.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): 21.04
  • PHP Version: 7.3.29
  • Hosting Method (Nginx/Apache/Docker): Apache
Originally created by @sid3windr on GitHub (Jul 14, 2021). **Describe the bug** Multiple layers of page inclusion are not being evaluated correctly. **Steps To Reproduce** Steps to reproduce the behavior: 1. Create page A with some content. 2. Create page B with some content, and include page A in it. This will display correctly. 3. Create page C with some content, and include page B in it. 4. Page C will have the page C content from step 3, and the page B content from step 2, followed by the {{@123}} inclusion tag for page A, instead of page A's content. **Expected behavior** All pages to be included should be displayed correctly. **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): 21.04 - PHP Version: 7.3.29 - Hosting Method (Nginx/Apache/Docker): Apache
OVERLORD added the 🔨 Feature Request🏭 Back-End labels 2026-02-05 03:39:15 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 14, 2021):

Related to #1601

@ssddanbrown commented on GitHub (Jul 14, 2021): Related to #1601
Author
Owner

@robertfshort commented on GitHub (Feb 24, 2022):

+1 for this feature

@robertfshort commented on GitHub (Feb 24, 2022): +1 for this feature
Author
Owner

@JoeIzzard commented on GitHub (Aug 24, 2022):

+1 for this

@JoeIzzard commented on GitHub (Aug 24, 2022): +1 for this
Author
Owner

@jasonF1000 commented on GitHub (Mar 27, 2023):

+1 for this feature

@jasonF1000 commented on GitHub (Mar 27, 2023): +1 for this feature
Author
Owner

@deleyva commented on GitHub (Mar 30, 2023):

+1 for this feature

@deleyva commented on GitHub (Mar 30, 2023): +1 for this feature
Author
Owner

@jasonF1000 commented on GitHub (Apr 11, 2023):

Hi,

i think a depth of 3 layers for the page inclusion should be enoght for the most cases.
Is there any implementation Plan in the near Future for this Feature?

Regards,
jason

@jasonF1000 commented on GitHub (Apr 11, 2023): Hi, i think a depth of 3 layers for the page inclusion should be enoght for the most cases. Is there any implementation Plan in the near Future for this Feature? Regards, jason
Author
Owner

@ssddanbrown commented on GitHub (Apr 27, 2023):

Up to three levels of nested has now been added within the work of PR #4192, thanks to @jasonF1000.
Will be part of the next feature release.

@ssddanbrown commented on GitHub (Apr 27, 2023): Up to three levels of nested has now been added within the work of PR #4192, thanks to @jasonF1000. Will be part of the next feature release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2320