Using tags to power website features
Tags are a powerful feature within Street and can be used to power everything from featured property carousels to client testimonials.
For this article, we will focus on using tags to drive a property carousel on our homepage but the technical implementation would be similar for any tag based functionality.
Setting tags in Street
To set tags on a property, navigate to the property page and select Edit > Property from the property menu.
Add a tag of homepage-carousel to the property.
Retreiving carousel properties via the API
To filter by tags on the property search endpoints, simply add a query parameter of filter[tags].
For example:
https://api.street.co.uk/property-search/sales/?filter[tags]=homepage-carousel