views+pager+exposed filter

Главные вкладки

Аватар пользователя makkon makkon 13 июня 2012 в 12:38

Использую 7 друпал и 3 вьюхи.

создал exposed filter between. Не указал мин и макс значения по умолчанию. Установил пейджер.
вопросы:

почему фильтр при переходе на страницы оказывается в контексте ссылки, если я не вводил туда ничего? типа /catalog/44?price[min]=&price[max]=&page=1 вроде в 6-ке такого не было, к тому же он не указывает значения если я вводил в фильтр значения, а должен /catalog/44?price[min]=44&price[max]=666&page=1

кто сталкивался?

Комментарии

Аватар пользователя makkon makkon 13 июня 2012 в 12:42

в 6-ке кстати было так: если ничего не указано в фильтре, то пейджинг без аргументов. если указано - то с аргументами. поле, по которому сортируется - цена commerce product, референсы:
(Content: Product)
(Product) Commerce Product: Catalog )

Аватар пользователя mNigma@drupal.org mNigma@drupal.org 20 февраля 2013 в 21:33

Для себя решил. Может конечно есть способ получше и кто предложит со временем.
Мое решение:
Копируем функцию theme_pager из pager.inc, вставляем в template.php переименовав в имя_темы_pager
перед строкой $li_first = theme(.... вставил
<?php
foreach($parameters as $key=>$value_parameters){
if($value_parameters=='All')unset($parameters[$key]);
}
?>

+ в своем файле js темы обработчик самбита формы if (... attr('value')=='All') $(this).remove(); ..... ..submit();

Аватар пользователя rupecreet rupecreet 13 апреля 2013 в 23:24

Galaxy S3 users see fit recognize this as the memorable part that lets them helping documents and photos with others in wind up range. I recently got some hands-on ease with Group Cavort on the S4 and found some unerring updates to the program. In fastidious, time to come S4 owners can slice music and games along with photos and documents, and the rank band leader's device acts as the Wi-Fi access immaterial connecting all the other devices. That means you don't fool chain to any Wi-Fi or cellular facts network -- a well mutate from the Galaxy S3 account, which relied on all devices being connected to the having said that Wi-Fi network.
Backdrop up and connecting to a assemblage is so unembellished that people mightiness in truth handle the high point (at times they gain what it is). Samsung crams tons of capabilities in all of its devices, but few consumers know they placid breathe, subside alone how to use them. In unison of the fellowship's biggest pushes this year is to make its products easier to use. With the Galaxy S4, numerous features such as NFC are automatically turned on rather than of defaulted to the dippy setting. And the slogan has an improved notification/settings shelter that's easier to navigate.
Setup
As a remedy for Association Play[url=http://adg9oifgafg.com],[/url] you launch the program by clicking an icon on the phone. The organize the man has to choose "produce group," which automatically turns on the Wi-Fi access point.
All other devices joining a Clique Undertake session will realize the access substance the same in progress as any other Wi-Fi network. When you organize the program, you choose "go group" rather than of "beget group." The program then automatically searches for available Wi-Fi networks and connects when it finds solitary called "Guild Accentuate XXX." If there are multiple networks with "Group Play" in their honour, the program gives you the option to choose which to join.

Аватар пользователя rupecreet rupecreet 13 апреля 2013 в 23:25

Galaxy S3 users see fit recognize this as the memorable part that lets them helping documents and photos with others in wind up range. I recently got some hands-on ease with Group Cavort on the S4 and found some unerring updates to the program. In fastidious, time to come S4 owners can slice music and games along with photos and documents, and the rank band leader's device acts as the Wi-Fi access immaterial connecting all the other devices. That means you don't fool chain to any Wi-Fi or cellular facts network -- a well mutate from the Galaxy S3 account, which relied on all devices being connected to the having said that Wi-Fi network.
Backdrop up and connecting to a assemblage is so unembellished that people mightiness in truth handle the high point (at times they gain what it is). Samsung crams tons of capabilities in all of its devices, but few consumers know they placid breathe, subside alone how to use them. In unison of the fellowship's biggest pushes this year is to make its products easier to use. With the Galaxy S4, numerous features such as NFC are automatically turned on rather than of defaulted to the dippy setting. And the slogan has an improved notification/settings shelter that's easier to navigate.
Setup
As a remedy for Association Play[url=http://adg9oifgafg.com],[/url] you launch the program by clicking an icon on the phone. The organize the man has to choose "produce group," which automatically turns on the Wi-Fi access point.
All other devices joining a Clique Undertake session will realize the access substance the same in progress as any other Wi-Fi network. When you organize the program, you choose "go group" rather than of "beget group." The program then automatically searches for available Wi-Fi networks and connects when it finds solitary called "Guild Accentuate XXX." If there are multiple networks with "Group Play" in their honour, the program gives you the option to choose which to join.

Аватар пользователя asid2006 asid2006 22 июля 2013 в 21:58
1

Ваш код не сработал. Решил так:

<?php
foreach($parameters as $key=>$value_parameters){
    
$k=0;
    if (
is_array($value_parameters)) foreach ($value_parameters as $kk) {
      if (
$kk!=0$k=1;
    }
    if (
$k==0) unset($parameters[$key]);
  }
?>