Discussion:
[CalendarX-users] add events link properties
Andreas Kuntzagk
2009-10-08 14:44:14 UTC
Permalink
Hi,

now that I've managed to get basic functionality working I'd like to
test the "add events link" feature. I checked "Show add events link" and
"use create object on click" and set the target to a named (existing)
folder "/events"
When I click on the "add events" link I get send to "/events" but the
"Create event" function (or however this is called) is not started. I'd
have to manually choose "Add event" in this folder.

regards, Andreas
Lupa Zurven
2009-10-08 15:39:04 UTC
Permalink
Hi Andreas,

As far as I know, that feature was not examined/tested during the
conversion to Plone 3 compatibility. It is not widely used, nor has
it ever been. I'm fairly certain that the problem would be that
CalendarX is trying to use an old, Plone 2 compatible command (URL get
parameters, in a query string) to send you to the New Event Form page.
I suspect looking at the URL when you click that link will tell you
what query string CalendarX is trying to send.

What it needs is to substitute the proper code here, instead of the
old code. I'm not sure what the new code should be, and I don't have
a Plone 3 instance in front of me to test it. Probably you can see it
by starting a new Event yourself, and looking at the query string.
Ideally, someone would then change the code in SVN to reflect this new
string, and it should work.

I'm hugely busy in my real job, which doesn't involve Plone anymore,
and can't jump on this... I can really only help figure out the
problem. I think you would be best off just not using that
functionality at this time, and perhaps filing an Issue on the topic
at Plone.org in the CalendarX page area, or figuring out how to
reprogram it in the code... it is essentially a one-line fix to put in
the new query string, I suspect, and you could try that on your own
Plone instance, and write back here to the list to crow about your
success! (and let everyone else, and googlers, know what the fix looks
like).

Best,
+lupa+





On Thu, Oct 8, 2009 at 10:44 AM, Andreas Kuntzagk
Post by Andreas Kuntzagk
Hi,
now that I've managed to get basic functionality working I'd like to
test the "add events link" feature. I checked "Show add events link" and
 "use create object on click" and set the target to a named (existing)
folder "/events"
When I click on the "add events" link I get send to "/events" but the
"Create event" function (or however this is called) is not started. I'd
have to manually choose "Add event" in this folder.
regards, Andreas
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
CalendarX-users mailing list
https://lists.sourceforge.net/lists/listinfo/calendarx-users
Andreas Kuntzagk
2009-10-09 06:30:14 UTC
Permalink
Hi,

the solution is even more easy: I just have to put the
createObject?type_name=Event into the createObjectOnClickCommand. This
is supposed to be the default but vanished somehow. Then the link works.

Thanks again, Andreas
Post by Lupa Zurven
Hi Andreas,
As far as I know, that feature was not examined/tested during the
conversion to Plone 3 compatibility. It is not widely used, nor has
it ever been. I'm fairly certain that the problem would be that
CalendarX is trying to use an old, Plone 2 compatible command (URL get
parameters, in a query string) to send you to the New Event Form page.
I suspect looking at the URL when you click that link will tell you
what query string CalendarX is trying to send.
What it needs is to substitute the proper code here, instead of the
old code. I'm not sure what the new code should be, and I don't have
a Plone 3 instance in front of me to test it. Probably you can see it
by starting a new Event yourself, and looking at the query string.
Ideally, someone would then change the code in SVN to reflect this new
string, and it should work.
I'm hugely busy in my real job, which doesn't involve Plone anymore,
and can't jump on this... I can really only help figure out the
problem. I think you would be best off just not using that
functionality at this time, and perhaps filing an Issue on the topic
at Plone.org in the CalendarX page area, or figuring out how to
reprogram it in the code... it is essentially a one-line fix to put in
the new query string, I suspect, and you could try that on your own
Plone instance, and write back here to the list to crow about your
success! (and let everyone else, and googlers, know what the fix looks
like).
Best,
+lupa+
Lupa Zurven
2009-10-10 00:26:13 UTC
Permalink
Oh! Thanks, Andreas. I somehow forgot that I had actually added that
feature as a configurable option in this way, a couple years back.
The reason I did so was so that if your Event-like object is a custom
content type (any custom content type that includes a start and stop
attribute can be an event, I believe), then you can use this option to
change the command to read:

createObject?type_name=MyCustomEvent

Thanks for letting us all know.
+lupa+

On Fri, Oct 9, 2009 at 2:30 AM, Andreas Kuntzagk
Post by Andreas Kuntzagk
Hi,
the solution is even more easy: I just have to put the
createObject?type_name=Event into the createObjectOnClickCommand. This is
supposed to be the default but vanished somehow. Then the link works.
Thanks again, Andreas
Post by Lupa Zurven
Hi Andreas,
As far as I know, that feature was not examined/tested during the
conversion to Plone 3 compatibility.  It is not widely used, nor has
it ever been.  I'm fairly certain that the problem would be that
CalendarX is trying to use an old, Plone 2 compatible command (URL get
parameters, in a query string) to send you to the New Event Form page.
 I suspect looking at the URL when you click that link will tell you
what query string CalendarX is trying to send.
What it needs is to substitute the proper code here, instead of the
old code.  I'm not sure what the new code should be, and I don't have
a Plone 3 instance in front of me to test it.  Probably you can see it
by starting a new Event yourself, and looking at the query string.
Ideally, someone would then change the code in SVN to reflect this new
string, and it should work.
I'm hugely busy in my real job, which doesn't involve Plone anymore,
and can't jump on this... I can really only help figure out the
problem.  I think you would be best off just not using that
functionality at this time, and perhaps filing an Issue on the topic
at Plone.org in the CalendarX page area, or figuring out how to
reprogram it in the code... it is essentially a one-line fix to put in
the new query string, I suspect, and you could try that on your own
Plone instance, and write back here to the list to crow about your
success! (and let everyone else, and googlers, know what the fix looks
like).
Best,
+lupa+
Loading...