2

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.

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 }}

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.