Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Add search bar to find text within a page

Hello! Wanting to work out how to search for text within a page with multiple expandable areas. Not wanting to search outside of the page, just within that page. 

Pressing cmd+f won't solve as the details are 'hidden' in expandable accordions 

Adding 'live search' only seems to look around the space, rather than matching terms within that page. 

So for example - a user wants to find out about Maternity SMP, and would use the 'search' for finding 'SMP'. The result would take the user to that part of the page with expanded accordion. Is this possible? 

SEARCH: `SMP` 

 

- Maternity 

    - Lorem Maternity ipsum A 

    - Lorem SMP ipsum B 

- Holidays 

    - Taking time off Lorem Ipsum 

    - Lorem ipsum bank holidays 

 

Thanks! 

1 answer

1 accepted

1 vote
Answer accepted
Andy Gladstone
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 14, 2023

@Meg welcome to the Atlassian Community.

Sorry to be the bearer of bad news, but you cannot do either. Let me explain.

  1. There is no native search function within a page you are viewing. I imagine this is because:
    1. Pages should not be so text heavy that they require their own search dialog.
    2. Since Confluence is based in a browser the native browser search function should suffice.
  2. Regarding searching for text in an Expand macro, this one has been an issue for a long time. Since the text exists in the macro, and not on the page, it is not searchable OR indexed for searching in Confluence at all. There are two related JAC tickets for this, with no movement. You can vote them up and watch them.
    1. https://jira.atlassian.com/browse/CONFCLOUD-30038
    2. https://jira.atlassian.com/browse/CONFCLOUD-73920

My suggestion is that content/text that is unique or meant to be found via search rather than browsing a page should not be placed in the Expand Macro.

Andy Gladstone
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 15, 2023

@Meg sorry I was not able to help you, but the answer is a valid one. Can you please mark it as accepted?

I was looking for the same solution as Meg. I am using a confluence space as a FAQ database and wanted to keep all of the searching in-page versus using the browser's search function.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events