You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble understanding how to use the linkit_getElementData hook. Do you have an example plugin that uses it?
Specifically, I'm having trouble with the myPlugin_myElements bit in $myElement = craft()->myPlugin_myElements->getMyElementById($id);. Is myPlugin_myElements supposed to be my plugin's name? In that case, should I be implementing my own public getMyElementById method? Or how does it work? I keep running into Exceptions when I try to use it.
The text was updated successfully, but these errors were encountered:
crookedneighbor
changed the title
Writing Plugin with linkit_registerElementTypes
Writing Plugin with linkit_registerElementTypes and linkit_getElementData
Jul 12, 2016
I'm having trouble understanding how to use the
linkit_getElementData
hook. Do you have an example plugin that uses it?Specifically, I'm having trouble with the
myPlugin_myElements
bit in$myElement = craft()->myPlugin_myElements->getMyElementById($id);
. IsmyPlugin_myElements
supposed to be my plugin's name? In that case, should I be implementing my own publicgetMyElementById
method? Or how does it work? I keep running into Exceptions when I try to use it.The text was updated successfully, but these errors were encountered: