node_embed_views_pre_render() checks on View name to suppress the admin menu. If you use Features, you can't use the standard View, because you can't featurize that, so you have to make your own View, which means another name, which means the admin menu isn't suppressed.
If you wouldn't check on View name, but View tags, that wouldn't be a problem. You can also check on the current path (that's even better, because that's how you get to the (custom) view).
It's not really a bug, but it is a design flaw IMO.
I haven't made a patch, because it's too simple and literally one minute of work if you have repo write access:
- Change
$view->nameto$view->taginnode_embed_views_pre_render(). - Change
$view->tag = '';to$view->tag = 'ckeditor_node_embed';inckeditor_node_embed.view.inc.
Grazi!
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1729854-node_embed_view_path.patch | 547 bytes | mrharolda |
| #4 | node_embed-1729854-check-view-name.patch | 586 bytes | tessa bakker |
Comments
Comment #1
rudiedirkx commentedWow. Nothing?
Comment #2
rudiedirkx commentedI changed
to
and that works for me, because my override view has 'ckeditor_node_embed' in its name.
Comment #3
tessa bakkerComment #4
tessa bakkerSmall patch with a nice hidden feature for pro's.
Comment #5
mrharolda commentedHow about this?
Comment #6
rudiedirkx commentedI concur. Excellent work, young man!
Comment #8
mrharolda commented