Administrators Admin Posted March 29, 2020 Administrators Share Posted March 29, 2020 This plugin lets you filter your custom database homepage for a custom database field. You must use "Show records like articles" in your database settings. Otherwise this plugin doesn't make any sense. In the plugin settings set the database id, the custom field id you want to filter for and the value(s) in this custom field you want to filter for. I recommend a radio button based field. Others weren't tested. Caution: If you choose to filter for only one/several value(s) and not all and you have additional blocks/content which are based on the same database they also show only filtered content. In my use case this is not a problem. In your use case it could be. To get an impression of what I mean see Hidden Content Give reaction or reply to this topic to see the hidden content. , click the links with showStatus in them and watch the right block! Although, you might not understand the language have a look at the colored badges and how they differ when clicking a link with a applied filter. The last setting is a custom URL variable you can set. Use ?yourVariableName=chosenfilter to create links for filtering content. See link above as example. You should duplicate the "Category Articles" template (just export and import it again) in the Pages database template section because you have to adapt the pagination template. In the new created template group you should replace in the index template the following line Hidden Content Give reaction or reply to this topic to see the hidden content. with Hidden Content Give reaction or reply to this topic to see the hidden content. This is need because pagination has to get the filter variable, too. Hidden Content Give reaction or reply to this topic to see the hidden content. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now