Query By Author

You can use this query type to retrieve content items published by a specific author. Currently it only considers authors who have username. You can't use this query, for example, to retrieve content items written by a specific Person.

The Query by author form contains the following fields:

Author selection mode

The value you select here determines which author should be used to search for content items. The options are:

Content author

This option selects the author of the current content item as search criterion. You can use it, for example, to retrieve all content items written by the author of the current content item.

This option should only be used in content item templates. If you use this option in a section page template then the query will never return any results.

Profile

This option selects the subject of the current Profile content item as search criterion. You can use it, for example, to retrieve all content items written by the subject of the current Profile.

This option should only be used in Profile content item templates. If you use this option in any other kind of template then the query will never return any results.

Specific

This option allows you to specify the author you are interested in in the Author field.

Author

The name of the author you are interested in. Once you start typing, a drop-down menu is displayed containing a list of authors that match the characters you have typed. Currently it doesn't show the Persons in the list.

Section selection mode

The value you select here determines both how the Section field operates and how the value you enter in the Section field is used. The following options are available:

Publication-specific

If you select this option, then the Section field lets you choose a specific section belonging to a specific publication. The query will then always select content items from this specific section.

Context-dependent

If you select this option, then the Section field lets you choose a section without reference to which publication it belongs to. The query will then select content items from the selected section in the current publication (that is, the publication named in the request URL).

For the Context-dependent option to be useful, your publications must include sections that have both identical titles and identical unique names.

Section

The name of the section you are interested in. Once you start typing, a drop-down menu is displayed containing a list of all sections that match the characters you have typed. You will see that the way the section titles are listed depends on the option you selected in the Section selection mode field.

If you do not specify a section, then Section selection mode is ignored, and content items are selected from the current section of the current publication (that is, the publication and section named in the request URL).

Include subsections

Yes means content items will be selected from the specified section(s) and all of its/their subsections. No means content items will only be selected from the specified section(s)

Content types

The names of the content types you want to be selected. Once you start typing, a drop-down menu is displayed containing a list of all content types that match the characters you have typed. Select the content type you are interested in. The selected name is then displayed as a token in the field. You can repeat this process to enter many content types.

Maximum items

The maximum number of content items you want to be selected by this query.

There is another Maximum items setting on the Queries tab that is applied to the total result set returned by all your queries. If set, it can potentially override this setting. See Queries for details.