mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Documentation updated to reflect that $PastVisitor is deprecated
This commit is contained in:
parent
79e0634537
commit
5304215fc7
@ -209,13 +209,15 @@ If the user is logged in this will print out
|
|||||||
Welcome Back, Admin
|
Welcome Back, Admin
|
||||||
|
|
||||||
|
|
||||||
#### <% if PastMember %>, <% if PastVisitor %>
|
#### <% if PastMember %>
|
||||||
|
|
||||||
These controls detect the visitor's previous experience with the site:
|
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
|
* $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
|
### Date and Time
|
||||||
|
|
||||||
#### $Now.Nice, $Now.Year
|
#### $Now.Nice, $Now.Year
|
||||||
@ -333,7 +335,7 @@ $LinkToID, $VersionID, $CopyContentFromID, $RecordClassName
|
|||||||
|
|
||||||
$Link, $LinkOrCurrent, $LinkOrSection, $LinkingMode, $ElementName, $InSection, $Comments, $Breadcrumbs, $NestedTitle,
|
$Link, $LinkOrCurrent, $LinkOrSection, $LinkingMode, $ElementName, $InSection, $Comments, $Breadcrumbs, $NestedTitle,
|
||||||
$MetaTags, $ContentSource, $MultipleParents, $TreeTitle, $CMSTreeClasses, $Now, $LinkTo, $AbsoluteLink, $CurrentMember,
|
$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
|
$Middle, $Even, $Odd, $EvenOdd, $Pos, $TotalItems, $BaseHref, $CurrentPage, $Top
|
||||||
|
|
||||||
### All fields available in Page
|
### All fields available in Page
|
||||||
|
Loading…
x
Reference in New Issue
Block a user