Closed (fixed)
Project:
Event
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2006 at 11:52 UTC
Updated:
5 Dec 2008 at 17:20 UTC
Jump to comment: Most recent file
I'm nowhere near experienced enough to attempt this, but wouldn't it be possible to add basic CCK support to the Event Module while still maintaining Flexinode support, by checking to see which module (flexinode.module or content.module) is installed?
It seems that many people (including myself) are moving toward CCK, but are somewhat trapped by the fact that the Event Module only support Flexinode at present.
Perhaps we could cobble together a 'bounty' to assist someone in making this happen?
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | event_19.patch | 1.27 KB | suttapong |
Comments
Comment #1
killes@www.drop.org commentedevent module supports any node type it isn't tied to flexinode at all.
Comment #2
Timotheos commentedI'm using Event module with CCK and it works great.
Comment #3
gmak commentedCan you tell me which versions of Event Module & CCK you are using? When looking at the Calendar (eg. month view) do you see the 'human readable' event type or the CCK event type (ie. content_event_type)?
Thanks
Comment #4
gmak commentedOK, I just downloaded the latest Event module and CCK modules. As far as I can see Event does 'support' CCK nodes, but
1. CCK node types do not appear in the event type filter on the various calendar views (month, week, day, list)
2. The node type displayed on calendar views is not the event type in human readable form, it is the CCK name (ie. "content-Test" rather than "Test")
Those are the sort of things that I was hoping we could get fixed.
The versions I'm using are:
event.module,v 1.183.2.6content.module,v 1.56.2.3Thanks.
Comment #5
karens commentedI can't make a patch because my version of events is too patched up, but I think there is an easy fix for this. In the function _event_get_type_control() (somewhere around line 1641) you need to change:
to
That's a new method for handling type names in drupal 4.7. I don't have flexinode installed so can't confirm it will also work on the flexinode types, but I think it should. It definitely works on standard content types and cck types.
Maybe someone with a clean events module can test this and create a patch if it seems to work.
Comment #6
gmak commentedI've applied the changes that you suggest. It goes some way to fully accommodating CCK, but there is still no filtering of the events when you select from the event type filter dropdown on calendar views. If you are using only flexinode, the filtering works. There is still some changes needed to get the actual 'human readable' name of the CCK node type on the calendar views (but this is covered by a previous post in this thread).
Comment #7
suttapong commentedanother point is code somewhere like
change to
on every theme_event_node_*(day/week/month/table/list)
and
should be
it's fixed where some nodetype didn't link to event.
But the filter still didn't work.
Comment #8
rubenk commentedTook a look. As referenced here
http://drupal.org/node/41626
You should apply the same logic to the
function event_pageI stuck this in under if ($types) {
Notice that i changed if (is_numeric) to elseif (is_numeric)
Someone want to be kind enough to make a diff from this?
I am trying to see how to peel off the "conent-" part of cck terms off. Any thoughts?
Comment #9
rubenk commentedsorry.. I forgot to close the quote... make sure to end it in */
Comment #10
suttapong commentedok I got a resolution for filter with CCK
try with these aroundline 283 of event.module
to
it work well with CCK + eventfilter by node type
i think the old code module_hook() should be change to
node_get_name() in 4.7
Comment #11
rubenk commentedretool... could you make a diff file of the changes we just talked about with a brief smmary of the changes made and why so someone can review the patch? Thanks !
Comment #12
suttapong commentedsorry for the wrong code at
must be
Comment #13
suttapong commentedall what i do is
with event.module line around 1641
to
then aroundline 283 from
to
and I have change with event.theme(if you need better look of CCK name see the 'human readable' event type)in calendar view
change all
$node->event_node_titleto
node_get_name($node)sorry for too much changes I'm new for issue
Comment #14
suttapong commentedand last for filter to get work is
line 1649 of event.module
to
Comment #15
suttapong commentedthank you for patch support
from mm.co.th
Comment #16
suttapong commentedComment #17
killes@www.drop.org commentedI've applied the patch to the cvs version, the changes will appear in the 4.7 version after the next merge.
Comment #18
rubenk commentedI thought that the cvs fork is using cde that isn't backwards compatible with 4.7. This was discussed recently in an issue where a person running drupal 4.7 was getting an "array" error. will the cvs version be backported? Thanks.
Comment #19
gmak commentedI want to thank everyone who chipped put up their fixes and patches for this. It has helped me greatly. But, (there's always a but) now when selecting to filter by event type I'm getting titles for the node_X views (X=month, day, week, etc) that say "Events - Filter:" but it is not showing the 'filter selection' (eg. it should say "Events- Filter: Event Type".
This could be the final fix....
Thanks again.
Comment #20
rubenk commentedStrange. I haven't used the posted patch but using the code change I mentioned a few posts above, I am able to select a CCK nodetype from the drop down menu and when I select it I do indeed get events - filter: [cck name]. After doing so, if I click on week, day, etc. it continues to say events - filter: [cck name].
So, in short, if you are not seeing this then it is possible that somewhere between my hack and the posted patch, we lost this. - Is this indeed your problem? Any thoughts?
Comment #21
gmak commentedI'm not sure where I've missed it, but this:
isn't passing a value to $filter[]. This is why I'm getting page titles like "Events - Filter:" with no 'type' being shown.
Also, I still don't have 'human readable' node types being displayed in the Recent Events block.
Any ideas?
(Once again, thanks to all who are helping me with all this stuff. I do appreciate it and hope that as I get more familiar with Drupal and PHP, I'll be able to start adding back to the community rather than just begging for help :-P )
Comment #22
killes@www.drop.org commentedThe 4.7 version is no longer supported. Please re-open if this still applies to a more recent version.