DO NOT DOWNLOAD, WAIT FOR THE RELEASE! :P

SQL to insert app designer when doing a clean install/ upgrade
fixing the packege & membership trees

[TFS Changeset #60003]
This commit is contained in:
slace
2009-10-13 11:55:25 +00:00
parent e65729ea92
commit 0b7571afda
5 changed files with 24 additions and 6 deletions

View File

@@ -991,4 +991,9 @@ SET IDENTITY_INSERT [umbracoNode] OFF
IF NOT EXISTS (SELECT treeAlias FROM umbracoAppTree WHERE treeAlias='mediaRecycleBin')
INSERT INTO umbracoAppTree (treeSilent, treeInitialize, treeSortOrder, appAlias, treeAlias, treeTitle, treeIconClosed, treeIconOpen, treeHandlerAssembly, treeHandlerType)
VALUES (0, 0, 0, 'media', 'mediaRecycleBin', 'RecycleBin', 'folder.gif', 'folder_o.gif', 'umbraco', 'cms.presentation.Trees.MediaRecycleBin')
;
;
/* Dynamic Tree - AKA Application Designer Tree */
IF NOT EXISTS (SELECT treeAlias from umbracoAppTree WHERE treeAlias='dynamicTree')
INSERT INTO umbracoAppTree (treeSilent, treeInitialize, treeSortOrder, appAlias, treeAlias, treeTitle, treeIconClosed, treeIconOpen, treeHandlerAssembly, treeHandlerType)
VALUES (0, 0, 0, 'content', 'dynamicTree', 'DynamicTree', 'folder.gif', 'folder_o.gif', 'umbraco', 'cms.presentation.Trees.dynamicTree')
;

View File

@@ -46,4 +46,9 @@ SET IDENTITY_INSERT [umbracoNode] OFF
IF NOT EXISTS (SELECT treeAlias FROM umbracoAppTree WHERE treeAlias='mediaRecycleBin')
INSERT INTO umbracoAppTree (treeSilent, treeInitialize, treeSortOrder, appAlias, treeAlias, treeTitle, treeIconClosed, treeIconOpen, treeHandlerAssembly, treeHandlerType)
VALUES (0, 0, 0, 'media', 'mediaRecycleBin', 'RecycleBin', 'folder.gif', 'folder_o.gif', 'umbraco', 'cms.presentation.Trees.MediaRecycleBin')
;
;
/* Dynamic Tree - AKA Application Designer Tree */
IF NOT EXISTS (SELECT treeAlias from umbracoAppTree WHERE treeAlias='dynamicTree')
INSERT INTO umbracoAppTree (treeSilent, treeInitialize, treeSortOrder, appAlias, treeAlias, treeTitle, treeIconClosed, treeIconOpen, treeHandlerAssembly, treeHandlerType)
VALUES (0, 0, 0, 'content', 'dynamicTree', 'DynamicTree', 'folder.gif', 'folder_o.gif', 'umbraco', 'cms.presentation.Trees.dynamicTree')
;

View File

@@ -2206,7 +2206,7 @@
<Content Include="umbraco\umbraco.aspx" />
<Content Include="umbraco\users\EditUser.aspx" />
<Content Include="umbraco\users\EditUserType.aspx" />
<Content Include="umbraco\users\PermissionEditor.aspx" />
<!--<Content Include="umbraco\users\PermissionEditor.aspx" />-->
<Content Include="umbraco\webService.asmx" />
<Content Include="umbraco\webservices\ajax.js" />
<Content Include="umbraco\webservices\CacheRefresher.asmx">

View File

@@ -126,6 +126,7 @@ function openContentItem(id) {
treeElement.SetAttribute("icon", "doc.gif");
treeElement.SetAttribute("openIcon", "doc.gif");
treeElement.SetAttribute("nodeType", "contentItem");
treeElement.SetAttribute("hasChildren", "true");
root.AppendChild(treeElement);
}
}
@@ -145,6 +146,7 @@ function openContentItem(id) {
treeElement.SetAttribute("icon", "member.gif");
treeElement.SetAttribute("openIcon", "member.gif");
treeElement.SetAttribute("nodeType", "member");
treeElement.SetAttribute("hasChildren", "true");
root.AppendChild(treeElement);
}
}
@@ -163,6 +165,7 @@ function openContentItem(id) {
treeElement.SetAttribute("icon", "member.gif");
treeElement.SetAttribute("openIcon", "member.gif");
treeElement.SetAttribute("nodeType", "member");
treeElement.SetAttribute("hasChildren", "true");
root.AppendChild(treeElement);
}
}
@@ -180,6 +183,7 @@ function openContentItem(id) {
treeElement.SetAttribute("icon", "member.gif");
treeElement.SetAttribute("openIcon", "member.gif");
treeElement.SetAttribute("nodeType", "member");
treeElement.SetAttribute("hasChildren", "true");
root.AppendChild(treeElement);
}
}
@@ -201,7 +205,7 @@ function openContentItem(id) {
treeElement.SetAttribute("icon", FolderIcon);
treeElement.SetAttribute("openIcon", FolderIcon);
treeElement.SetAttribute("nodeType", "member");
treeElement.SetAttribute("hasChildren", "true");
treeElement.SetAttribute("src",
"tree.aspx?letter=" + ((char)i) + "&app=" + m_app + "&treeType=" +
@@ -223,7 +227,7 @@ function openContentItem(id) {
treeElementOther.SetAttribute("icon", FolderIcon);
treeElementOther.SetAttribute("openIcon", FolderIcon);
treeElementOther.SetAttribute("nodeType", "member");
treeElementOther.SetAttribute("hasChildren", "true");
treeElementOther.SetAttribute("src", "tree.aspx?letter=Others&app=" + m_app + "&treeType=" +
HttpContext.Current.Request.QueryString["treeType"] + "&rnd=" +

View File

@@ -24,7 +24,7 @@ using umbraco.BusinessLogic.Utils;
namespace umbraco
{
// <summary>
/// <summary>
/// Handles loading of the packager application into the developer application tree
/// </summary>
public class loadPackager : ITree
@@ -94,6 +94,7 @@ namespace umbraco
treeElement.SetAttribute("nodeType", "installedPackages");
treeElement.SetAttribute("menu", "L");
treeElement.SetAttribute("text", ui.Text("treeHeaders", "installedPackages"));
treeElement.SetAttribute("hasChildren", "true");
}
else
{
@@ -116,6 +117,7 @@ namespace umbraco
treeElement.SetAttribute("nodeType", "packagesRepositories");
treeElement.SetAttribute("menu", "L");
treeElement.SetAttribute("text", ui.Text("treeHeaders", "repositories"));
treeElement.SetAttribute("hasChildren", "true");
}
//if only one repo, then just list it directly and name it as the repository.
@@ -129,6 +131,7 @@ namespace umbraco
treeElement.SetAttribute("action", "javascript:openPackageCategory('BrowseRepository.aspx?repoGuid=" + repos[0].Guid + "');");
treeElement.SetAttribute("icon", "repository.gif");
treeElement.SetAttribute("openIcon", "repository.gif");
treeElement.SetAttribute("hasChildren", "true");
}
//if none registered, then remove the repo node.
@@ -145,6 +148,7 @@ namespace umbraco
treeElement.SetAttribute("nodeType", "createdPackages");
treeElement.SetAttribute("menu", "C,L");
treeElement.SetAttribute("text", ui.Text("treeHeaders", "createdPackages"));
treeElement.SetAttribute("hasChildren", "true");
break;
case "installer.aspx":