pixelandtonic / Events

Sample Craft plugin demonstrating element types
MIT License
40 stars 9 forks source link

Issue with modal editor on index layout #4

Open keithmancuso opened 9 years ago

keithmancuso commented 9 years ago

Hey guys, I'm playing with this to try and build my own element type and noticing an issue with the "double click" and edit in place functionality.

First off the getEditorHtml method has the following starting on line 185

// Start/End Dates
$html = craft()->templates->render('events/_edit', array(
    'element' => $element,
));

when it should be

$html = craft()->templates->render('events/_editor', array(

even when i switch it to editor i'm still getting an error which i cant figure out

The function "dateTimeField" does not exist in "events/_editor" at line 31

which is confusing because the macro is right there?