Option to add variable in reusable content #967
DiPoojary
started this conversation in
Feature Requests
Replies: 1 comment
-
Hi Dimple, thank you for creating the feature request to enhance content reuse in GitBook. I upvote this request. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Good morning!
I would like to inquire whether GitBook has plans to support variables in reusable content.
For instance, consider a file named permissions.md that states one needs administrator permissions to perform specific tasks. We want an option to call this note across product categories, but with an option to include a
variable
within it, which shall help generate varied outputs based on the variable used.Example:
Note: Ensure you have the necessary permission to complete the task.
It would be nice if GitBook allowed us to replace necessary with a
variable
that automatically pulls in another piece of reusable content. This way, we could produce different outputs based on the variables.So, the above note would change as follows:
acct-variable
permission to complete the task.api-variable
permission to complete the task.The output of the above examples would be:
Note: Ensure you have the Create and manage account permission to complete the task.
Note: Ensure you have the Create and manage API permission to complete the task.
Additional examples include:
Thank you for your attention to this matter.
Regards,
Dimple
Beta Was this translation helpful? Give feedback.
All reactions