How would I create a #hashtag system for my database?

I have a form to upload and submit to a database (which then displays in repeaters) I would like to add a #hashtag system to the uploads / repeaters so people can click them and find similar uploads (pretty much exactly the same as the system in this forum, but to bring up search results from my own database).

Many thanks!

Thomas

1 Like

Just giving this a little nudge

I would like to do the same… But it seems I can’t fill a “hashtag” in a repeater. Somebody could help?

You can create a text field in your database and call it ‘hashtags’, for example. You can use JS split method to separate each individual hashtag to load them into a few text elements in your repeater.

Then, in these text’s onClick() function you can set a filter in your dataset that shows only database items in which the hashtag field contains the same hashtag value.

**There is an easier way to set this up (though less elegant, and a bit more cumbersome) where you can skip using .split() and instead just create multiple hashtag fields in your database, which will allow you to connect them using the GUI in the editor.

Hello David, I appreciate so much your replay, thank you very much for helping. I’m going to try that tomorrow!

In the moment I have the wixblog connected to my repeater and would like to show one feed with all posts and their categories as hashtags. But i can’t see the field “category“ on the wixblog database (only on the painel). :cry: só I can’t set an element up on my repeater That brings the post’ name category. do you know if I would need to create another database in this case?

Thank you!!!

I’m not sure if you’ll be able to make this work with the blog app…you might have to experiment with console.log() and getPost() to see how the hashtags are printed so you can use them in your code.

I typically avoid the blog app because it has too many limitations for my taste.