I need to know if a page is watching... I did something like this to get the favourites pages and generate a list... But I hasn't any object to get isWatching or something....
I know that exists this objects:
$action
$pageManager
etc... :S
I found this code in the decorators.vmd
#set ($pageNotifications = $helper.action.pageNotificationsForUser)
#if ($pageNotifications)
<table class="tableview condensed">
<tr>
<th colspan="2" class="colHeaderLink">$action.getText('page.watches')</th>
</tr>
#foreach ($notification in $pageNotifications)
<tr #alternateRowColors()>
<td class="tableview-action-text">
#contentLink($notification.page)
<!--<a href="$req.contextPath$notification.page.urlPath">$notification.page.title</a>-->
</td>
<td class="tableview-action-icon">
<a href="${req.contextPath}/users/removepagenotification.action?pageId=$notification.page.id"><img src="$staticResourceUrlPrefix/images/icons/watch_cancel_16.gif" height="16" width="16" title="$action.getText('stop.watching.page')"></a>
</td>
</tr>
#end
</table>
#end
can I use something like this in the User macro Environment?????
please help....