It seems like nodes view is dead, I'm stuck with the red x saying the version is not compatible with my version of drupal (6.9), meanwhile cck date supports views2. At the same time, event really has an advanced user interface and I dont want to defer from it in case it picks up pace again in maintenance. So I developed some workaround that consist of the following:
- Creating two CCK date fields for start and end
- Creating a module to syncronize the event dates with the cck date fields
- Use cck date values in views2
- Use event values in template (more detailed)

I'd be happy to hear comments.

The module uses the node_api hook, this is the code:

/**
 * Implementation of hook_nodeapi().
 */
function eventcck_nodeapi($node,$op,$a3,$a4) {
  if($node->type=="event" && $op=="prepare")
  {
    $node->field_cckeventstart[0]["value"]= $node->event["start_site"];
    $node->field_cckeventend[0]["value"]=$node->event["end_site"];
  }
}

Comments

shadysamir’s picture

Priority: Critical » Normal

This is what happens when I post when sleepy. I meant "event views" module not "nodes view", and who said that was critical? Maybe I think so subconsciously.

patchshorts’s picture

Um, why haven't you created a project for it?! I've used events and calendar several times, switching back and forth, always switching from events because I needed views capable date stamped fields at the time, always switching from calendar because the date module sucked then. I don't know about Date now, I just know that every time I use the event module, it consistenly gives me what I want with the workaround I've been using below. I've been doing the same thing via this cronjob which syncs the updated & created fields with the event field once per field:

*/5 * * * * /usr/bin/env mysql -uuser -ppassword drupal -e 'update node,event set created=unix_timestamp(event.event_start),changed = unix_timestamp(event.event_end) where node.nid=event.nid and created!=unix_timestamp(event.event_start);'

This way, I could use the Authoring information in views via the "Node" dropdown.

Can you tell me how to use this code above. I haven't gotten around to creating a module yet.

patchshorts’s picture

nm, I figured it out, works nicely. Is there a good way to hide the cck form during edit?

shadysamir’s picture

I wanted to find a way to hide the form but this needs extra work that I'm not willing to put into my client's project. I just asked the client to ignore the fields :)

I'm not sure I should have a project for this. It sounds more like a hack than a project.

japerry’s picture

Status: Active » Closed (outdated)

Event for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.