Normally I output some fields with fallback values as follows (with Headline field filled in in this case):
$content .= "<h1>$page->get('headline|title')</h1>;
How would you approach front page editing in the template for this (B/C/D method)?
$content .= "<h1>$page->edit('headline|title')</h1>";
results in the Headline outputted but editing doesn't work.
$content .= "<edit title>";
$content .= "<h1>{$page->get('headline|title')}</h1>";
$content .= "</edit>";
Results in the Headline outputted but double click will edit the Title field instead.
Has anyone succeeded this way?