Attachment displays let you show different displays on the same view. They are limited to only being on the same view, however. This patch adds an area handler that lets you embed view displays in the header, footer, or empty areas. The selected display can be from a different view, even one of a different base type.

The patch needs work because you can't actually choose the display on the extra options form. I don't have the experience to know what's wrong. There seems to be a rogue break; in views_ui_config_item_extra_form(), but taking it out didn't seem to help. Likely a separate issue.

Currently, the embedded view inherits the original arguments, though it should be easy enough to emulate the same options that attachment displays have.

CommentFileSizeAuthor
#1 views_area.patch3.18 KBIsland Usurper

Comments

Island Usurper’s picture

StatusFileSize
new3.18 KB

Grr. What happened to the patch?

dawehner’s picture

Can't we provide a general ctools content type area plugin? This would fix all our problems :)

#874160: Ctools content type area handler
#793814: Area handlers for CTools content types

+    $options['view'] = array('default' => $this->view->name);

Do we really want to make a recursion by default?

Island Usurper’s picture

Even after applying agentrickard's patch, I couldn't figure out how to get it to select a View. But if either of those issues make this one irrelevant, that's perfectly fine.

As long as the same display handler doesn't display itself, it should be fine. I just wasn't up to learning how to make that validate properly at the time. While that case is handled by attachments, with area handlers you can have several and easily reorder them.

dawehner’s picture

Do we really have to add this?

views_field_view provide such a handler, too and it allows to use arguments.

dawehner’s picture

Status: Needs work » Fixed

This got in during the views ui codesprint, so this is not an issue anymore.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.