1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / sitefinity installing module in administration section

sitefinity installing module in administration section

5 posts, 0 answered
  1. Ray
    Ray avatar
    16 posts
    Registered:
    31 Aug 2011
    07 Feb 2012
    Link to this post
    Hi,

    I am trying to install a custom module in the administration section, I tried this and it didn't work:
    if (landingPage == null)
                {
                    var ctrl = pageManager.CreateControl<PageControl>(
                        "~/Modules/Translation/Admin/TranslationControl.ascx", "Administration");
                    CreatePage(initializer, ctrl);
                }

    Any suggestions?
  2. Andrei
    Andrei avatar
    553 posts
    Registered:
    27 Nov 2008
    08 Feb 2012
    Link to this post
    Ray,
    I just do it manually, its really simple. But if you insist in doing it by code then there is a really good video of how to do it on telerik.tv. Josh Morales goes step by step. You might find that useful. Sorry could not help more.
    Andrei
  3. Ray
    Ray avatar
    16 posts
    Registered:
    31 Aug 2011
    08 Feb 2012
    Link to this post
    Hi Andrei,

    Thank you for responding, I couldn't find any directions to do this manually (at least to put it in the admin menu), would you know where I might find those?

    Ray
  4. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    08 Feb 2012
    Link to this post
    Ray, it looks like you are attempting to create an intra-site module. That is basically a module that creates pages and installs the controls onto that page. You should find these articles helpful:

    Creating Page-Based Modules in Sitefinity 4 - This is the manual method of creating pages in the admin
    Creating Intra-Site Modules in Sitefinity 4 - This takes the above example a step further by wrapping the creation of pages and controls into code. it also includes a downloadable example.

    hope this is helpful!
  5. Andrei
    Andrei avatar
    553 posts
    Registered:
    27 Nov 2008
    09 Feb 2012
    Link to this post
    @SelAromDotNet those are the videos I was talking about.
5 posts, 0 answered