_Article.getCountUserArticles(userId)

Function to get the number of published articles created by a user.

Example Usage

{% set popularArticles = _Article.getCountUserArticles(userID) %}

Parameters

ParametertypeRequiredDescription
userIDintyesuserID of the user

Response Example

10

Response Description

Success
Count of published articles of the user