aimlesslady
  aimlesslady
Gold Member
  Friday, 15 September 2017
  25 Replies
  2K Visits
0
Votes
Undo
With the monthly calendar, when you click the next month from the dropdown, it reloads the page and brings you to the top of page.Our calendar is in the middle of the page and we want it to reload and be at the calendar. Is there a way to put an anchor tag somewhere to do this?
Saturday, 16 September 2017 12:42
·
#193306
0
Votes
Undo
Hi Aimlesslady,
I think the best way to do this is adding some javascript to your JEvents Pages so that they automatically scroll down to the calendar.

Another way could be creating a template override for the monthly view and adding the anchor to the generated link.

Last but not least, you may try to use ReReplacer by Regular Labs (https://www.regularlabs.com/extensions/rereplacer/features) and use some Regular Expresion to add the anchor to the links.

It depends on how do you wan to do it ;)

Best!!
Sunday, 17 September 2017 02:42
·
#193314
0
Votes
Undo
Thanks for your feedback. I don't know enough javascript to add it.
I would do an override but I don't know what file to edit, and I don't think it is a simple html link, I think it uses javascript.
Is there anyone out there who can write the appropriate javascript for me?
Monday, 18 September 2017 11:51
·
#193347
0
Votes
Undo
We do not usually do custom code for Members, but this is a very tiny thing. Can you please provide a link to the page?
Monday, 18 September 2017 12:51
·
#193361
0
Votes
Undo
Tuesday, 19 September 2017 08:56
·
#193393
0
Votes
Undo
I'm afraid FTP credentials are not working I get this message:
Respuesta: 331 User ebr@horizonct.net OK. Password required
Comando: PASS ********
Respuesta: 530 Login authentication failed


Also, please provide the exact URL of your site where you need this behaviour.
Tuesday, 19 September 2017 12:29
·
#193420
0
Votes
Undo
Try the following info
Thursday, 21 September 2017 14:09
·
#193535
0
Votes
Undo
FTP works now. Thank you!! Can you please provide the Exact url where you want this behaviour?
Sunday, 24 September 2017 04:26
·
#193613
0
Votes
Undo
The home page. http://horizonsct.org/
Monday, 25 September 2017 11:12
·
#193636
0
Votes
Undo
Hi,
can you please provide the exact url of your calendar (not just the url of the site) where you want to implement this behaviour? It's not obvious to me and I cannot find where you want it.
Monday, 25 September 2017 12:33
·
#193650
0
Votes
Undo
It is on the Home page. There are about 4 module positions above the actual calendar, but it is the main page. The menu item is JEvents - Core » View by Month » View by Month and it is displayed in the Main content section.
Tuesday, 26 September 2017 14:02
·
#193737
0
Votes
Undo
I could make it without a template override, just adding a Module of type Custom which is called: Javascript - Scroll to calendar.

this is the code that makes the scroll magic:


<script>jQuery(document).ready(function(){document.getElementById("jevents").scrollIntoView({'behavior': 'smooth', 'block':'start'});});</script>


Best!
Tuesday, 26 September 2017 15:14
·
#193747
0
Votes
Undo
That's beautiful, BUT, it also means that whenever you navigate to that page, it settles at the calendar, rather than at the top of the page. I need it to happen ONLY when you change months.
Thursday, 28 September 2017 13:25
·
#193842
0
Votes
Undo
I see now. Then the best approach is to override the monthly calendar and add the id to the link. I'll try to fix it tomorrow.

Best!!
Thursday, 28 September 2017 16:00
·
#193849
0
Votes
Undo
Thank you very much
Sunday, 01 October 2017 17:38
·
#193943
0
Votes
Undo
Have you had any success?
Monday, 02 October 2017 10:38
·
#193967
0
Votes
Undo
Sorry, it was a busy end of the week...

I have just applied the changes to your site.

Best!!
Monday, 02 October 2017 12:17
·
#193978
0
Votes
Undo
Thank you for your attempt, and it works if you just navigate to the next or previous month, but it still scrolls to the top of the page when you change months via the drop down selector. Can you fix that too?
Monday, 02 October 2017 12:39
·
#193980
0
Votes
Undo
I can give you directions for that, but if you require a fix I'm afraid I would need to give you a quote for it.
Monday, 02 October 2017 14:04
·
#193982
0
Votes
Undo
I'll give it a shot if you tell me how.
Thursday, 05 October 2017 10:47
·
#194053
0
Votes
Undo
I finally applied the changes myself. so now you can enjoy your scroll down ;)

Best!!
  • Page :
  • 1
  • 2
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.