hnns Posted June 25, 2013 Share Posted June 25, 2013 Hey, i've just found ProcessWire a few hours ago. I thinks it's great! Just one question, so maybe i can use it for my new project. I want to realize an event list, is it posibble to group the events by months without any trouble? Cheers Hnns Link to comment Share on other sites More sharing options...
kongondo Posted June 25, 2013 Share Posted June 25, 2013 Welcome to PW Hnns! A few hours ago and your are ready to roll? You are fast! . PW does not have a native events lister. There is a module and/or code for events listing I have seen here in the forums but can't seem to find it at the moment. Will post back if I find it if someone else doesn't do so b4 me. If you can't wait, maybe search the forums for it? Have a nice time here! Edit: Here's one: http://processwire.com/talk/topic/3006-display-a-list-calendar-using-a-date-field/ Link to comment Share on other sites More sharing options...
totoff Posted June 25, 2013 Share Posted June 25, 2013 http://processwire.com/talk/topic/2435-tutorial-howto-create-a-simple-eventcalendar/ http://processwire.com/talk/topic/624-table-based-calendar-integration/ Link to comment Share on other sites More sharing options...
hnns Posted June 25, 2013 Author Share Posted June 25, 2013 thanks! i just have to check how i transform that to a list based calendar not a table based. Link to comment Share on other sites More sharing options...
sakkoulas Posted June 25, 2013 Share Posted June 25, 2013 hi hnns you mean something like this http://processwire.com/blogtest/archives/ this is pw blog profile and you can findit here http://modules.processwire.com/modules/blog-profile/ Link to comment Share on other sites More sharing options...
hnns Posted June 25, 2013 Author Share Posted June 25, 2013 this forum ist just awsome!!!!!!! thats what i need. just with the month as group not the year. i saw this website and this event list is perfect for me. i don't need a calender just a list. http://www.gainesvillecountrydayschool.org/calendar?m=7&y=2013&calid=cal#2 thanks!!! Link to comment Share on other sites More sharing options...
adrian Posted June 25, 2013 Share Posted June 25, 2013 Stolen from the blog profile. This will get all events for the month of May, 2013 $firstDay = strtotime("2013-05-01"); $lastDay = strtotime("+1 month", $firstDay)-1; $events = wire('pages')->find("template=event, date>=$firstDay, date<=$lastDay, sort=-date"); The rest of it is in the archives.php template. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now