I tough that the filters of a block would be hidden in the config block (the one where you can change colors). But that seems not to be the case am i missing something?

Comments

mstef’s picture

Status: Active » Postponed (maintainer needs more info)

I don't understand what you're asking.

Michsk’s picture

When creating a view, and setting filters to be exposed. The filters form displays in the block, i tought that that form would be hidden untill the user presses the config icon of that box. Just like changing the color, when you press the config icon the colors pallet opens, i tought that the filters form was also located in that area.

mstef’s picture

Category: support » feature
Status: Postponed (maintainer needs more info) » Active

That was how Homebox 1.x handled the filters. I found some big issues with that and removed it.

1) Exposed filters were being duplicated in the view, and in the config section.
2) The filters that showed in the view couldn't submit; only the filters in the config section would.
3) Some cookie was used to save the state of the filter for each user and that didn't seem to work.

What do you think should be done here? I don't like the idea of relying on a cookie to save a filter state. And I don't like the idea of putting it in the config section if the filters can't be saved permanently.

?

Michsk’s picture

I agree a option like this should provide all the default functionalitys provided by views. Now i don't know how this was done in V1, but i think that this shouldn't be to hard to do with jquery? Just get the .view-filters of the specific block and place them in the config div... We could even make the .view-filters hidden and give the config icon a second action to also open the .view-filters div.

mstef’s picture

how would users know that filters are inside the settings panel? I could see people easily not assuming that's the case..

Michsk’s picture

Create a div under the box title and give it a text string with something like. This block is configurable.

But to be honest, i think you shouldn't change anything extra to make it stand out. The ones who will find it thats good, the ones who won't can just use the standard view. Just like changing the colors of a block.

mstef’s picture

i don't know about that...the last thing i want to do is hinder the functionality of a view to people who are more aware..

gotta think about this one

Michsk’s picture

Then we could do the following. In the homebox layout screen, where we set if a box is dragable or not etc etc. We get a option to place the filters in the config area. This way you can hide the not so necessary filters and leave the necessary ones visible in the block.

leilyrken’s picture

Personnaly this is a big lost for me. I think the settings with the filter added a lot of possibility, we use it for some view charts displayed in a homebox and our user are really use to manipulate it, igoogle do something similar...

For a test I modified the homebox-block.tpl.php

    <div class="portlet-config">
      <?php if ($page->settings['color']): ?>
        <div class="homebox-colors">
          <span class="homebox-color-message"><?php print t('Select a color') . ':'; ?></span>
          <?php for ($i=0; $i < HOMEBOX_NUMBER_OF_COLOURS; $i++): ?>
            <span class="homebox-color-selector" style="background-color: <?php print $page->settings['colors'][$i] ?>;">&nbsp;</span>
          <?php endfor ?>
        </div>
      <?php endif; ?>
	  
++	  <?php if($block->module == 'views' && $filter = module_invoke('views', 'block', 'view', "-exp-".$block->delta)): ?>
++	    <div class="homebox-view-filter">
++  			<?php print $filter['content']; ?>
++		</div>	  
++	  <?php endif; ?>

      <?php if ($block->module == 'homebox'): ?>
        <button id="delete-<?php print $block->module . '_' . $block->delta; ?>" class="homebox-delete-custom-link"><?php print t('Delete'); ?></button>
        <button id="edit-<?php print $block->module . '_' . $block->delta; ?>" class="homebox-edit-custom-link"><?php print t('Edit'); ?></button>
      <?php endif; ?>
      <?php if ($page->settings['color'] || $block->module == 'views' && !is_null($filters)): ?>
        <div class="clear-block"></div>
      <?php endif ?>

It's works, I will see if we met any problems but it's simlar to how homebox v1 do it

Michsk’s picture

But don't those filter settings now apply on all the views that you use in your homebox page?

leilyrken’s picture

I tested but it seems ok. In my test homebox I have 2 views to displays nodes. They both have Node type filter exposed. And I can filter each view with different type.
Is it what you mean ?

Shadlington’s picture

The drupal.org dashboard exposes some filters (and other settings, like number of posts) through the settings button... Is anything like that doable with homebox?

brianV’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev

Drupal.org is using homebox for the dashboard. I am not sure how they are making that happen, though.

Bumping version since 6.x-2.x is no longer being developed.

HFT’s picture

Hi,

I was hoping that the positioning of exposed filters would be handled the way which drupal.org does so, in the settings button, however this doesn't seem to be the case.

Is this being looked at for 6.3 and 7.2?

I would have thought that in the spirit of open source, if drupal.org have managed it do it, it would be available as standard on homebox!

Happy to donate to the development of this otherwise.

brianV’s picture

It's handled partly in Drupal's 'drupalorg' module if I recall. I've looked into it briefly, and have been offered access to the code. However, this is not a feature I have the time nor the use case to implement at this point.

That said, I am happy to accept patches.

drumm’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 is no longer supported. If this can be reproduced with Drupal 7, please re-open with details.