CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Calendar popup shows wrong content
Pages: [1]

Author Topic: Calendar popup shows wrong content  (Read 3832 times)

hlevinson

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 3
Calendar popup shows wrong content
July 02, 2009, 02:35:36 pm
I enabled CiviEvents, and created a CiviCRM Events view by cloning. I then disabled the default CiviCRM Events view.

I changed the new view, by modifying the calendar path to something like this:

http://myhost/civicrm/calendar_1

and can see my calendar in the month view (e.g. July 2009).

I can add a public event and see it show up in the calendar.

BUT when I click on the link for the event in the calendar, instead of displaying the CiviCRM event info, it shows info for a page node that happens to have the same id.

If I copy the link location rather than clicking the link, and paste that link into another browser tab, it DOES show the correct CiviCRM event, e.g.

http://myhost/civicrm/event/info?reset=1&id=4

I believe this is a jcalendar.js issue, but I don't know how to fix it. I suppose I could change the JS code, but I wonder if I just missed a configuration setting somewhere?

Am using CiviCRM 2.2.5

Harry

hlevinson

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 3
Re: Calendar popup shows wrong content
July 07, 2009, 09:42:31 am
Hi CiviCRM, just wondering if someone there could respond to my post?

thanks,
Harry

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Calendar popup shows wrong content
July 07, 2009, 11:58:45 am

no idea about that, so u'll need to research and figure it out :) once u hve done that, please submit a patch against either civicrm or jcalendar.js that resolves the issue

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Calendar popup shows wrong content
July 07, 2009, 05:30:36 pm
I'm guessing you are using the 'link this field to it's node' option?

You could also try creating a custom path using Output this field as a link

You would need to add the event id as a field but not display it to have that variable available to you

Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Calendar popup shows wrong content
July 07, 2009, 05:33:10 pm
Actually the view I was looking at might not correspond to what you have but you should still find an option to create your own link using the variables you choose.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

hlevinson

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 3
Re: Calendar popup shows wrong content
July 08, 2009, 11:29:10 am
OK, thanks for looking at this...

I will look into this some more with some people here in coming weeks, and post a solution and/or patch if we get one.

Harry

JMenn

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
Re: Calendar popup shows wrong content
July 12, 2009, 11:55:04 am
This is a REALLY ugly fix (or brilliant, but I'm pretty sure ugly), but it does at least what I want it to do -- and may not suffice for your needs, but I had the same issue.

I didn't want the popup at all and opened up jcalendar.js and noticed at the very end, lines 77/78, this appeared:

Code: [Select]
     
      // Don't Follow the real link
      return false;

So I edited it to return true.  Now when I click on the title of my event, it goes to the event information page (no popup at all).  I dunno if this'll help you or not, and fwiw, I have absolutely no idea what I'm doing in CiviCRM or Drupal, I'm just sort of blindly stumbling around.  That said, what I want to get done is working so I suppose that speaks to the greatness of CiviCRM :D

cjdavis

  • Guest
Re: Calendar popup shows wrong content
October 14, 2009, 09:52:00 am
There is a issue at drupal.org about this - http://drupal.org/node/513066 - with further information.

The quickest solution to the problem is to just turn off the Calendar Popup module in Drupal - then the link just goes directly to the event page.

hlevinson

  • I post occasionally
  • **
  • Posts: 53
  • Karma: 3
Re: Calendar popup shows wrong content
October 23, 2009, 01:31:43 pm
Thanks to all who piped up...

We are deferring our decision on how to do events -- might still be CiviEvents or Drupal Events or something we roll ourselves.

Harry


mhoefer

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
Re: Calendar popup shows wrong content
December 09, 2010, 10:51:03 am
9 December 2010

Just acknowledging that this is still and issue. Workaround= turn off the Calendar Pop up functionality on the Drupal side.

As mentioned above, the confusing thing about the issue is the pop up shows the Drupal Node whereas the right click open in new tab goes to the correct CiviEvent Page.

mauricem

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: Calendar popup shows wrong content
February 09, 2011, 12:34:44 am
The solution I've seen posted to this problem is to disable the Calendar Popup module. I happen to be running Civi on a Drupal Commons instance, and in order to disable the Calendar Popup module, I also have to disable a dependent module: Commons Core.. Once I do this the Event on the calendar links to the correct Civi Event node. Unfortunately disabling the Commons Core module causes several Drupal Content Types to also disappear...

Any other suggested workarounds?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Calendar popup shows wrong content

This forum was archived on 2017-11-26.