Authors dropdown

The authors dropdown can be used for a situations where you want to allow users of your theme to use a specific relation to the given author.

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

 
{
     "name": "listingAuthor",
     "label": "Post listing",
     "group": "Layout",
     "note": "Creates a list of posts from the selected author",
     "value": "",
     "type": "authors-dropdown",
     "multiple": false
}
Authors dropdown list

The authors dropdown returns the ID of the selected author as a value. If the multiple option is set to true, then string with IDs separated by comma is returned. Use it with the getAuthor or getAuthors helper.

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide