Black Friday's here! Create an app and enjoy 50% off now!
GoodBarber apps are ready for iPhone Duo. See how
Back

How to add a search section


Search

A Search section lets your app's users find any article, video, photo, podcast, event or place by typing a word. Results are sorted into one tab per type of content, and a search bar on the Home puts it all one tap away.

Add a Search section

You add it from My App, Structure, with Add a section… then search for search to find the Search card.

An app can have several Search sections: River Daily already has one, so this new one gets a title of its own. Click Add.

Name the section. Then click Add.

The section joins the end of your menu, and the preview shows its page: a search field above a tab for each type.

Search in the preview

Users type a word and press Enter. Let's search for fog.

The search reads the text of your content, not just the titles, and sorts what it finds by type: two articles… two photos… and a podcast.

A tap opens an item on its own page… with the section's toolbar. Here, fog was in the text, not in the title.

A tab without any match says so, and suggests another query.

Choose what is searched

To choose what the section searches, open it and click the gear.

Each type's pencil renames its tab: Sound becomes Podcasts… and Enter saves it. The preview's tab follows at once.

Drag a type by its arrows to reorder the tabs: Photos moves up, right after Articles.

Uncheck the types you'd rather leave out. Here, Map and Calendar.

Open a type to choose its sections: unchecking Sports keeps its stories out of the results… Then click Save.

In the app, the search field keeps recent searches. One tap runs fog again… now with four tabs in the new order, and without the Sports story.

Design

Back on the section, the Search card's Edit the design sets the look of the tabs and the results.

Pick a tab style: Block, or Material Design… which underlines the selected tab.

Under No results, Icon color sets the color of the magnifier shown when a tab finds nothing… here, orange.

Toolbar

Its Toolbar card sets the actions shown at the top of an item opened from the results.

Check Comments… and a comments button joins Share, Favorites and the font size buttons on the item's page.

A search bar on the Home

Adding the section also placed its search bar at the end of your Home, as the note below explains.

Click Reorder, then move it up with its arrow… to the top of the list, and click Done: the search bar now sits at the top of your Home.

Users type a word right there… and land on the results of Search the news.

Your changes reach your app's users once you publish them, with Publish my project.

Related videos