Skip to content

Commit

Permalink
Updated template variables readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gorriecoe committed May 29, 2018
1 parent 0a4b486 commit aed5c14
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,22 @@ Custom template
```

### Template variables
#### LinkURL
#### $LinkURL
Returns the URL of the link.
#### TargetAttr
#### $TargetAttr
Returns the html target attribute. `target='_blank'` or `null`
#### Target
#### $Target
Returns the html target attribute value. `_blank` or `null`
#### IDAttr
#### $IDAttr
Returns the html id attribute. `id='my-custom-id'` or `null`
#### IDValue
#### $IDValue
Returns the html id value.

Refer to [Add html id attribute](https://github.com/gorriecoe/silverstripe-link#add-html-id-attribute) for more information

#### ClassAttr
#### $ClassAttr
Returns the html class attribute. `class='my-custom-id'` or `null`
#### Class
#### $Class
Returns the html class value.

Refer to [CMS Selectable Style](https://github.com/gorriecoe/silverstripe-link#cms-selectable-style) for more information
Expand Down

0 comments on commit aed5c14

Please sign in to comment.