From 5304215fc784858a71109ec7b1bd80d0e6f0c774 Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 1 May 2011 17:36:09 +1200 Subject: [PATCH] MINOR Documentation updated to reflect that $PastVisitor is deprecated --- docs/en/reference/built-in-page-controls.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/en/reference/built-in-page-controls.md b/docs/en/reference/built-in-page-controls.md index 7f03dcb5b..653113cb7 100644 --- a/docs/en/reference/built-in-page-controls.md +++ b/docs/en/reference/built-in-page-controls.md @@ -209,13 +209,15 @@ If the user is logged in this will print out Welcome Back, Admin -#### <% if PastMember %>, <% if PastVisitor %> +#### <% if PastMember %> These controls detect the visitor's previous experience with the site: -* $PastVisitor will return true if the visitor has been to the site before * $PastMember will return true if the visitor has signed up or logged in on the site before +Note that as of version 2.4 `$PastVisitor` is deprecated. If you wish to check if a visitor has been to the site before, +set a cookie with `Cookie::set()` and test for it with `Cookie::get()`. + ### Date and Time #### $Now.Nice, $Now.Year @@ -333,7 +335,7 @@ $LinkToID, $VersionID, $CopyContentFromID, $RecordClassName $Link, $LinkOrCurrent, $LinkOrSection, $LinkingMode, $ElementName, $InSection, $Comments, $Breadcrumbs, $NestedTitle, $MetaTags, $ContentSource, $MultipleParents, $TreeTitle, $CMSTreeClasses, $Now, $LinkTo, $AbsoluteLink, $CurrentMember, -$PastVisitor, $PastMember, $XML_val, $RAW_val, $SQL_val, $JS_val, $ATT_val, $First, $Last, $FirstLast, $MiddleString, +$PastMember, $XML_val, $RAW_val, $SQL_val, $JS_val, $ATT_val, $First, $Last, $FirstLast, $MiddleString, $Middle, $Even, $Odd, $EvenOdd, $Pos, $TotalItems, $BaseHref, $CurrentPage, $Top ### All fields available in Page