After you know how to insert a new node in a custom tree, take a look the source code of the F.A.L.M. Tabular Folder Browser and you can create your own form to show a gridview.
some code for the custom node:
public override void RenderJS(ref System.Text.StringBuilder Javascript) { Javascript.Append( @" function open..(id) { parent.right.document.location.href = 'plugins/customgridviewform.aspx?id=' + id; }
Easy way to make this into it's own section?
I'm just wondering if there is an easy way to make this into it's own section or page in the backend, not associated with a document type ?
Kind regards,
Rik
Hey Rick, a good solution is to take a look the umbraco tv videos "Custom sections,trees and pages", specially the video:
http://umbraco.org/help-and-support/video-tutorials/developing-with-umbraco/custom-sections,trees-and-pages/adding-a-custom-tree
After you know how to insert a new node in a custom tree, take a look the source code of the F.A.L.M. Tabular Folder Browser and you can create your own form to show a gridview.
some code for the custom node:
public override void RenderJS(ref System.Text.StringBuilder Javascript)
{
Javascript.Append(
@"
function open..(id)
{
parent.right.document.location.href = 'plugins/customgridviewform.aspx?id=' + id;
}
");
}
and for the gridview:
<%@ Page Language="C#" MasterPageFile="../masterpages/umbracoPage.Master" AutoEventWireup="true" CodeBehind="....ascx.cs" Inherits="..." %>
<%@ Register Namespace="umbraco.uicontrols" Assembly="controls" TagPrefix="umb" %>
<asp:Content ID="Content" ContentPlaceHolderID="body" runat="server">
<umb:UmbracoPanel ..>
<asp:SqlDataSource ID=..>
</asp:SqlDataSource>
<asp:GridView ID=...>
</asp:GridView>
</umb:UmbracoPanel>
</asp:Content>
Hope helps.
Jorge
is working on a reply...