sebastian-lenz / craft-linkfield

Link field for Craft 3
MIT License
122 stars 65 forks source link

Documentation update #256

Closed anchovy closed 1 year ago

anchovy commented 1 year ago

Hi - love the plugin!

Just added verbb events as option to the plugin using your documentation at https://github.com/sebastian-lenz/craft-linkfield#api Does this need to be updated? Some of the namespaces were a little off for me and used the following in the end:

# custom element include
use verbb\events\elements\Event as EventElement;

# core requirements
use typedlinkfield\Plugin as LinkPlugin;
use typedlinkfield\events\LinkTypeEvent;
use typedlinkfield\models\ElementLinkType;

No big issue - just thought this might help out other peeps trying to customize the link elements.

sebastian-lenz commented 1 year ago

Thanks for the note! Well, it looks like you are using v1 of this plugin, the namespaces have changed since then. For v1 your namespaces are correct but the readme you see in the repository is updated for v2.