Download

Tags dropdown

The tags dropdown can be used for a situations where you want to allow users to use a specific relation to the given tag.

It can be used e.g. to specify tag which will be used to create posts listing:

 
{
     "name": "listingTag",
     "label": "Post listing",
     "group": "Layout",
     "note": "Creates a list of posts with the selected tag",
     "value": "",
     "type": "tags-dropdown",
     "multiple": false
}
Tags dropdown list

The tags dropdown returns the ID of the selected tag as a value so it should be connected with use of the getPostsByTag or getPostByTag helpers. If the multiple option is set to true, then string with IDs separated by comma is returned.

What are you waiting for?

Start building your site today.

  1. 1 Download Publii
  2. 2 Write your content
  3. 3 Publish your site
Create website