Skip to content

Commit

Permalink
Readme + composer.json updates
Browse files Browse the repository at this point in the history
  • Loading branch information
samhibberd committed Jul 13, 2022
1 parent ff848e1 commit a4a2fe2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ would output `<a href="/profile/USERNAME">Visit Profile</a>` which is the defaul

**GraphQL**

Linkit supports querying subfields with GraphQl, the following fields are available:
Linkit supports querying subfields with GraphQl, the following fields are available, take a look at the Craft GraphQL explorer to have a play with the return values:

myLinkitField {
label
Expand All @@ -143,11 +143,12 @@ Linkit supports querying subfields with GraphQl, the following fields are availa
url
text
target
element
element {
id
title
}
}

Take a look at the Craft GraphQL explorer to have a play with the return values.

**A Note On Element Status**

To match first party element fieldtypes, Linkit now links to and allows users to select disabled elements when using element link types, we have added a new method to allow you to determine if a link is available (enabled) for the current site, as such the following will return a boolean value
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"link"
],
"support": {
"docs": "https://github.com/presseddigital/linkit/blob/master/README.md",
"docs": "https://github.com/presseddigital/linkit/blob/v4/README.md",
"issues": "https://github.com/presseddigital/linkit/issues?state=open"
},
"license": "proprietary",
Expand All @@ -35,7 +35,7 @@
"handle": "linkit",
"hasCpSettings": false,
"hasCpSection": false,
"changelogUrl": "https://raw.githubusercontent.com/presseddigital/linkit/master/CHANGELOG.md",
"changelogUrl": "https://raw.githubusercontent.com/presseddigital/linkit/v4/CHANGELOG.md",
"class": "presseddigital\\linkit\\Linkit",
"components": {
"services": "presseddigital\\linkit\\services\\LinkitService"
Expand Down

0 comments on commit a4a2fe2

Please sign in to comment.