Views filter rooms by occupacy
LluĂs Forns <[email protected]> Mon, 19 Jan 2015 15:37:36 +0100
| Newsgroups | gmane.comp.php.drupal.support |
|---|---|
| Message-ID | <CAGTZhB7iYtSAhP0Y1826eYxKmFmiA4qZnL3DU87vsY2MQrgugw@mail.gmail.com> |
--===============5565286452099192457== Content-Type: multipart/alternative; boundary=e89a8f3ba349acb061050d024491 --e89a8f3ba349acb061050d024491 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have a site with 2 content types: rooms and reservations. I want to list all the rooms without a reservation for an interval, and also for services, capacity, .... I tried creating a view with a PHP filter to check free rooms, but then if the page lists 10 rooms, sometimes there are 7, 2, or 0; because the filter lists the 10 rooms and after remove the occupied ones. I have tried to create a "subview" filter to select nodes "not in (view of occupied rooms); but I haven't find a way to do so. Any idea of how to accomplish this? thanks --=20 *Ser freak no =C3=A9s imprescindible per ser inform=C3=A0tic, per=C3=B2 aju= da. --e89a8f3ba349acb061050d024491 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I have a site with 2 content types: rooms and reserva= tions. I want to list all the rooms without a reservation for an interval, = and also for services, capacity, ....<br></div><div><br></div><div>I tried = creating a view with a PHP filter to check free rooms, but then if the page= lists 10 rooms, sometimes there are 7, 2, or 0; because the filter lists t= he 10 rooms and after remove the occupied ones.<br clear=3D"all"><div><br><= /div><div>I have tried to create a "subview" filter to select nod= es "not in (view of occupied rooms); but I haven't find a way to d= o so.</div><div><br></div><div>Any idea of how to accomplish this?</div><di= v><br></div><div>thanks</div>-- <br><div class=3D"gmail_signature">*Ser fre= ak no =C3=A9s imprescindible per ser inform=C3=A0tic, per=C3=B2 ajuda.<br><= /div> </div></div> --e89a8f3ba349acb061050d024491-- --===============5565286452099192457== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- [ Drupal support list | http://lists.drupal.org/ ] --===============5565286452099192457==--