Page 1 of 1

Adjusted calendar functionality

Posted: Tue Mar 06, 2018 6:16 pm
by Tata
I had a problem with the plugin on a webpage, where a "fullscreen" slider is placed above the content area. The horizontal navigation didn't work as needed. It didn't jump to the content. There was the slider always on top.
Here viewtopic.php?f=6&t=9010&hilit=jump has Chris helped with the code.
This has helped with the navigation. But the problem has remained in calendar plugin. It didn't jump to the eventpage. The solution was in small modiffication of calendar.php and eventlist.php.
First, place the ID #content into you template kust before or on the beginning of the content container.
Look for

Code: Select all

year=$year_prev'
and extend on all found places to

Code: Select all

year=$year_prev#content'
Hovering the eventdate in calendar the status bar shall say:
This might be used in another plugins using internal links, though.
I am just not sure, if it's OK to have this anchor defined in a plugin, while not really present in a template or content. Anyway, the links work well.