Copied to clipboard

Flag this post as spam?

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


  • Bex 444 posts 555 karma points
    Aug 10, 2010 @ 10:44
    Bex
    0

    Content Page using wrong master..!!

    Hello!

     

    I have a bit of a big problem, we have just upgraded to 4.5 and came across the famfamfam non responsive script error. As I didn't know what it was when it asked me to stop the script I said yes, we have now uninstalled famfamfam but now it seems to have messed something's up.

     

    I have a new page called Itineraries that should be running off a master page called ContentMaster.

    In umbraco admin the document type assigned to the page has this along the top:

    <%@ Master Language="C#" MasterPageFile="~/masterpages/ContentMaster.master" AutoEventWireup="true" %>

    So it is looking at the right master page.. but for some reason when it run's it uses the "HomeMaster".

    I think something in the DB must have the wrong reference but I'm not clear on the structure to know what to look for. I have tried deleting and recreating the page but it makes no difference!

     

    Bex

  • Sascha Wolter 615 posts 1101 karma points
    Aug 10, 2010 @ 12:35
    Sascha Wolter
    0

    Hi Bex,

    I don't think there is any information stored in the DB with regards to templates (apart from the doc type - templates relationship), all information is pretty much contained in the template files you create.

    Is the ContentMaster itself using the HomeMaster perhaps? Have you double checked the ContentPlaceHolder Id's you are using? Maybe you can't properly save the file, have you tried looking at the actual .aspx page in the file system? What if you create another master page and add a new 'content' page to it, does that work okay?

    Sascha

  • Bex 444 posts 555 karma points
    Aug 16, 2010 @ 14:52
    Bex
    0

    Right worked it out with the help of a colleague.. I am reasonably new to umbraco so probably a newbie problem!

    I had created an area within my website that a user had to log in to get to, when I created the users I was not adding them to a user group (for some reason I thought it automatically did this!)
    Anyway when the user was then redirected from the login page to the userarea the url displayed userarea/mypage.aspx, but really it had redirected back to the home page, so it only looked like it was using the homepage master, where infact it was actually showing the homepage,there fore obviously the master page too!!

     

    Weird.. Anyway.. sorted now! Thanks for your comments Sascha!

  • Sascha Wolter 615 posts 1101 karma points
    Aug 16, 2010 @ 15:59
    Sascha Wolter
    0

    Glad you could sort it out! :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies