Nice work Dan. I'll find this very useful, as will many more I think.
I've not installed it just yet (not that keen!) but I've had a good rummage around your demo at http://beta2.geckonm.com/home.aspx and it looks great. One thing though... I couldn't get the search to return anything - it just seems to post to itself.
A fair point! I wanted to make this package free from dependencies, and there's no point in me replicating the excellent work done for packages like xsltSearch, so I tried to make this "upgrade-ready", in that the user could install packages like xsltSearch and Doc2Form and have something ready for them straight after install. It's basically a package made as a snapshot of the stage in development where every project starts in the same way - make a homepage, textpage, news area etc. After this it's down to the developer and the requirements of the client to decide what happens next.
Having said that, I do aim to keep developing this project and a few things I have in mind are:
A "people" listing, or "team members" page
Sitemaps (both for users and an xml sitemap for search engines)
Write some documentation with pointers on how people would upgrade the package and continue development on it
RSS feeds
Making the package "contour ready" and "doc2form" ready so that good looking forms will be ready as soon as you install the packages. The nosier amongst installers will notive that there are already form styles in the css
Add more comments to the xslt to explain what's going on, for developers new to umbraco/xslt
And more - i'd love some feedback with regards to what people find themselves doing over and over again, each install.
Thanks again for your comment - I'm glad you find the package useful.
Thanks for explaining that Dan. It makes sense to put placeholders there ready for integration with third-party packages such as search etc. That way the user can pick their own solutions for things like that and you're not biasing them or having to re-package this when updated versions of other packages become available.
That would be great! That is the only thing that is holding one of my clients from switching from Wordpress to Umbraco - because they have a demand for the Calendar with Events. (Basically so they can put it on the front page). If that can be accomplished then that would be awesome!!!
I started trying to extract the events calendar to form a standalone
package, but providing a seamless install experience isn't really as
straightforward as it seems.
My main issue is with document types and templates:
Would a calendar have it's own template, or should it simply be a macro for inserting into another page?
If it's just a macro, how to deal with events? The user will
need to allow the "event" document under the document type that they've
added the event calendar to manually
The calendar will probably need it's own css, and possible need jquery added as well.
I'm thinking the best way to do it would be as per the blog package,
whereby the events area has it's own master template and actually
creates a page with some events when installed. The user could then
take this and work backwards to integrate into their own site. Does
this sound sensible?
What I am looking for is the capability to insert it in a page (like for example a frontpage) I am not sure if it can be done - but if you look at sddcofhouston.org - and you will see a calendar on the front right side. And if there is an event going on that day - it is highlighted in red. And maybe potentially have events listed underneath the calendar. Just a few ideas! So I would think it would be more of a macro - (Im not looking for a calendar with its own page - PDCalendar does that.) Just tossing in a few ideas - let me know if I am not clear - thanks for your great efforts! (No rush on this) :) Its the holiday season so enjoy it!
I'm using MySQL from my webhost, so I had some problems getting it to list my events.None was shown. I therefore made som changes in how to find the events via the month as an Integer in eventArea.xslt
I would like the calender to start with Monday, any "easy" way to change this in the code?
<
xsl:whentest="count($currentPage//node [@nodeTypeAlias='Event' and Exslt.ExsltStrings:lowercase($currentMonthYear) = Exslt.ExsltStrings:lowercase(umbraco.library:FormatDateTime(data [@alias='eventStartDateTime'], 'M,yyyy'))]) > 0"> <ulclass="events_list"> <xsl:for-eachselect="$currentPage//node [@nodeTypeAlias='Event' and Exslt.ExsltStrings:lowercase($currentMonthYear) = Exslt.ExsltStrings:lowercase(umbraco.library:FormatDateTime(data [@alias='eventStartDateTime'], 'M,yyyy'))]">
I was in touch with another international user who had problems with listing events, it was due to me studidly hard-coding the month names in the xslt. I changed this to use month numbers and all was well, but I seem to have forgotten to incorporate it into this package!
As for changing the start of the week to monday, interesting request but I must admit I'm stumped as to how I would do it. Perhaps someone with more xslt skills than I could help us out?
Search
Nice work Dan. I'll find this very useful, as will many more I think.
I've not installed it just yet (not that keen!) but I've had a good rummage around your demo at http://beta2.geckonm.com/home.aspx and it looks great. One thing though... I couldn't get the search to return anything - it just seems to post to itself.
Hi Dan
A fair point! I wanted to make this package free from dependencies, and there's no point in me replicating the excellent work done for packages like xsltSearch, so I tried to make this "upgrade-ready", in that the user could install packages like xsltSearch and Doc2Form and have something ready for them straight after install. It's basically a package made as a snapshot of the stage in development where every project starts in the same way - make a homepage, textpage, news area etc. After this it's down to the developer and the requirements of the client to decide what happens next.
Having said that, I do aim to keep developing this project and a few things I have in mind are:
Thanks again for your comment - I'm glad you find the package useful.
Dan
is that events calendar somewhere as a standalone? that looks to be very nice!
Thanks for explaining that Dan. It makes sense to put placeholders there ready for integration with third-party packages such as search etc. That way the user can pick their own solutions for things like that and you're not biasing them or having to re-package this when updated versions of other packages become available.
@bob I'll package it up and release it, hopefully this week
@dan, you ROCK!
That would be great! That is the only thing that is holding one of my clients from switching from Wordpress to Umbraco - because they have a demand for the Calendar with Events. (Basically so they can put it on the front page). If that can be accomplished then that would be awesome!!!
Thanks for the great work!!
Perhaps I'll get the time tomorrow - I'll post back here when I get it sorted, sorry for the delay!
I started trying to extract the events calendar to form a standalone package, but providing a seamless install experience isn't really as straightforward as it seems.
My main issue is with document types and templates:
I'm thinking the best way to do it would be as per the blog package, whereby the events area has it's own master template and actually creates a page with some events when installed. The user could then take this and work backwards to integrate into their own site. Does this sound sensible?
Dan
What I am looking for is the capability to insert it in a page (like for example a frontpage) I am not sure if it can be done - but if you look at sddcofhouston.org - and you will see a calendar on the front right side. And if there is an event going on that day - it is highlighted in red. And maybe potentially have events listed underneath the calendar. Just a few ideas! So I would think it would be more of a macro - (Im not looking for a calendar with its own page - PDCalendar does that.) Just tossing in a few ideas - let me know if I am not clear - thanks for your great efforts! (No rush on this) :) Its the holiday season so enjoy it!
Hi there, a minor bug:
eventShowInfo.xslt
Should be changed to:
'dddd, d MMMM, yyyy'
Originally it's:
'dddd, MM MMMM, yyyy'
Thanks Kyle, I'll add that to my ever-increasing todos!
Thanks for that Kyle, I've now fixed this in v 1.3 (and on the demo site)
Hi Dan,
I'm using MySQL from my webhost, so I had some problems getting it to list my events.None was shown.
I therefore made som changes in how to find the events via the month as an Integer in eventArea.xslt
I would like the calender to start with Monday, any "easy" way to change this in the code?
<
xsl:when test="count($currentPage//node [@nodeTypeAlias='Event' and Exslt.ExsltStrings:lowercase($currentMonthYear) = Exslt.ExsltStrings:lowercase(umbraco.library:FormatDateTime(data [@alias='eventStartDateTime'], 'M,yyyy'))]) > 0">
<ul class="events_list">
<xsl:for-each select="$currentPage//node [@nodeTypeAlias='Event' and Exslt.ExsltStrings:lowercase($currentMonthYear) = Exslt.ExsltStrings:lowercase(umbraco.library:FormatDateTime(data [@alias='eventStartDateTime'], 'M,yyyy'))]">
<
xsl:variable name="currentMonthYear" select="concat($Month,',',$Year)" />
<
xsl:variable name="eventsToday" select="count($currentPage//node [@nodeTypeAlias='Event' and Exslt.ExsltStrings:lowercase($currentDate) = Exslt.ExsltStrings:lowercase(umbraco.library:FormatDateTime(data [@alias='eventStartDateTime'], 'M d, yyyy'))])" />
Hi Martin
I was in touch with another international user who had problems with listing events, it was due to me studidly hard-coding the month names in the xslt. I changed this to use month numbers and all was well, but I seem to have forgotten to incorporate it into this package!
As for changing the start of the week to monday, interesting request but I must admit I'm stumped as to how I would do it. Perhaps someone with more xslt skills than I could help us out?
Dan
is working on a reply...