Hello,
Sure, for a creation of that where condition, you will need to remember or store somewhere an information about the date of a last login. This information is stored in a database and it is accessible through the
CMSContext.CurrentUser.LastLogon variable, but this date is overwritten by actual
DateTime after your user has logged in, so you need to store this value before it is changed. So now you just need to select
Articles, which fulfil that condition:
DataSet ds = TreeHelper.GetDocuments(CMSContext.CurrentSiteName, "/%", CMSContext.CurrentDocumentCulture.CultureCode, true, "CMS.Article", your_where_condition, "", -1, true, 0);
All you need is to count the number of documents in the returned dataset.
Best regards,
Jan Hermann