Copied to clipboard

Flag this post as spam?

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


  • Dave 2 posts 72 karma points
    Nov 13, 2022 @ 23:15
    Dave
    0

    New Component appears in Preview, not Live

    Hi all,

    I am new to Umbraco, and I'm working on an existing site without access to the original developer.

    I have created a new component 'Map of Australia'.

    All good so far:

    1. Created the Document Type
    2. Created the Partial View: MapOfAustralia.cshtml
    3. I can create Content instances of my Map, and then add those components to Document Pages

    I click 'Preview' on that Page and can see my new Map component as it should appear in the page flow.

    I click 'Save and Publish' – the Map is not there.

    I know my save & publish is good - other page changes go through.

    No errors.

    I'm guessing now that there's something to the Partial View setup that is preventing my new component from getting picked up. Maybe?


    All other existing partial views start with this: @inherits UmbracoViewPage<HeroComponent> then use @Model.Title etc, to grab field data

    But my new one starts with: @inherits Umbraco.Web.Mvc.UmbracoTemplatePage then uses tags like @Umbraco.Field("mapTitle")


    When I try to use the same UmbracoViewPage<MapOfAustralia> syntax, I get an error in the Preview.

    I've attempted to strip my new Map component .cshtml file back to the bare minimum: @inherits Umbraco.Web.Mvc.UmbracoTemplatePage <p>Map!</p> and still nothing on the live page (still see it on Preview).

    That's where I'm at: Looks great, all works in BackOffice and Preview. Not there on Live.

    Thanks for your help!

  • Dave 2 posts 72 karma points
    Dec 06, 2022 @ 04:46
    Dave
    0

    Hi All,

    Just to clarify and bump this one:

    I can see my new component on the page when I click 'Preview' e.g. https://prl-cms.XX.digital/umbraco/preview/?id=30515#?id=30515

    I can see the new component on the page when I view the 'Live' version e.g. https://prl-cms.XX.digital/page-name/

    But it is not there when I go to the public URL e.g. https://XX.com/page-name

    What am I missing?

Please Sign in or register to post replies

Write your reply to:

Draft