I've been doing lots of work recently to strip things away from the confirmation screen. It currently gets the attachments and header and footer added to the page even though those are unlikely to make sense on the confirmation screen.

I think it might be ok to just remove all of these from that page in general, but if some people find them useful then we might need a checkbox for them.

Comments

greggles’s picture

In the case of the header/footer, they can be overridden with:

      $view->display_handler->set_option('header', '');
      $view->display_handler->set_option('footer', '');
infojunkie’s picture

Assigned: Unassigned » infojunkie
Status: Active » Fixed

Fixed in latest dev release. Thanks.

Status: Fixed » Closed (fixed)

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

WorldFallz’s picture

Version: 6.x-1.x-dev » 7.x-3.x-dev
Component: Code » Core
Assigned: infojunkie » Unassigned
Category: Feature request » Support request
Issue summary: View changes
Status: Closed (fixed) » Active

This seems to have been lost in the 7.x version unless I'm missing it. I'm trying to suppress views attachments on step 2 of the modify fields form and the confirm form but I'm not having any luck. Any suggestions for where to handle this (form_alter, theme_, etc) would be welcome!

Thanks.

WorldFallz’s picture

I can't seem to find anywhere/anyway to hide this. I can't find any way to know I'm on one of the vbo confirm forms/steps to hide it with CSS, or theme it out in a template file for the view. And i can't find anything in form_alter or hook_views_bulk_operations_form_alter either.

scott.whittaker’s picture

OK, it's not as good as actually removing the content before it's rendered, but here's how I'm doing it:

First off I used the context module to create a context called vbo. Then in my module's hook_views_bulk_operations_form_alter I check if the form_id matches the VBO pages I've got, and if so, add the following code:

      // Add custom VBO context to VBO pages beyond the base selection screen
      if ($form_state['step'] != 'views_form_views_form') {
        $context = context_load('vbo');
        context_set('context', $context->name, $context);
      }

Originally I attempted to use the vbo context to not show the views blocks on this page, but it seems that setting the context here is too late in the process for the context module to pick up. But it does add a context-vbo class to the body of the page. So I'm hiding it with a CSS rule:

.context-vbo .attachment-before { display: none; }

So unfortunately all the content is still generated and output to the page but at least it is hidden by CSS. Would love to have a proper solution for this though.

thommyboy’s picture

Category: Support request » Feature request

this seems to be lost in 7x and would be really useful. an attachment might not always make sense on the confirmation step!

Chipie’s picture

@scott.whittaker Thank you for your idea. Works great.

  • infojunkie committed cb7d871 on 8.x-1.x
    #365648 by kratib: Hide extra view info in later steps