-
Create a common package - could be called
Our.NuGetPackageActions
for packages to use. Ths package:-
Looks for packages at startup (eg. implementing a certain interface)
-
Keeps track of new install and updates via temp files stored in App_Data sub folder
-
-
Lets you have events for "Installed" and "Updated". There could also be an "Uninstalled" event although the DLL has been removed ad this point.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Umbraco.Core; | |
using Umbraco.Core.Models; | |
using Umbraco.Web.PublishedCache; | |
public static class UmbracoGuidExtensions { | |
/// <summary> | |
/// Gets an instance of <code>IPublishedContent</code> based on the specified <code>guid</code>. GUIDs are not | |
/// available in the content cache, so a lookup will be made in the database (or the runtime cache if the GUID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Umbraco.Core.Services | |
@inherits UmbracoViewPage | |
@{ | |
IMemberService ms = UmbracoContext.Application.Services.MemberService; | |
int total; | |
foreach (IMember member in ms.GetAll(0, Int32.MaxValue, out total)) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).load(function () { | |
var ev = angular.element(document).injector().get('eventsService'); | |
ev.on('localizationService.updated', function () { | |
var ls = angular.element(document).injector().get('localizationService'); | |
ls.dictionary['bacon_omgbacon'] = 'OMG BACON'; |
Open /config/Dashboard.config
, then add something like:
<section alias="CustomDashboardSection">
<areas>
<area>myApp</area>
</areas>
<tab caption="Welcome">
<control addPanel="true" panelCaption="">
/App_Plugins/myApp/dashboard.html
By using my Skybrud.Umbraco.GridData package (which introduces a strongly typed model for the Grid), indexing the new Grid in Umbraco 7.2 is quite easy.
At Skybrud.dk we typically create a class named ExamineIndexer
that takes care of the Examine related events. This class should be initalized during Umbraco startup like this:
using Umbraco.Core;
namespace FanoeTest {
public class Startup : ApplicationEventHandler {
Open /umbraco/plugins/umbracoContour/views/Form.cshtml
and look for the following line:
@Html.Partial(FormViewResolver.GetScriptView(Model.FormId), Model)
Replace it with these lines:
List temp = HttpContext.Current.Items["ContourScripts"] as List;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-controller="PreValueEditor.Controller"> | |
<label> | |
<input type="checkbox" ng-model="model.value.a" /> | |
Option A | |
</label> | |
<label> | |
<input type="checkbox" ng-model="model.value.b" /> | |
Option B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ParentPage { | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public string Url { get; set; } | |
public IEnumerable<TestPage> Pages { get; set; } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('umbraco').controller('GoogleAddressSearchController', ['$scope', '$http', function ($scope, $http) { | |
if (!$scope.model.address) $scope.model.address = ''; | |
$scope.address = $scope.model.address; | |
$scope.suggestions = []; | |
$scope.addressKeyDown = function () { |