You need to be logged in to view a user's profile.
aimlesslady
  aimlesslady
Gold Member
  Friday, 15 September 2017
  25 Replies
  1.9K 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?
7 years ago
·
#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!!
7 years ago
·
#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?
7 years ago
·
#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?
7 years ago
·
#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.
7 years ago
·
#193420
0
Votes
Undo
Try the following info
7 years ago
·
#193535
0
Votes
Undo
FTP works now. Thank you!! Can you please provide the Exact url where you want this behaviour?
7 years ago
·
#193613
0
Votes
Undo
The home page. http://horizonsct.org/
7 years ago
·
#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.
7 years ago
·
#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.
7 years ago
·
#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!
7 years ago
·
#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.
7 years ago
·
#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!!
7 years ago
·
#193849
0
Votes
Undo
Thank you very much
7 years ago
·
#193943
0
Votes
Undo
Have you had any success?
7 years ago
·
#193967
0
Votes
Undo
Sorry, it was a busy end of the week...

I have just applied the changes to your site.

Best!!
7 years ago
·
#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?
7 years ago
·
#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.
7 years ago
·
#193982
0
Votes
Undo
I'll give it a shot if you tell me how.
7 years ago
·
#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.