Answers.Body: <p>Please have a look at the new docs for the plugin version for craft 3: <a href="https://github.com/fruitstudios/craft-linkit/blob/master/README.md#using-linkit" rel="nofollow noreferrer">https://github.com/fruitstudios/craft-linkit/blob/master/README.md#using-linkit</a></p>
  
  <p>Instead of <code>{{ entry.linkItField.type }}</code> you should use <code>{{ entry.linkItField.typeHandle }}</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-27T13:21:21.873Z
Answers.LastActivityDate: 2019-08-27T13:21:21.873Z
Answers.UserDisplayName: Marten Brosch
Body: <p>I'm doing a project in Craft 3, there are many types of links so I installed the LinkIt plugin. I'm facing problem with this because I didn't find a method to check link type.</p>
  
  <p>If I use <code>{{ entry.linkItField.typeHandle }}</code> it returns the whole path (e.g. "fruitstudios\linkit\models\Url"), not just category, entry, URL etc.</p>
  
  <p>Also, using <code>{{ entry.linkItField.url }}</code> only works on custom links.</p>
  
Tags: <craft3>
Title: Checking the link type from a LinkIt field returns the whole path
ThreadText: # Checking the link type from a LinkIt field returns the whole path
  
  (Asked by: username_0 on 2019-08-25)
  
  I'm doing a project in Craft 3, there are many types of links so I installed the LinkIt plugin. I'm facing problem with this because I didn't find a method to check link type.
  
  If I use `{{ entry.linkItField.typeHandle }}` it returns the whole path (e.g. "fruitstudios\linkit\models\Url"), not just category, entry, URL etc.
  
  Also, using `{{ entry.linkItField.url }}` only works on custom links.
  
  **Tags:** craft3
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-08-27. Score: 2
  
  Please have a look at the new docs for the plugin version for craft 3: <https://github.com/fruitstudios/craft-linkit/blob/master/README.md#using-linkit>
  
  Instead of `{{ entry.linkItField.type }}` you should use `{{ entry.linkItField.typeHandle }}`
  
  
  ---
  
  