Confluence Version: 5.9.10
Scaffolding Version: 8.5.0
Thank you for approaching us regarding this matter. In regards to your query, would you mind letting us know what are you trying to achieve.
From your explanation, I understand that you're unable to search the data that you entered into a scaffolding macro using the Confluence search function.
I'm trying to build out a bit of a knowledge base in Confluence and was leveraging the Scaffolding and Visibility plugins to assist with that. I have a How-To template I want to deploy which uses 3 live templates to pull in things like the Generic Header, Generic Body, a area-specific authorization page, and a Hidden Data macro with a text-data macro (solution) embedded within that will contain the actual steps / information.
In that authorization page there is a list drop-down that contains choices that relate to different groups in our support hierarchy (Public, Level 1, Level 1.5, Level 2, and Level 3). The drop downs have a HideIf macro that displays a warning is a user does not have access to that content, and a ShowIf macro that contains a text-data macro of the same name as the editable one on the page. By doing this, when the "solution" text-data macro is updated, the other identically named fields update as well.
By embedding the text-data fields with the same name within ShowIf that are tied to a drop down, I can make it easy to change the approval level of content while still having the article show to a user. If someone who does not have access to an article goes to that page they receive an error message about not being permitted to see that content instead of the Confluence default message that essentially throws a 404 and makes it appear that the content does not exist.
With that background out of the way, what I'm trying to do is get the contents of the text-data macro to show up in Confluence search results. When I search terms used within the macro, all I get is whatever text is placed on the page itself, not within the text-data macros. Most of the pages appear to be blank in the results as they're only displaying some heading information.
Is this because of the live-templates I'm using? I've tried to rebuild the index but that did not fix the issue. Is there a way to define a new content index to be generated in Confluence? What I mean is, can I have the Confluence search index crawl the contents of the text-data macros or is that all built-in and behind the scenes?
I've attached the source for the pages mentioned. "VFPOS How-To" is the main template that I deploy. The other files are the Live Templates that I use to populate everything out.
Generic Live Body - https://justpaste.it/wnyx
Generic Live Header - https://justpaste.it/wnyz
VFPOS HowTo Approval - https://justpaste.it/wnz2
VFPOS How-To - https://justpaste.it/wnz4