Skip to content

Commit 0daad70

Browse files
Merge remote-tracking branch 'remotes/Laser.Orchard/feature/6688_RequestTokens_Chaintext' into 1.10.x
2 parents 927d18b + 7b09747 commit 0daad70

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Orchard.Web/Modules/Orchard.Tokens/Providers/RequestTokens.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public RequestTokens(IWorkContextAccessor workContextAccessor, IContentManager c
2323

2424
public void Describe(DescribeContext context) {
2525
context.For("Request", T("Http Request"), T("Current Http Request tokens."))
26-
.Token("QueryString:*", T("QueryString:<element>"), T("The Query String value for the specified element. If you want to chain text, surround the <element> with brackets [e.g. QueryString:(param1)]."))
27-
.Token("Form:*", T("Form:<element>"), T("The Form value for the specified element. If you want to chain text, surround the <element> with brackets [e.g. Form:(param1)]."))
26+
.Token("QueryString:*", T("QueryString:<element>"), T("The Query String value for the specified element. To chain text, surround the <element> with parentheses, e.g. 'QueryString:(param1)'."))
27+
.Token("Form:*", T("Form:<element>"), T("The Form value for the specified element. To chain text, surround the <element> with parentheses, e.g. 'Form:(param1)'."))
2828
.Token("Route:*", T("Route:<key>"), T("The Route value for the specified key."))
2929
.Token("Content", T("Content"), T("The request routed Content Item."), "Content")
3030
;
@@ -39,8 +39,8 @@ public void Evaluate(EvaluateContext context) {
3939
* 2. QueryString:param1 or Form:param1
4040
* 3. QueryString:(param1).SomeOtherTextToken or Form:(param1).SomeOtherTextToken
4141
*
42-
* If you want to Chain TextTokens you have to use 3rd syntax
43-
* the element (here param1) has been surrounded with brackets in order to preserve backward compatibility.
42+
* If you want to Chain TextTokens you have to use the 3rd syntax
43+
* the element, here param1, has been surrounded with parentheses in order to preserve backward compatibility.
4444
*/
4545
context.For("Request", _workContextAccessor.GetContext().HttpContext.Request)
4646
.Token(

0 commit comments

Comments
 (0)