]> BookStack Code Mirror - website/commitdiff
Adjusted include tag location text
authorDan Brown <redacted>
Thu, 4 May 2023 22:39:41 +0000 (23:39 +0100)
committerDan Brown <redacted>
Thu, 4 May 2023 22:39:41 +0000 (23:39 +0100)
content/docs/user/reusing-content.md

index ca688237905d3ed50b9eaba9455f1f88bf38fa0f..549cb06e9c799d112b0c1da978932d64051c2c43 100644 (file)
@@ -60,13 +60,20 @@ In the WYSIWYG editor you can force an ID by going into the source code view and
 
 In the markdown editor you can simply insert HTML with an ID to ensure it does not change:
 
-#### Finding the source of reused content?
-If you would like to edit the content from `{{@5}}`, you can find the content by adding the number behind site/link/
-like this: [https://demo.bookstackapp.com/link/5](https://demo.bookstackapp.com/link/5)
-```
+```markdown
 # Old Content
 Copyright BookStack Enterprises 2020
 
 # Revised with ID
 <p id="bkmrk-include-copyright-text">Copyright BookStack Enterprises 2020</p>
-```
\ No newline at end of file
+```
+
+### Locating Include Tag Target
+
+In some cases, you may come across an include tag and want to locate the page that the tag is targeting to include content from.
+You can do this by making use of BookStack page direct links, which follow the format `<base_url>/link/<page_id>`.
+Take the numeric ID (Located after the `@` but before the `#` if existing) from the include tag then use it as the `<page_id>`
+in that described URL format and you'll be taken to the source page.
+
+As an example if you had the include tag `{{@5#bkmrk-chapter-a}}`, you'd go to the URL path `/link/5`.
+A full example URL, using our demo instance, would be: [https://demo.bookstackapp.com/link/5](https://demo.bookstackapp.com/link/5)
\ No newline at end of file