Reusing Page Content outside of BookStack #3894

Closed
opened 2026-02-05 07:47:42 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @andreapx on GitHub (Jul 3, 2023).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I put in Bookstack all the technical information about our products, so there are a lot of stuff more or less technical in depth.
i also use ToolJet to automatically create a webpage to share with some information that are basically the same that are in BookStack but in a nicely formatted way and automatically created with calculation, etc.
So, is there a way to use the content link ({{@page_id#content_id}}) outside of BookStack to have just the selected text/images without the BookStack frontend that I will get using the full link?

Exact BookStack Version

v22.11.1

Log Content

No response

PHP Version

No response

Hosting Environment

Ubuntu 22.04 with Docker container

Originally created by @andreapx on GitHub (Jul 3, 2023). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I put in Bookstack all the technical information about our products, so there are a lot of stuff more or less technical in depth. i also use ToolJet to automatically create a webpage to share with some information that are basically the same that are in BookStack but in a nicely formatted way and automatically created with calculation, etc. So, is there a way to use the content link (_{{@page_id#content_id}}_) outside of BookStack to have just the selected text/images without the BookStack frontend that I will get using the full link? ### Exact BookStack Version v22.11.1 ### Log Content _No response_ ### PHP Version _No response_ ### Hosting Environment Ubuntu 22.04 with Docker container
OVERLORD added the 🐕 Support label 2026-02-05 07:47:42 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 3, 2023):

So, is there a way to use the content link ({{@page_id#content_id}}) outside of BookStack to have just the selected text/images without the BookStack frontend that I will get using the full link?

Not to the level of getting a specific block.
The closest available is using the REST API, which you'd use to get the HTML contents of a page (via its ID) then parse out a specific block yourself on the non-bookstack-end. I'm not familiar with Tooljet so not sure what you have available in that regard.

@ssddanbrown commented on GitHub (Jul 3, 2023): > So, is there a way to use the content link ({{@page_id#content_id}}) outside of BookStack to have just the selected text/images without the BookStack frontend that I will get using the full link? Not to the level of getting a specific block. The closest available is using the REST API, which you'd use to get the HTML contents of a page (via its ID) then parse out a specific block yourself on the non-bookstack-end. I'm not familiar with Tooljet so not sure what you have available in that regard.
Author
Owner

@andreapx commented on GitHub (Jul 4, 2023):

So, is there a way to use the content link ({{@page_id#content_id}}) outside of BookStack to have just the selected text/images without the BookStack frontend that I will get using the full link?

Not to the level of getting a specific block. The closest available is using the REST API, which you'd use to get the HTML contents of a page (via its ID) then parse out a specific block yourself on the non-bookstack-end. I'm not familiar with Tooljet so not sure what you have available in that regard.

Thanks for the quick reply.
I can try to do a workaround placing in the middle Node Red, but what do you think to add content_id to the APIs?

@andreapx commented on GitHub (Jul 4, 2023): > > So, is there a way to use the content link ({{@page_id#content_id}}) outside of BookStack to have just the selected text/images without the BookStack frontend that I will get using the full link? > > Not to the level of getting a specific block. The closest available is using the REST API, which you'd use to get the HTML contents of a page (via its ID) then parse out a specific block yourself on the non-bookstack-end. I'm not familiar with Tooljet so not sure what you have available in that regard. Thanks for the quick reply. I can try to do a workaround placing in the middle Node Red, but what do you think to add _content_id_ to the APIs?
Author
Owner

@ssddanbrown commented on GitHub (Jul 4, 2023):

what do you think to add content_id to the APIs?

I'd be hesitant to add that based upon this request alone, because it wouldn't be exposing any more BookStack-side abilities or data, but instead suiting a specific external flow to simplify client usage.

I just had a play with ToolJet, It seems that the DOM is available in their "RunJS" scripts, so you could use that to parse HTML once fetched. Not sure how practical that is in regards to building into your use-case though.

@ssddanbrown commented on GitHub (Jul 4, 2023): > what do you think to add content_id to the APIs? I'd be hesitant to add that based upon this request alone, because it wouldn't be exposing any more BookStack-side abilities or data, but instead suiting a specific external flow to simplify client usage. I just had a play with ToolJet, It seems that the DOM is available in their "RunJS" scripts, so you could use that to parse HTML once fetched. Not sure how practical that is in regards to building into your use-case though.
Author
Owner

@andreapx commented on GitHub (Jul 4, 2023):

I get your point of view.
From mine, it would be so much easier to just select a portion of the page in BookStack and directly use it elsewhere without the need to work on it with JavaScript (that may not work in the future if I edit the page in BookStack).
Thanks for having a look!

@andreapx commented on GitHub (Jul 4, 2023): I get your point of view. From mine, it would be so much easier to just select a portion of the page in BookStack and directly use it elsewhere without the need to work on it with JavaScript (that may not work in the future if I edit the page in BookStack). Thanks for having a look!
Author
Owner

@ssddanbrown commented on GitHub (Jul 18, 2023):

Since the original support case has been answered I'm going to go ahead and close this off.

@ssddanbrown commented on GitHub (Jul 18, 2023): Since the original support case has been answered I'm going to go ahead and close this off.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3894