[development] associate dates to nodes

Alex Moreno al3xmor3no at gmail.com
Mon Jul 9 15:47:18 UTC 2007


Yes, but when you assign a date to the multiple date field, it should be
validated to avoid the same room to be reserved twice. I suppose that this
is too complex for the cck module. I´m wrong?

This is why i was thinking in a custom module.


On 7/9/07, Victor Kane <victorkane at gmail.com> wrote:
>
> On 7/9/07, Bèr Kessels <ber at webschuur.com> wrote:
> >
> > Op maandag 09 juli 2007, schreef Victor Kane:
> > > The short answer is that you want to create special content types
> > > (reservation), and then, using the content construction kit module
> > (cck:
> > > http://drupal.org/project/cck) add the appropriate fields, including
> > the
> > > date field, supported by the date field module (
> > > http://drupal.org/project/date).
> >
> > This won't work. A "room" will need an arbitrary amount of dates. So you
> > will
> > need either nodereference, wich won't scale, or some other relational
> > module
> > (wich won't scale either).
>
>
> It will work.
> You can use the date field as a multiple field, which can certainly give
> an arbitrary number of dates, or any other fields necessary for
> reservations.
> To go to the trouble of a custom module seems really overkill.
> Of course, there is more than one way to do it.
>



-- 
Alejandro Moreno
<a href="http://www.tdo.es">Consultoría de Publicidad y Marketing Online</a>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20070709/d78d6548/attachment.htm 


More information about the development mailing list