Unable to search scaffold fields

  • 2
  • Problem
  • Updated 2 years ago
I am unable to get any data entered into a Scaffold plugin macro (text-data, etc.), I am unable to search for it using the Confluence search engine.  I have rebuilt the index and have the text-data macro living on an actual page, not just a live template.  I have also tried the scaffoldfield: data search syntax but that doesn't return anything either.

Confluence Version: 5.9.10
Scaffolding Version: 8.5.0
Photo of Nicholas Woods

Nicholas Woods

  • 6 Posts
  • 3 Reply Likes

Posted 2 years ago

  • 2
Photo of Suresh Mathusuthanan

Suresh Mathusuthanan, Alum

  • 117 Posts
  • 9 Reply Likes
Hi Nicholas,

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.


Regards,

Suresh

Photo of Nicholas Woods

Nicholas Woods

  • 6 Posts
  • 3 Reply Likes
Hi Suresh,

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
(Edited)
Photo of Nicholas Woods

Nicholas Woods

  • 6 Posts
  • 3 Reply Likes
Also, just because it might be helpful, I noticed this question was raised as well here (https://community.servicerocket.com/servicerocket/topics/live-template-pages-in-search-results).  Since there hasn't been an update to that thread I thought it would be best to create a new one.
Photo of Mervyn Toh

Mervyn Toh, Alum

  • 117 Posts
  • 7 Reply Likes
Hi Nicolas,

Thanks for your explanation.

Our project team are currently looking into this. I'll get back to you when there are any updates. In the meantime, please subscribe to our ServiceRocket Community page for announcement on releases and fixes on Scaffolding.

Thank you.
Photo of Jenny Plunkett

Jenny Plunkett

  • 7 Posts
  • 0 Reply Likes
Can you give me any info on a fix?  I've been waiting weeks and still no updates. (https://community.servicerocket.com/servicerocket/topics/live-template-pages-in-search-results)
(Edited)
Photo of Nicholas Woods

Nicholas Woods

  • 6 Posts
  • 3 Reply Likes
In the event anyone is still looking for information on this issue, the 8.6.2 release fixed my issue.
Photo of My Playlist

My Playlist

  • 1 Post
  • 0 Reply Likes
Great.Thanks for sharing the information. That is very helpful for increasing my knowledge in this field.

Godaddy promo code