Drupal exposed filter - block

Drupal 7Potřeboval jsem udělat filtr zboží, který si bude moci editovat uživatel, aby se mu filtrovalo. To je snadné, používám na to modul Views dependet filters. No jo, jenže jsem potřeboval, aby ten filtr nebyl ve stránce ale v bloku. A to mi bohužel nefungovalo... Je to asi chyba drupalu, různě se to po fórech řeší, ale mě se nezadařilo najít konkrétní řešení. Hledání mi trvalo doslova několik odpolední. A když jsem chtěl hodit flintu do žita... Ejhle!

Máteli stejný problém postupujte dle mě.

  • Vytvořte si ve views block s exposed filtry
  • Nainstalujte modul Views Block Exposed Filter Blocks.
  • Naistalujte si modul Better Exposed Filters. (Možná ho nebudete potřebovat, ale mě to bez něj nejelo a už se v tom nehodlám dále babrat :) Nechápu význam modulu v tomto užití )
  • Nakonfigurujte block dle obr. v pravo
  • Nakonfigurujte dle:
    • Vystavení formuláře

      Vystavení formuláře v bloku: Ano
      Styl vystaveného formuláře: Better Exposed Filters | BEF Settings
      Exposed form blocks: Výchozí
  • V jiné:
    • Jiné

      Strojový název: block
      Komentář: No comment
      Použít AJAX: Ano
      Hide attachments in summary: Ne
      Hide contextual links: Ne
      Use aggregation: Ne
      Nastavení dotazu: Nastavení
      Field Language: Aktuální jazyk uživatele
      Mezipaměť: Žádné
      Zobrazení odkazu: Žádné
      CSS třída: blockpapiru0
      Téma vzhledu: Informace
      Block caching: Cache once for everything (global)
  • nyní se vám vytvoří blok s filtrem. Zároveň máte blok z views s výpisem obsahů.
  • Aby jste mohli blocky zobrazovat společně a nemuseli nastavovat každý zvlášť, použijte modul Block Group, tento modul vám umožní vytvořit Block group, kterému přiřadíte block s filtrem i views, zároveň můžete editovat zobrazení bloku Group a nastavení se přenese do podbloků.

To je celé, snad jsem na nic nezapoměl. Celé řešení není elegantní, ale je funkční... Chápu ho jako narovnávák na ohýbák... A až bude v budoucnu čas, pokusím se to udělat elegantněji...

Komentáře

1
Obrázek uživatele [user:name]

McCann, who has been in the job just a matter of weeks, has made it clear
to all that he's not interested in putting a stop gap measure in place, that the
deal he's proposing will need to shore up the company's
finances for the long term. State governments say they won't bail
the company out but will try to ensure workers don't lose their jobs.

Editor and reporter with 10 years of experience in Greater China, namely Taiwan and
Macau, in printed and online media, with a focus on finance, gaming, politics, crime,
business and social issues. The hotel features 340
rooms, which include 60 suites, four Penthouse suites, and
276 standard rooms. As anticipation builds for its August debut, the project represents a milestone
in urban development, promising a vibrant future for Brisbane’s cityscape.

"Operationally, conditions are really challenged," analyst Angus Hewitt said.
Ironically, amid these rolling scandals, Star was actually tipped over the edge by its ongoing plans for expansion. Now
one of Australia's biggest casino operators is facing the prospect of losing it all, with a top analyst predicting Star Entertainment Group has a
50 per cent chance of going into administration. The company will release its interim results at the end of
February but Morningstar analyst Angus Hewitt warns
the company needs a solution before then. A Star spokesperson yesterday told
the ABC that both the old casino building and the Treasury Hotel remain subject to an "ongoing" sale
process that was "progressing well". "Charter Hall declined to extend the dates for satisfaction of the conditions.
The company has told investors it has made a deal with its Hong Kong partners, surrendering its share in Queens Wharf. "These two towers make up the river-facing side of the integrated resort
and form the platform for the Sky Deck that will sit more
than 100 metres above street level," Mr Crooks said. The next two towers facing South Bank will house Star’s five-star Grand Hotel and the casino’s gaming operations. Queen's Wharf project director Simon Crooks said the next phase would mark the change from when "the people of Brisbane looked down into the buildings and
instead, looked into them". Star has been seeking a financial lifeline in recent months, after revealing its cash reserves sank to just $79 million at the end of 2024. The latest Chinese offer could involve CTF and FEC taking over almost $740 million in debt from Star and paying hundreds of millions to complete the Brisbane casino development.

Shares in struggling casino giant Star Entertainment have plummeted by more than 15 per cent
after a brief trading halt was lifted on Friday, as the company searches for a financial
lifeline to avoid collapsing. Star is also awaiting the outcome of a court decision on fines for breaches of anti-money-laundering
regulations that are expected to reach to hundreds of millions
of dollars. Star said Destination Brisbane Consortium (DBC), in which
it continues to hold a 50 per cent equity stake, has a debt exposure of $1.4 billion. "As of this morning, the parties have been unable to reach an agreement on a number of outstanding commercial issues, which in turn prevent the finalisation of long form documents," Star said in a statement to the ASX.
Star shares dropped 16.3 per cent to a record low of 9.2¢ after the company confirmed on Friday
that the deadline to renegotiate the sale of its 50 per cent stake
in Queen’s Wharf to Chow Tai Fook Enterprises and Far East Consortium
had passed with no progress from the parties.

This striking pedestrian bridge, designed by Grimshaw, spans
over 320 meters and stands as an iconic structure within Brisbane’s collection of bridges, enhancing connectivity for locals and visitors alike.
With a 19-metre bar and electric atmosphere, LiveWire
ensures celebrations linger late into the night. Showcasing
Brisbane’s finest talent in music, comedy, and more, the vibrant venue features a dynamic
lineup of acts. Signature features include Sky Deck, a breathtaking rooftop destination with a 250m runway
of restaurants and bars 100m above the Brisbane River, perfect for private
functions or soaking up 360-degree views.
With no ongoing link to Chau, however, its key personnel for the Brisbane casino were deemed suitable in 2015.
There were "ongoing concerns" Chow Tai Fook would not disclose as required.

A Chow Tai Fook spokesman says it had "not made any definite plans in 2014 about its many possible options to refer VIP customers to the Queen's Wharf casino when it was expected to be opened some seven years later".

"The licence it holds is a public licence. It's owned by the people of Queensland and to retain that licence, to prove they should be given that licence back, they should be transparent." "It raises profound issues around transparency and the Queensland public can really have no confidence that Star is actually reforming itself," he said.
Alliance for Gambling Reform chief advocate Tim Costello said
the public deserved to have access to the full
plan given The Star's history. On its website, where there is limited detail
about its Queensland remediation plan, The Star states, "we want The Star to be known for being transparent, accountable and trustworthy."
Beyond gaming, the venue delivers an upscale social experience with dining,
drinks and an energetic city atmosphere. Unlock special promotions, loyalty-style perks
and extra value designed to make every session more
rewarding. Enjoy the atmosphere of a luxury gaming destination with a polished casino floor built for exciting in-person play.

Then-Queensland attorney-general Shannon Fentiman appointed Nick Weeks as special
manager to oversee Star after the company was
deemed unsuitable to hold a casino licence. From today,
access is open to the Neville Bonner Bridge from South Bank to Queen's Wharf.
Many other facilities are set to open in the weeks and months to come.

It enhances public access to the riverfront and includes extensive walkways and a
plaza beneath the footbridge across the river.

Přidat komentář