Re: Views filter rooms by occupacy
muhammed naushad <[email protected]> Tue, 20 Jan 2015 09:20:39 +0400
| Newsgroups | gmane.comp.php.drupal.support |
|---|---|
| Message-ID | <CAKVDCnuN2=s1AgwrF+R_=6CaHA_pp2JEm1z+iQh3-baDsLEKYA@mail.gmail.com> |
--===============2971484916462321063== Content-Type: multipart/alternative; boundary=047d7bdc12b0b0ecb0050d0e9adb --047d7bdc12b0b0ecb0050d0e9adb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I would recommend you to use custom module. If you want to use the view please mention how you connect these two content types? On Mon, Jan 19, 2015 at 6:37 PM, Llu=EDs Forns <[email protected]> wrote: > I have a site with 2 content types: rooms and reservations. I want to lis= t > all the rooms without a reservation for an interval, and also for service= s, > capacity, .... > > I tried creating a view with a PHP filter to check free rooms, but then i= f > the page lists 10 rooms, sometimes there are 7, 2, or 0; because the filt= er > lists the 10 rooms and after remove the occupied ones. > > I have tried to create a "subview" filter to select nodes "not in (view o= f > occupied rooms); but I haven't find a way to do so. > > Any idea of how to accomplish this? > > thanks > -- > *Ser freak no =E9s imprescindible per ser inform=E0tic, per=F2 ajuda. > > -- > [ Drupal support list | http://lists.drupal.org/ ] > --=20 Thanks Muhammed Naushad Web Developer +971529187882,+919744663973 http://stunningspider.com --047d7bdc12b0b0ecb0050d0e9adb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I would recommend you to use custom module.=A0</div><= div><br></div><div>If you want to use the view please mention how you conne= ct these two content types?</div></div><div class=3D"gmail_extra"><br><div = class=3D"gmail_quote">On Mon, Jan 19, 2015 at 6:37 PM, Llu=EDs Forns <span = dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">enboi= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quote" styl= e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div di= r=3D"ltr"><div>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 als= o for services, capacity, ....<br></div><div><br></div><div>I tried creatin= g 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 r= ooms and after remove the occupied ones.<br clear=3D"all"><div><br></div><d= iv>I have tried to create a "subview" filter to select nodes &quo= t;not in (view of occupied rooms); but I haven't find a way to do so.</= div><div><br></div><div>Any idea of how to accomplish this?</div><div><br><= /div><div>thanks</div><span class=3D"HOEnZb"><font color=3D"#888888">-- <br= ><div>*Ser freak no =E9s imprescindible per ser inform=E0tic, per=F2 ajuda.= <br></div> </font></span></div></div> <br>--<br> [ Drupal support list | <a href=3D"http://lists.drupal.org/" target=3D"_bla= nk">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear=3D"a= ll"><div><br></div>-- <br><div class=3D"gmail_signature"><div dir=3D"ltr">T= hanks<br>Muhammed Naushad<br>Web Developer<br>+971529187882,+919744663973<b= r><a href=3D"http://stunningspider.com" target=3D"_blank">http://stunningsp= ider.com</a></div></div> </div> --047d7bdc12b0b0ecb0050d0e9adb-- --===============2971484916462321063== 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/ ] --===============2971484916462321063==--