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:
Created the Document Type
Created the Partial View: MapOfAustralia.cshtml
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.
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:
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 dataBut 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!
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?
is working on a reply...