Assign events module to event links in calender vi

More
12 years 5 months ago #21893 by Peter
im having some problems, if i go to calendar view and click on some event i want to assign some up-coming event module on the right ( i have tried hidden links )

see this test page for joom donation, and you see what i mean.
eventbooking.joomdonation.org/index.php?...&event_id=2&Itemid=6
this is a link from calendar

and here is a link to the same event that includes module as i want,

eventbooking.joomdonation.org/index.php?...&event_id=2&Itemid=4

do i have to make daily link to all event or what?

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #21922 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Assign events module to event links in calender vi
Hi Peter

If you look at the link, you will see that there is a variable called Itemid. By default, all the links in Calendar view will used Itemid of the active menu item (the menu item which link to Calendar page) and that's the reason causing the issue.

In this case, you will need to edit the code alilte. Open the file components/com_eventbooking/views/calendar/view.html.php, find the code below :
Code:
$Itemid = JRequest::getVar('Itemid',0);

Change it to :
Code:
$Itemid = 99999;

(replace 99999 with the Itemid variable you want) and It will works as expected . In case in my demo site, we can simply set $Itemid=4 ;

Hope this help

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #21954 by Peter
Hi,
thanks for the reply, almost there only problem is the arrows link that also have the new ID soo if I go forward its assign modules
Drop down list is working

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #21969 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Assign events module to event links in calender vi
Hi Peter

thanks for the reply, almost there only problem is the arrows link that also have the new ID soo if I go forward its assign modules


Could you please explain more detail about it ? What version of the extension you are using? Could you please send me the link to your page ?

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago - 12 years 5 months ago #21978 by Peter
here is a link to calendar
test.konsultbolag1.se/jupgrade/index.php...&year=2012&Itemid=11

its should be without modules on the right.

when I click on the event
test.konsultbolag1.se/jupgrade/kurser/me...ew_event&event_id=76
it´s shold be some modules from that category, it works now

but if you change month with the green arrows the menu id is assign to that link so the module is on the same page as calendar this is not working, we cant have modules on the right on that page.
you can see it on this link or click on the arrow

test.konsultbolag1.se/jupgrade/index.php...ear=2013&Itemid=1609

we are running eventbooking 1.4.5 (with lots of chanches and paid work made by you on the eb event module)

hope you understand / Peter
Last edit: 12 years 5 months ago by Peter.

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #21990 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Assign events module to event links in calender vi
Hi Peter

Could you please submit a support ticket sending me administrator and FTP account of your site so that I can edit the code directly on your site ?

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #22021 by Peter
hi,

you already have it, then you worked on event module I send it to your mail (contact@.....) it was 2012-10-25
Iam sending it now again

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #22151 by Peter
hi,
if I change this code $Itemid =
to a hidden link it´s working, but what if I want too assign different modules and have more hidden links I cant set a static id?

And the other question about arrows link have you seen my email

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #22155 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Assign events module to event links in calender vi
Hi Peter

At the moment, all the links in the module can only use one Itemid, so the solution is :

1. You can create a hidden menu item .

2. Set ID of that hidden menu item to $Itemid variable.

3. Assign the modules you want to be showed when users click on the links in the module to that hidden menu items .

Could you please re-send the link contains information of your site to support@joomdonation.com so that I can check the problem with arrow links ? It seems I didn't receive your email about it .

Tuan

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #22190 by Peter
hi,
1, ok
2, don´t understand, what about the code in view.html.php - $itemid= ....... how should it be
3, is sent again

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc