Tutorial upcoming events blocktype

Permalink
Hi everybody,

I have just started with concrete5 and want to develop my first block-type.

What i want to create is a block-type with upcoming events. Where i can (as admin) add events and when displayed on the page only shows the next 2 events. It should be possible to add multiple instances of the block-type with each block having different items.

I have searched for a tutorial describing soothing like this, but cannot find it. Does such a tutorial exist. Is this possible with blocks?

Rene

 
wagdi replied on at Permalink Reply
wagdi
rklomp replied on at Permalink Reply
Thanks. But those add-ons are not free.. so i would have to buy them.
I found that tutorial already, but how can i make a block-type where i can add multiple items..
JohntheFish replied on at Permalink Reply
JohntheFish
As far as I know, all the C5 events packages treat each event as a page (that is usually hidden below the event list page). That way the events are listed by clever page listings.

If you did it with blocks on one page, you would need to write code to filter their display. If you want to write code, a single block to show an extendible list would be more practical.http://www.concrete5.org/documentation/how-tos/designers/create-a-f...

There is also a $20 addon to interface google calendarshttp://www.concrete5.org/marketplace/addons/gcalendar-viewer/...
rklomp replied on at Permalink Reply
I dont like the idea to treat each event as a page... I just want to be able to add/edit/remove rows from a db table and display the 2 newest.
jordanlev replied on at Permalink Reply
jordanlev
I think this how-to will get you off to a good start:
http://www.concrete5.org/documentation/how-tos/developers/build-a-s...
rklomp replied on at Permalink Reply
I found out that the slideshow block type also uses 2 tables. So i took this as starting point.

How do i get a popup window where I can fill in some text fields and add a row to my secondary table instead of a file sector, like slideshow does?