Using Drupal 4.6.5
Installed Event Module
Created a flexinode type called "happenings" to use with events calendar.

Under administer -> content -> content types
selected "happenings" to show in event calendar on "all views."

Under administer -> settings -> event
under Taxonomy filter controls selected "never show taxonomy filter control"
under Content type filter controls selected "never show content type filter control"

But when I view the calendar, in any view (month, week, day, etc) at the top of the event I see the link (happenings) - with Mouseover text of "limit view to events of this type". Clicking on it leads to a filtered view showing only happenings content types.

I don't want this link to be visible in any calendar views. I thought setting the two filter controls to "never show" should have achieved this.

Please help.

Comments

lisa’s picture

Version: 4.7.x-1.x-dev » 4.6.x-1.x-dev

Mistake in initial post - I am using Event 4.6 not 4.7

I added the following to event.css to hide link to filtered calendar view. Don't know if this was the best solution but seems to work.

.event-calendar .type {
  display: none;
}
chromeyellow’s picture

Priority: Critical » Normal
Status: Active » Closed (works as designed)

Hi,

What you describe isn't a bug - it's a feature (admittedly a sometimes annoying one).

Turning off the type filter, as you did, stops the filter select boxes from appearing in calendar views. (If you haven't seen these, temporarily turn filter boxes back on. You'll see two drop-downs, one allowing you to filter by (node) type, and one allowing you to filter by taxonomy term.)

There are three ways to stop the "type" link from appearing in event listings. You've chosen the least invasive - simply setting display:none at the css level. This works fine.

The middling-invasive method is to dig into event.theme, and comment out (or delete) all appearances of the link. It shows up in 7 or 8 different places; searching for the function _event_get_types will take you to each place.

Or you can dig deep and remove it from event.module itself. But that's scary.

All in all your fix will work, though if you're like me at some level you find it irritating to know that the code is still doing the work to generate these links and all you're doing is hiding them, when you really want to terminate with more prejudice.