This is a community project to create a library of Umbraco Extension Methods to use in Razor files and with the ContentService?
##Umbraco Test Site - Details
- Username: admin
- Password: password
- GetMasterPageByType(this Page page, Type type)
- RenderUserControl(this string path, Dictionary<string, object> propertiesToSet = null)
- .
- .
Kudos to the uComponents team for these methods. So kudos for these methods go to them.
- Age()
- GetDayNumber()
- IsWeekday()
- IsWeekend()
- IsLeapYear()
- ElapsedSeconds()
- DateWithinLastDays(int days)
- ToUnixTime()
- GetFirstDayOfMonth()
- GetLastDayOfMonth()
- PrettyDate()
- FormatDateTime(string format)
FormatDateTime("ddd ddS MMMM yyyy")
note the S for suffix
- .
- .
- .
- .
- .
- .
- GravatarImageURL(string defaultImageURL, int size)
- FirstCharToUpper()
- HighlightKeywords(IEnumerable keywords, string className)
- StripHtml(bool ignoreParagraphs = true, bool ignoreItalic = true, bool ignoreUnderline = true, bool ignoreBold = true, bool ignoreLinebreak = true, List otherTagsToIgnore = null)
- ShortenHtml(out bool inputIsShortened, int length = 300, string elipsis = "...")
- ShortenHtml(int length = 300, string elipsis = "...")
- GetSentence(sentenceIndex)
- GetParagraph(paragraphIndex)
- .
- .
- VimeoEmbed(int width, int height)
- .
Get in touch with me on twitter @warrenbuckley and let's get this project going...