Send support mailing list submissions to
support@drupal.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.drupal.org/mailman/listinfo/support
or, via email, send a message with subject or body 'help' to
support-request@drupal.org
You can reach the person managing the list at
support-owner@drupal.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of support digest..."
Today's Topics:
1. Re: Views filter rooms by occupacy (Llu?s Forns)
2. Blocks (Roger)
----------------------------------------------------------------------
Message: 1
Date: Wed, 21 Jan 2015 18:07:23 +0100
From: Llu?s Forns <enboig@gmail.com>
Subject: Re: [support] Views filter rooms by occupacy
To: support@drupal.org
Message-ID:
<CAGTZhB7QJ1unmLS4dFkmJ4==DdGa9+_HrL69gpmsws7XU5GhJQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
At last it works. I created another view to list reservations by dates, and
I called this inside context filter to avoid selected nodes.
thanks
2015-01-20 11:40 GMT+01:00 Llu?s Forns <enboig@gmail.com>:
> I use entity reference to connect them.
>
> I thing a way to achieve this is adding a context filter for NID and using
> PHP to select all rooms occupied and remove them. I have a view to select
> reservations by date, I could call it using PHP, apply the date filter, and
> get the nids to remove.
>
> My problem now is how to call a view programatically just to get the nids.
>
> 2015-01-20 6:20 GMT+01:00 muhammed naushad <naushunaushad24@gmail.com>:
>
>> 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?s Forns <enboig@gmail.com> wrote:
>>
>>> 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
>>> --
>>> *Ser freak no ?s imprescindible per ser inform?tic, per? ajuda.
>>>
>>> --
>>> [ Drupal support list | http://lists.drupal.org/ ]
>>>
>>
>>
>>
>> --
>> Thanks
>> Muhammed Naushad
>> Web Developer
>> +971529187882,+919744663973
>> http://stunningspider.com
>>
>> --
>> [ Drupal support list | http://lists.drupal.org/ ]
>>
>
>
>
> --
> *Ser freak no ?s imprescindible per ser inform?tic, per? ajuda.
> *La vida no ha de ser feli?, ha de ser plena.
> *Abans d'imprimir aquest missatge, pensa en el medi ambient.
>
--
*Ser freak no ?s imprescindible per ser inform?tic, per? ajuda.
*La vida no ha de ser feli?, ha de ser plena.
*Abans d'imprimir aquest missatge, pensa en el medi ambient.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20150121/f9ccdd11/attachment-0001.html
------------------------------
Message: 2
Date: Thu, 22 Jan 2015 09:38:13 +1100
From: Roger <arelem@bigpond.com>
Subject: [support] Blocks
To: support@drupal.org
Message-ID: <54C02A55.7060306@bigpond.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Using Drupal 7. Mayo theme.
On the eckankar.org.au front page I have a number of blocks in the
centre of the page and in each sidebar, each with info and an image. As
admin I can alter the content and position of each block.
Been using Drupal for many years but the below has me puzzled.
Is there any way to:
-- give a specialised user with Role of MainEditor permissions to
enter/change info in blocks on a front page?
-- let MainEditor alter block positions with a Weight number?
-- make articles stay in a predetermined order, not display as 'latest
to top of page'?
I also have empty blocks positioned via the Blocks List at the top of
Content section and in the Highlighted. I can edit the block info as
admin but not as Editor. If I put an article or page in the block it
displays at the bottom of the front page. If I enter info it stays at
the top. See the block with the orange and yellow flowers as an example.
Perplexing!
Maybe I have to rethink the whole theme and make it more like
news.com.au displaying block stuff in small blocks which alter position
depending on latest entries and link to individual pages.... hmmmm food
for thought!
Does anyone have suggestions or hints on how would be a good way to
handle this.
Thank you for any help
Roger
------------------------------
--
[ Drupal support list | http://lists.drupal.org/ ]
End of support Digest, Vol 145, Issue 23
****************************************