Skip to content

This is a community project to create a library of Umbraco Extension Methods to use in Razor files.

Notifications You must be signed in to change notification settings

kipusoep/UmbracoExtensionMethods

 
 

Repository files navigation

Umbraco Community Extension Methods

This is a community project to create a library of Umbraco Extension Methods to use in Razor files and with the ContentService?

Content

  • .

DataTypes

  • .

Dates

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()

DocumentTypes

  • .

Media

  • .

MediaTypes

  • .

Members

  • .

Social

  • GravatarImageURL(string defaultImageURL, int size)
  • VimeoEmbed(int width, int height)

Strings

  • 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 = "...")

Templates

  • .

ASP.NET

  • GetMasterPageByType(this Page page, Type type)
  • RenderUserControl(this string path, Dictionary<string, object> propertiesToSet = null)

Users

  • .

Do you have any ideas?

Get in touch with me on twitter @warrenbuckley and let's get this project going...

About

This is a community project to create a library of Umbraco Extension Methods to use in Razor files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.6%
  • Classic ASP 14.8%
  • XSLT 1.7%
  • C# 0.9%