Get Content Views - Documentation topics on: clickstream,deprecated,get content views,macros,.

Get Content Views
Deprecated

** This macro has been deprecated **

This macro returns the number of front end views that a piece of content has had. Front end view counts are stored in the dotCMS clickstream table.

Macro Overview:

Syntax:

#getNumViews($contentlet.identifier)

Arguments:

Enter Macro Arguments Here


Optional Parameters:


Usage:


Examples:

Example 1: A simple example using the required fields

#foreach($con in $dotcontent.pull("+contentType:News",10,"News.title"))
<h3>$con.title- views: #getNumViews(${con.identifier}) </h3> #end