Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rik Helsen 670 posts 873 karma points
    Oct 27, 2010 @ 09:43
    Rik Helsen
    0

    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

  • Jorge Ruiz Caro 9 posts 29 karma points
    Nov 21, 2010 @ 18:15
    Jorge Ruiz Caro
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft