Copied to clipboard

Flag this post as spam?

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


  • Qamar Ali 34 posts 165 karma points
    Oct 24, 2018 @ 17:26
    Qamar Ali
    0

    Adding a new Template to a StarterKit

    Hi, I am not really sure if this question is related to the uSkinned theme (https://uskinned.net/) or working with Umbraco but I hope you can help me on this, if not than may be point me to the right direction. I am trying to add a new separate search page on my website. This page searches from another database. I have added that database to my web.config file. For my new page I have a separate Model, View and Controller. On the backend I have created a Document Type and Template for my new page but my page does not appear anywhere on the Content side of my website. I cant see the page at all. Can you tell me what step am I missing, if not then where I can get help to fix the issue ? Thanks alot

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Oct 24, 2018 @ 18:47
    Michaël Vanbrabandt
    100

    Hi Ali,

    when you have created your new document types with template, did you go to the Home document type and changed the permissions to allow your new document type as a child?

    After that you also have to add a new node in the content section of your new created document type. This isn't automatically added when you have created this.

    So in short:

    1. Go to the Home document type
    2. Go to permissions
    3. Add your new document type to be allowed as a child of your home
    4. Go to the content section
    5. Add a new child node under home of your new document type

    Hope this helps!

    /Michaël

  • Qamar Ali 34 posts 165 karma points
    Oct 24, 2018 @ 20:54
    Qamar Ali
    0

    Yes it does. Thanks alot

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Oct 25, 2018 @ 07:01
    Michaël Vanbrabandt
    0

    Hi Ali,

    glad it solved your problem!

    If you have any futher questions, just ask on the forum!

    Don't forget to mark the solution.

    Have a nice day!

    /Michaël

  • Qamar Ali 34 posts 165 karma points
    Oct 25, 2018 @ 21:51
    Qamar Ali
    0

    Hi, Please can you help me on this one too : I can see my new search page on the content side but that page doesnt seem to work since it is not already built in the theme, I added it in. I am getting this error :

    Cannot bind source type Umbraco.Web.Models.RenderModel to model type USNStarterKit.USNModels.ApqcrDirSearch.

    Here are some screenshots of my code : This is what my solution explorer looks likeSolution Explorer :

    This is my Model : Model

    This is my Controller : Controller

    This is my View :

    View

    I have made a template and a document type on the umbraco backend as well. I am still getting this error. Umbraco Error I dont know what I am doing wrong. Please help !

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Oct 26, 2018 @ 06:46
    Michaël Vanbrabandt
    0

    Hi Ali,

    make sure to inherit your model from RenderModel.

    Hope this helps!

    /Michaël

  • Qamar Ali 34 posts 165 karma points
    Oct 26, 2018 @ 13:40
    Qamar Ali
    0

    Thanks alot

Please Sign in or register to post replies

Write your reply to:

Draft