Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Suggestion for Searchbar macro to ONLY search within the page it is added

Manon Kouwenhoven
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!
July 1, 2026
  • The use case: I have a long glossary/reference page and need users to search within that page

  • Why the current macro falls short: The Live Search macro only returns other pages, which is identical to the global search bar — making it redundant

  • What I would like: A parameter on the Live Search macro (or a new macro) that searches within the body of the current page and highlights/jumps to matches

  • Who benefits: Anyone maintaining glossaries, FAQs, knowledge bases, or long reference docs

4 answers

1 vote
Anatolii Starshekov _Wombats Corp_
Contributor
July 2, 2026

Hi @Manon Kouwenhoven

Exactly my thoughts -- Confluence pages are currently missing a native on-page search feature, and unfortunately there's no built-in way to achieve this.

But I've been experimenting with an app we're developing and managed to build a solution that works quite well.

It's a user macro that retrieves the page content, performs a live search, and lets users jump directly to the matching item on the page.

Here's a ready-to-use template, along with how it looks in action:

live-search-demo.gif

If you'd like to try it out or need any help setting it up, just let me know!

0 votes
Tinker Fadoua
Community Champion
July 1, 2026

Welcome to the Atlassian Community @Manon Kouwenhoven 

Please take a look at the following page, someone had similar question to yours:

https://community.atlassian.com/forums/Confluence-questions/search-ONLY-WITHIN-current-PAGE-in-Confluence-Cloud-Version/qaq-p/2861429

Bestm

Fadoua

0 votes
Barbara Szczesniak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 1, 2026

@Manon Kouwenhoven One thing I do to make it easier for readers to find terms is to put a heading above each group. You can do each applicable letter or a group of letters in the heading. I have mine in tables for formatting purposes. I don't have that many terms, so I group them like this:

image.png

At the top of the page, I have a Table of contents macro configured like this, so it only includes the headings that I have used (e.g., if you don't group and have no terms that start with Q, you don't put in that heading so that Q doesn't appear in your TOC):

image.png

For searching within only the current page, I would put a note at the top suggesting that people use their browser's Find feature. This is probably the best workaround for now, since I'm not sure whether Atlassian would put a high priority on your feature request.

Manon Kouwenhoven
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!
July 2, 2026

Thanks for your tips!
Just thought it would be very easy for Atlasian to add a Search bar Macro, which does just CTRL-F. 

My terms & abbreviations are divided in specific groups. But maybe I should reconsider to do all in alphabetical order and make a group per letter, which I can then refer to from the top as you suggested.

Like Barbara Szczesniak likes this
0 votes
Arkadiusz Wroblewski
Community Champion
July 1, 2026

Hello @Manon Kouwenhoven 

For product suggestions, please open a ticket with Atlassian Support. That is the correct flow in this case.

Best,

Arek🤠

Suggest an answer

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

Atlassian Community Events