simplecalendar module, not linking to event menu

More
3 years 1 month ago #550 by deltabi
deltabi replied the topic: simplecalendar module, not linking to event menu
Pieter,
I ran in the same problem, but as I'm not a Joomla expert I don't know how to apply the fix you kindly described.
Would you please better describe how it can be applied?
Thanks a lot!
Diego.-

PieterV wrote: I made a temporary fix in jQuery:

$(".sceventscal ul li a").each(function()
{
var fixedlink = $(this).attr("href").substring(0, $(this).attr("href").indexOf("?"));
$(this).attr("href",fixedlink);
});

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

More
3 years 5 days ago #557 by Hans
Hans replied the topic: simplecalendar module, not linking to event menu
Same for me here. i don't know where to put the fix that Pieter described.

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

More
3 years 5 days ago #558 by PieterV
PieterV replied the topic: simplecalendar module, not linking to event menu
Sorry for my late reply.

You have to include the script in the javascript file that is used by your template.

/templates/::yourtemplate::/javascript/"yourtemplate-specific.js"

Mind you: it is a hack. If your not used to editting javascript, it might not be a good idea to do it.

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

More
3 years 2 days ago #562 by Hans
Hans replied the topic: simplecalendar module, not linking to event menu
Tried the solutions from Pieter. Unfortunately it didn't work for me. So I used a very quick and dirty solutions. This will only work when you have attached the calendar component to a menu item:

Look at line 147 and 148 of your helper.php from the module. Comment line 147. Uncomment line 148. look at the URL of the items in the list when you are on the component list page. And replace this with the words CHANGE THIS in the line below. You don't have to put in the categorie and the item.

$link = JRoute::_('CHANGE THIS/CHANGE THIS/'.$row->catslug.'/'.$row->slug.'&Itemid='.JRequest::getInt('Itemid'));

I know it is not a nice solution but it works for me.

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

More
1 year 5 months ago #777 by DarrenH
DarrenH replied the topic: simplecalendar module, not linking to event menu
Hi,
I know this is an old thread but I'm running into exactly the same problem.
It does happen in other instances in Joomla where there is no unique menu item, and from the home page a link in a module is clicked and it displays the page but leaves all of the front page surrounding modules in place as they have no instructions on whether to show or be hidden for an unexisting menu item.
This is fixed in other instances with hidden menus linking to articles, but obviously this won't work in this instance.
I was wondering it this has been fixed but I'm doing something wrong?
Thanks
Darren.

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

Time to create page: 0.414 seconds
Powered by Kunena Forum