$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
This file contains hidden or 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
// Use whatever namespacing works for your project. | |
namespace YourSite.Web.Controllers.Api | |
{ | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using System.Web; | |
using System.Web.Http; |
This file contains hidden or 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
-- Create a temporary table for all documents which are published and not in the recycle bin | |
CREATE TABLE #Nodes (id int) | |
-- Delete all rows if the table exists before | |
TRUNCATE TABLE #Nodes | |
-- Insert all nodeIds from all documents which are published and not in the recycle bin | |
INSERT INTO #Nodes | |
SELECT N.id | |
FROM umbracoNode N | |
INNER JOIN cmsDocument D ON N.ID = D.NodeId |
This file contains hidden or 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
{ | |
javascript: [ | |
'~/App_Plugins/YourPackage/your.controller.js', | |
'~/App_Plugins/YourPackage/umbraco-editor-with-config.js', | |
] | |
} |
This file contains hidden or 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
@Html.CachedPartial( | |
//partial view name | |
"myPartialView", | |
//the model to pass the view - this will be the same object passed to the contextualKeyBuilder delegate | |
Model, | |
//seconds to cache | |
123, | |
//the key builder delegate, accepts the model passed in to the cached partial and the current | |
// viewdata dictionary of the partial view | |
contextualKeyBuilder: (model, viewdata) => |
This file contains hidden or 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
Param( | |
[Parameter(Mandatory=$true)] $path | |
) | |
$proxyHtm = @" | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" > | |
<head> | |
<title>Repo proxy</title> | |
</head> |
This file contains hidden or 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
// In \Umbraco\Js\umbraco.controllers.js find this code (line 5429-5432 in version 7.1.3): | |
else if (rule.selector[0] == "#") { | |
r.inline = "span"; | |
r.attributes = { id: rule.selector.substring(1) }; | |
} | |
// directly after, add this: | |
else if (rule.selector.indexOf("p.") == 0) { | |
r.classes = rule.selector.substring(2); | |
r.block = 'p'; |
This file contains hidden or 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
DF_cmsMacroProperty_macroPropertyHidden was called DF_macroProperty_macroPropertyHidden at some point (cmsMacroProperty table) | |
FK_cmsMacroProperty_cmsMacroPropertyType_id was called FK_umbracoMacroProperty_umbracoMacroPropertyType at some point (cmsMacroProperty table) | |
FK_cmsTagRelationship_umbracoNode_id was called umbracoNode_cmsTagRelationship at some point (cmsTagRelationship table) | |
So just rename these three from their old name (on the right) to their "expected" name (left) |
- Decide on a subdomain to use with ngrok. This makes the whole process easier.
- Open up a Command Prompt in Administrator mode and run the following command to register the URL with HTTP.sys replacing "modernie" with your subdomain and ##### with your VisualStudio/IISExpress application's port.
netsh add urlacl url=http://modernie.ngrok.com:##### user=everyone
- Edit your applicationhost.config. The easiest way to is start up the site and right-click the IISExpress icon in the System Tray. Click "Show All Applications" and select your website running at
localhost:#####
. Click the path next to "Config" to open the file in an editor. - Search for you site's
<bindings>
configuration. The easiest way is to search for*:#####:localhost
, which should bring you to the<bindings>
section for your site. Edit them to include the following:
This file contains hidden or 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 void ReIndexEntity(IContentBase entity) | |
{ | |
if (entity is IContent) | |
{ | |
ExamineManager.Instance.ReIndexNode((entity as IContent).ToXml(), "content"); | |
} | |
else if (entity is IMedia) | |
{ | |
ExamineManager.Instance.ReIndexNode((entity as IMedia).ToXml(), "media"); | |
} |