{"id":16687543,"url":"https://github.com/warrenbuckley/umbracoextensionmethods","last_synced_at":"2025-03-21T18:33:24.810Z","repository":{"id":1264777,"uuid":"11249116","full_name":"warrenbuckley/UmbracoExtensionMethods","owner":"warrenbuckley","description":"This is a community project to create a library of Umbraco Extension Methods to use in Razor files.","archived":false,"fork":false,"pushed_at":"2022-06-22T18:07:04.000Z","size":8840,"stargazers_count":34,"open_issues_count":8,"forks_count":12,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-18T03:51:31.266Z","etag":null,"topics":["umbraco","umbraco-cms"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/warrenbuckley.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"warrenbuckley","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2013-07-08T08:12:02.000Z","updated_at":"2021-10-21T01:50:25.000Z","dependencies_parsed_at":"2022-08-16T12:50:21.836Z","dependency_job_id":null,"html_url":"https://github.com/warrenbuckley/UmbracoExtensionMethods","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warrenbuckley%2FUmbracoExtensionMethods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warrenbuckley%2FUmbracoExtensionMethods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warrenbuckley%2FUmbracoExtensionMethods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/warrenbuckley%2FUmbracoExtensionMethods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/warrenbuckley","download_url":"https://codeload.github.com/warrenbuckley/UmbracoExtensionMethods/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244849545,"owners_count":20520735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["umbraco","umbraco-cms"],"created_at":"2024-10-12T15:09:30.240Z","updated_at":"2025-03-21T18:33:23.662Z","avatar_url":"https://github.com/warrenbuckley.png","language":"JavaScript","funding_links":["https://github.com/sponsors/warrenbuckley"],"categories":[],"sub_categories":[],"readme":"Umbraco Community Extension Methods\n========================\nThis is a community project to create a library of Umbraco Extension Methods to use in Razor files and with the ContentService?\n\n##Umbraco Test Site - Details\n* Username: admin\n* Password: password\n\n## ASP.NET\n* GetMasterPageByType(this Page page, Type type)\n* RenderUserControl(this string path, Dictionary\u003cstring, object\u003e propertiesToSet = null)\n\n## Content\n* .\n\n## DataTypes\n* .\n\n## Dates\n\n* Age()\n* GetDayNumber()\n* IsWeekday()\n* IsWeekend()\n* IsLeapYear()\n* ElapsedSeconds()\n* DateWithinLastDays(int days)\n* ToUnixTime()\n* GetFirstDayOfMonth()\n* GetLastDayOfMonth()\n* PrettyDate()\n* FormatDateTime(string format) `FormatDateTime(\"ddd ddS MMMM yyyy\")` note the S for suffix\n* GetMonthName()\n* GetDayName()\n\n## Numeric\n\n* ToInt()\n* AbsoluteValue()\n\n## DocumentTypes\n* .\n\n## ImageGen\n* .\n\n## ImageResizing\n* .\n\n## Media\n* .\n\n## MediaTypes\n* .\n\n## Members\n* .\n\n## Social\n* GravatarImageURL(string defaultImageURL, int size)\n\n## Strings\n* FirstCharToUpper()\n* HighlightKeywords(IEnumerable\u003cstring\u003e keywords, string className)\n* StripHTML(bool ignoreParagraphs = true, bool ignoreItalic = true, bool ignoreUnderline = true, bool ignoreBold = true, bool ignoreLinebreak = true, List\u003cstring\u003e otherTagsToIgnore = null)\n* ShortenHTML(out bool inputIsShortened, int length = 300, string elipsis = \"...\")\n* ShortenHTML(int length = 300, string elipsis = \"...\")\n* RemoveDiacritics(string input)\n* StripHtml(bool ignoreParagraphs = true, bool ignoreItalic = true, bool ignoreUnderline = true, bool ignoreBold = true, bool ignoreLinebreak = true, List\u003cstring\u003e otherTagsToIgnore = null)\n* ShortenHtml(out bool inputIsShortened, int length = 300, string elipsis = \"...\")\n* ShortenHtml(int length = 300, string elipsis = \"...\")\n* GetSentence(sentenceIndex)\n* GetParagraph(paragraphIndex) \n* TruncateAtWord(int length)\n* InvertCase()\n* SubstringBefore(string string2)\n* SubstringAfter(string string2)\n\n\n\n## Templates\n* .\n\n## Users\n* GetAllUsers()\n* GetUsersByType(int userTypeId)\n* GetUsersByType(string typeAlias)\n* GetCurrentUserTypes()\n* GetCurrentUser()\n\n## Vimeo\n* string VimeoEmbed(this int vimeoId, int width, int height)\n* string VimeoEmbed(this string vimeoId, int width, int height)\n* int GetVimeoDuration(this int vimeoId)\n* int GetVimeoDuration(this string vimeoId)\n* string GetVimeoThumbnail(this int vimeoId)\n* string GetVimeoThumbnail(this string vimeoId)\n* string GetVimeoThumbnail(this int vimeoId, VimeoThumbnail size)\n* string GetVimeoThumbnail(this string vimeoId, VimeoThumbnail size)\n\n\n## YouTube\n* string GetYouTubeId(this string subject)\n* bool GetYouTubeId(this string subject, out string videoId)\n* string YouTubeEmbed(this string videoId, int width, int height)\n* string YouTubeEmbed(this string videoId, int width, int height, bool showRelations, string wmode)\n* string GetYouTubeThumbnail(this string videoId)\n* string GetYouTubeThumbnail(this string videoId, int index)\n\n\n## Do you have any ideas?\nGet in touch with me on twitter @warrenbuckley and let's get this project going...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarrenbuckley%2Fumbracoextensionmethods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwarrenbuckley%2Fumbracoextensionmethods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwarrenbuckley%2Fumbracoextensionmethods/lists"}