Seeking Advice on Implementing Dynamic Content Fields in Confluence

Chris Danks
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 26, 2024

Hello, Confluence Community!

I'm part of a team at a web hosting company, and we're in the process of migrating our internal knowledge base to Confluence. Our goal is to make our documentation as user-friendly and interactive as possible, especially for complex technical guides.

One of the challenges we're facing is creating dynamic, interactive content within our Confluence pages. Specifically, we have a guide for resetting permissions on domains and users in DirectAdmin (one of our hosting control panels). The guide requires the user to input a domain name and a username at the beginning, and then it dynamically generates command line instructions incorporating these inputs.

Here's a simplified example of what we're trying to achieve:

1. At the top of the article, there would be two text fields:
- **Field 1:** "What is the domain name you need to reset permissions on?"
- **Field 2:** "What is the DirectAdmin username you need to reset permissions on?"

2. Based on the inputs (e.g., `BOBSDOMAIN.COM` for the domain and `BOB123` for the username), the guide would then dynamically generate the following commands for the user to run:

cd /usr/local/directadmin/scripts
./set_permissions.sh domaindir BOBSDOMAIN.COM
./set_permissions.sh set_user_home BOB123

We understand that Confluence's core functionality leans towards static content, but we are exploring ways to introduce such interactivity within our pages. Whether through native features, macros, or possibly developing or integrating an add-on, we're open to any suggestions or guidance the community can offer.

Has anyone tackled similar requirements, or can anyone recommend strategies, add-ons, or tools that integrate well with Confluence for this purpose? Any advice on how to approach creating or integrating dynamic content fields into Confluence articles would be greatly appreciated.

 

Here is an example from our vendors website:  https://docs.directadmin.com/directadmin/general-usage/domains-users-resellers.html#how-to-merge-accounts  as you can see if you replace ADMIN and FRED it updates the command below it.

Thank you in advance for your help and insights!

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events