New Site and some questions

Events happening in the community are now at Drupal community events on www.drupal.org.
jredding's picture

Hey All,

The latest site I've been working on is almost ready for "official" release.
http://cmtickets.com

We used this site as an example of CCK and views at the last Drupal Meetup.

For those that weren't there the lowdown on this site is
4.7
CCK + Gmap + Views + Location

The frontpage is a Page with a gmap macro parsing a "views" rss feed. Super-simple to setup and the most work I've done on the entire site as been talking with lawyers about the legality about "phase #2" (has to do with donations..).

Now I have a few questions for everyone here.. a best practice and advice Q&A session
1) I'd like to track the number of tickets given out per Ride; which occur the last friday of every month.
-Naturally I thought of a taxonomy but that immediately became an administration nightmare. The "terms" are dates and unless I spend a lot of time playing with weights they do not order correctly.
-Currently I am using a CCK text field type with a select widget. It makes it easy to manage the order, provide a simple drop-down BUT I have to update it every month. (Lame!)

-I would love to do this with a very simple piece of php code that automagically displays every month between the current date and July of 2004. However CCK didn't accept it when I put PHP code in the "One item per line" area.

-I could easily see this coming up again. Anyone has experience with this?

2) Anyone know how to get gmap to display more information in the marker?

And finally the infamous question. Any suggestions? ;)

Comments

A few ways

Tresler's picture

I've been playing with this some and I can think of two ways it should be doable, althought I haven't had time to test these yet.

a) Ugly and easy. Cron runs. Once a month "UPDATE your CCK field with NEW RIDE"

b) Less ugly (but still a work around) but more work.
Create a page (possible with webform, but a page with php code enabled would work) and build your CCK form from scratch, dynamically generating your 'ride date' variable and sending it through FAPI. On Submit, this info an be passed to both CCK and/or Views.

My application for this is for Views to do a 'price range' i.e. Pass two filters to the Views Object for max-price' and 'min-price' to filter results by price based on user-input. I'm not sure if CCK works off a buildable object (don't know the immards of CCK to well.)


c) Check out Event Views. I haven't looked at it yet, but it might be able to just pull the dates from past events. if (event_happened) {put in drop down menu};

Right, CCK not views. Sorry, got crosswised in my thinking. This wouldn't work.

Good luck.

I'll go simple and easy

jredding's picture

I didn't event think of cron.. that's ugly but really simple and quick. I've been looking at forms api but at this point I don't want to go down that road (its kind of a pain in the a**).

Hey an idea... Anyone want to present Forms API at a meetup? I'm into it, never done it but can see many, many applications.

-Jacob Redding

-Jacob Redding

If I can ever remember a meetup

Tresler's picture

I could present on FAPI, although there are people better than me out there.
Of course this is all cntingent on me remembering when the metups are. I'll pay someone $1/month to call me and emind me about meetups 2-4 days in advance. LOL.

I too am a Forms API

strudeau's picture

I too am a Forms API beginner and times they are a-changin' ... the Drupal 5.0 FAPI is a little different than 4.7, too, so hrm...