Each game is a node so we can use cck for dates with "events" or "date" & "calendar" modules.
The same for locations we can use the "location" module.
Each game is a node so we can use cck for dates with "events" or "date" & "calendar" modules.
The same for locations we can use the "location" module.
Comments
Comment #1
timbraeckman commentedThat's true :-) It shouldn't be part of the module you mean?
Comment #2
Alun commentedHello toth_O, the dates is a good idea. You should (although I haven't tried) be able to use the dates already in Views calendar. As for location, you can add that yourself using CCK, I wasn't thinking of adding it automatically as it might not necessarily be needed by everyone and its simple enough for you to add it yourself!
Sound OK?
please reopen if you have further questions, or if the date doesnt actually, work, in which case I'll have to get on that.
Comment #3
timbraeckman commentedHi Alun,
Could you have a setting in match settings that hides the date/hour for matches so we can add it using CCK? I think the problem will be solved with the timezone too. I'm not sure but i sure hope it will :-)
grtz Tim
Comment #4
Alun commentedTim, good idea. adding the date CCK field automatically in the module may well be the best and simplest solution. You can currently hide the date display in the module, If the CCK field fixes the date issues, I'll be happy to remove it from the match form altogether.
Comment #5
timbraeckman commentedMmm... i don't see where i can hide the date display in the module?
But i mean the insert too huh.
I would use a date/hour CCK field with date popup. That will be easiest for the input and most secure for output i think.
Can you try that out? It's kinda dangerous for me to try-out as my site is almost in production phase...
Comment #6
Alun commentedChange the display here - www.example.com/admin/settings/matches
Yes I'll try it out, but not in a hurry, I have a lot on the plate. It will also affect a lot of things in the module which run nicely, so may take some time. I'll get back to you as soon as I can. I know a few people are relying on this to run production sites for the new season.
Comment #7
toth_O commentedSorry for the late response .
Yes I use successfully "calendar" ,"gmap","location" and "gmap location" modules with leaguesite,no problem with that, also "views calendar" module works ok!
As you said you dont need to implement them automaticaly in your module we can add it as cck fields just easily!.
I was just thinking that you don't need to reinvent the wheel to make your own implementation of those features.
@DeLaPena I will just use css "no display" in my theme to hide the "leaguesite dates" div so the users will only see the cck fields and Alun wont have to change his code.(Not tested yet but it may work i will tell you if it does).
Edit; I also use leaguesite with "og" module (each team is an "organic group") and "og forum" (each team has its own forum")
Sorry for my bad english i'm a french dude :)
Comment #8
Alun commentedI don't think hiding the date will work, as it is marked as required I believe. If you implement a custom module and alter the form through hook_form_alter though, and remove the required field, then it would work.
Alun
Comment #9
Alun commentedIn fact, if you used hook_form_alter, you wouldn't need the CSS anymore, as you could just remove the fields completely.