Loading...
 
Skip to main content

Features / Usability


How can I integrate "upcoming events" into the start page?

After reading the docs about calendars and the related plugins, I am a little confused about how I could realize this:

- I have created a standard calendar (more will follow) which is world-readable and which is integrated as a module in the left panel.
- From this I want to integrate a notice of upcoming events in the start page, where one event gets listed, if one event is upcoming within one week. And nothing, if the next event is farther away.

What confuses me is the caveat about about setting a threshold, quote from the doc:
"Beware to set the threshold for the tracker item listing to a value that suits your needs (higher than the number of items that you want to display in the TrackerCalendar). You can increase that threshold (it's 25 items by default) at Control Panels > Look and Feel > Pagination > Maximum number of records in listings: "

I do not want 25 or 100, just one single event. Or none at all.

How can I accomplish this?

I'm a little confused, you say you're using the "standard calendar" but go on to mention Tracker calendars.

You're using the Upcoming Events moduleQuestion, right? I think you want to set:

  • maxDays = 7 (only show events upcoming in the next week)
  • priorDays = 0 (don't show anything in the past)


And when you assign the moduleQuestion, set rows=1 ( to only show a single event).

HTH,

- RickQuestion | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.comQuestion
Tiki for SmartiesQuestion, your source for the best (and only) Tiki books, guides, and tutorials.

Thanks, I didn' know there is an upcoming events module (side remark: Your link is broken...).

So far I experimented with the regular Calendar (I have no idea why I mentioned TrackerCalendar, to be honest), and that gives me some headaches 😊

Thanks for the hint. Did it. But I think it looks better when it is inside the main window, therefore I had to use the plugin module. But I believe that plugin does not convey all parameters to the module upcoming_events.

module module="upcoming_events" notitle="n" nonums="y" maxDays="7" priorDays="3" date_format="%A, %d. %m" showaction="n" showdescription="y"

does not change the date format, for instance. Also, it does not display the description. How can I pass that parameter? Also, it seems impossible to have the module's title without its box. When I set nobox the title also vanishes...

Thanks
hman

hman wrote:

But I believe that plugin does not convey all parameters to the module upcoming_events.

module module="upcoming_events" notitle="n" nonums="y" maxDays="7" priorDays="3" date_format="%A, %d. %m" showaction="n" showdescription="y"

does not change the date format, for instance. Also, it does not display the description. How can I pass that parameter?

IIRC, full support for all the PHP time parameters is spottyQuestion... you may have to experiment to see which are supported.

But the description works on my tests.

hman wrote:
Also, it seems impossible to have the module's title without its box. When I set nobox the title also vanishes...

That is correct. As noted hereQuestion.... When nobox=y is used with the MODULE wikiplugin (as an argument), only the module data is displayed. The surrounding div.box-shadow, div.box, div.box-title and div.box-footer tags are not used.

You could simply type the title that you desire.

HTH,

- RickQuestion | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.comQuestion
Tiki for SmartiesQuestion, your source for the best (and only) Tiki books, guides, and tutorials.