Copied to clipboard

Flag this post as spam?

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


  • Jamie Carruthers 4 posts 24 karma points
    May 12, 2015 @ 16:49
    Jamie Carruthers
    0

    Preview shows a mixture of 2 different content pages

    I'm using Umbraco 6.1.1.

    When previewing a previously published page, the output appears to be a mixture of items from 2 different content pages.

    The page I am previewing is called Test Page. It has the following Items:

    Test content

    When I click preview, I am navigated to /1059.aspx and shown the following output:

    preview

    It appears to be showing Items from the page I have configured as my 404 page (which uses 404.Master):

    404 content Items

    The Body Text is included in the Test Page content's Master page like so:

    <umbraco:Item ID="PageBody" runat="server" Field="bodyText" />
    

    The Page title and Navigation Text Items are included using a user control, and the following code is used to retreive them:

    node.GetProperty<string>("pageTitle")
    

    Where node is:

    umbraco.NodeFactory.Node.GetCurrent
    

    So it would appear for some reason my code thinks we are looking at the 404 page. However Test Page's Master is definately being used, as it's is showing the bodyText Item.

    Has anyone else had any issues like this?

  • Mehul Gajjar 48 posts 172 karma points
    May 19, 2015 @ 13:09
    Mehul Gajjar
    0

    Hi,

    kindly make different template for 404 and your test page.

    i think the template of test page and 404 was miss match so Current Node return 404 error.

    Hope this will help you.

    Regards,

    Mehul Gajjar.

  • Jamie Carruthers 4 posts 24 karma points
    May 20, 2015 @ 13:21
    Jamie Carruthers
    0

    Thanks for the reply.

    The 404 and test page already use different templates.

  • Urvish 252 posts 776 karma points
    May 20, 2015 @ 13:29
    Urvish
    0

    Hi Jamie,

    Republish entire site and try. May be some caching issue.

    Or else you can restart application pool and check.

    Hope it will help.

    Regards,

    Urvish Mandaliya

  • Jamie Carruthers 4 posts 24 karma points
    May 21, 2015 @ 14:31
    Jamie Carruthers
    0

    Thanks, Urvish. I've already tried that. I've even tried manually removing the umbraco.config file so the website regenerates it. However this has resulted in no success.

Please Sign in or register to post replies

Write your reply to:

Draft