Hi,

I'm trying to expose filter on a view in my site, it's working very well when I use the default Bartik 7.43 theme, see attached image named Batrik.png.

But when using a sub-theme of the adaptivetheme it didn't show the filter, see attached image named at.png.

What should I do from this point?

CommentFileSizeAuthor
#8 ExposedView.png64.51 KBnaamaan
#7 ViewExport.txt7.67 KBnaamaan
at.png4.03 KBnaamaan
Batrik.png5.92 KBnaamaan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

naamaan created an issue. See original summary.

naamaan’s picture

Title: Views expose filed not showing!!! » Views expose filed filter not showing!!!
naamaan’s picture

Hi,

I really needs answers here, is there any missing info or details I should provide in order to get a reply?

regards,

cilefen’s picture

Check the browser console, Drupal's own log, and the web server log for related messages.

naamaan’s picture

I'd checked the browser console and enabled the debugging mode using the devel module, but no error messages had appeared.
It's that the html code that is supposed to contain the filter is not exist in the page html code!! is it a separate setting that enables rendering the exposed filter html?

naamaan’s picture

Hi,

I noticed these two warning in the console:

Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead[Learn More]  jquery.min.js:1
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead.  jquery.min.js:5:17117

But don't think they are related to this issue, they appears in all pages!!

The weird thing around is when using the my theme - a subtheme of the adaptivetheme - the following html block doesn't appear in the page:

<div class="view-filters">
      <form action="/en" method="get" id="views-exposed-form-ttt-view-filter-default" accept-charset="UTF-8" class="jquery-once-1-processed"><div>  <div class="views-exposed-form">
    <div class="views-exposed-widgets clearfix">
              <div id="edit-field-category-list-value-wrapper" class="views-exposed-widget views-widget-filter-field_category_list_value">
                      <label for="edit-field-category-list-value">
              Category list (field_category_list)            </label>
                              <div class="views-widget">
            <div class="form-item form-type-select form-item-field-category-list-value">
 <select id="edit-field-category-list-value" name="field_category_list_value" class="form-select"><option value="All">- Any -</option><option value="cat1-en" selected="selected">cat1-en</option><option value="cat2-en">cat2-en</option><option value="cat3-en">cat3-en</option></select>
</div>
          </div>
                  </div>
                              <div class="views-exposed-widget views-submit-button">
        <input id="edit-submit-ttt-view-filter" name="" value="Apply" class="form-submit" type="submit">      </div>
          </div>
  </div>
</div></form>    </div>

Where it's being rendered and functioned well in the Bartik theme, is this the clue to solve it? I really don't know how to start digging into this !!

Best regards,

naamaan’s picture

FileSize
7.67 KB

Another thing is that in the view page, the preview section, the exposed filter is working well!

Attached the the view exported details in file named "ViewExport.txt", might be helpful.

  • Adaptivetheme version: 7.x-3.4.
  • JQuery update 7.x-2.7 module is used with JQuery 1.10 activated on all the site.
  • Panels 7.x-3.9are used all the site.
  • Content and Entity translation modules are used all the site.
naamaan’s picture

FileSize
64.51 KB

Hi,

I'm using the devel module to debug the page displaying the view, and I noticed that the html markup in the $page array variable is exists but not printed to the page actually!!!

see the attached snapshot named "ExposedView.png"

What's actually functions between the $page array variable and the printing it's values out?

naamaan’s picture

And now it's a CSS problem, there is a class:
.views-exposed-widgets {
display: none;
}

Don't know how it came to here :(
So frustrating...but thanks god it's done.

Will close this issue.

naamaan’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

apaderno’s picture

Title: Views expose filed filter not showing!!! » Views exposed filter doesn't appear
Category: Bug report » Support request