Adjusted calendar functionality

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
Tata
Posts: 2750
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Adjusted calendar functionality

Post by Tata » Tue Mar 06, 2018 6:16 pm

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.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply