So I'm building a website and my website is showing all assets apart from one page, I've set up a document type, template and set up a blog post but I'm getting no assets
I assume that you're experiencing this issue on the fronted of your website? Not in the Umraco backoffice, right?
If you have a look at the network tab (Judging by the screenshot you appear to be using Chrome) and select the "CSS" filter can you then confirm that the path for you CSS file is indeed correct on that particular page?
Perhaps it's an issue where you're using a relative path where instead you should be using an absolute path. So if you could perhaps share a code snippet from your layout / master file where you have setup the reference to the CSS file we can better help you figuring out if what I suggest is the issue :)
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.BlogPost>
@using ContentModels = Umbraco.Web.PublishedContentModels;
@{
Layout = "master.cshtml";
}
<!-- HERO -->
<div class="blog-title" id="top">
<div class="center">
<h1 class="text-4xl">Spiderman - PS4 Review</h1>
</div>
</div>
<!-- BLOG -->
<div class="blog" id="blog">
<div class="content">
<div class="blog-inner_show">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum efficitur sollicitudin sapien, in convallis nisi aliquet et. Morbi eu arcu diam. Maecenas porttitor justo nec est hendrerit, nec pretium ligula pellentesque. Nunc at fringilla eros, sit amet rutrum ipsum. Sed id pulvinar dui. Donec at orci id nunc tristique blandit sit amet a elit. Proin urna nisi, facilisis non lorem sit amet, luctus congue magna. Maecenas aliquam augue sed nisl facilisis, at semper enim consectetur. Interdum et malesuada fames ac ante ipsum primis in faucibus. Fusce id magna at tortor finibus sodales. Mauris fringilla bibendum ultricies. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Curabitur fringilla placerat lectus, a varius metus vehicula ut.
Fusce sodales dui in viverra laoreet. Donec tempus lectus ac pharetra dictum. Praesent efficitur lorem at odio pharetra, sed tempor ante elementum. Pellentesque ac sem quis justo tempus blandit. Morbi nec hendrerit urna, varius auctor tortor. Morbi nec ante ac lacus ornare laoreet sit amet eu nunc. Donec vitae convallis lorem. Nullam vitae metus vel ex ultrices imperdiet. Ut tincidunt malesuada erat, vitae ullamcorper neque aliquam vel. Nunc accumsan leo a nibh dictum, id pellentesque elit consequat. Quisque malesuada vulputate efficitur. Aenean vitae eleifend libero. Fusce tellus libero, rhoncus eu vulputate non, pellentesque quis massa. Ut pretium vitae nisi eget hendrerit. Nam id rutrum turpis. Praesent molestie, nibh at gravida tempus, nulla sapien egestas leo, eu bibendum libero eros a nisi.
Ut semper convallis magna, sed fermentum dui sodales ornare. Aliquam sed tortor hendrerit, ultricies sem quis, sollicitudin metus. Aenean viverra urna nulla, sit amet auctor libero aliquet a. Nullam ornare tempor aliquet. Suspendisse blandit molestie tellus ac porttitor. Aliquam lorem purus, commodo in sollicitudin eu, consequat at dolor. Donec convallis lectus quam, pretium sollicitudin enim aliquam quis. Aliquam ac nibh vitae massa venenatis lobortis sit amet et nulla. Sed eget augue eleifend odio aliquet hendrerit nec quis erat. Maecenas varius efficitur sapien eu porta. Duis volutpat lectus eu diam finibus, a hendrerit elit interdum. Nunc quis condimentum mi. Ut tincidunt mattis lectus eget placerat.
Cras non nulla arcu. Suspendisse gravida nulla mi, non pellentesque dolor scelerisque quis. Praesent vel euismod augue, non feugiat tortor. Nulla finibus, erat non accumsan euismod, ante lorem aliquet nunc, vel aliquet dui nulla quis nunc. Vestibulum iaculis diam ac ipsum luctus consectetur at et nibh. Sed ligula arcu, mattis ut justo sed, maximus posuere ex. Curabitur eu tellus libero. Vivamus porttitor cursus egestas. Nullam aliquam maximus dui.
Maecenas quis nunc vitae lectus ultrices cursus in nec enim. Curabitur ultrices purus ut efficitur varius. Donec rutrum turpis quis diam commodo pretium sit amet sit amet ipsum. Sed eu ullamcorper lorem. Vestibulum augue purus, sagittis non tempor eu, pulvinar vel quam. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Fusce a ipsum in risus tincidunt feugiat. Aliquam in ex id lorem malesuada malesuada. Cras pharetra tincidunt erat, quis commodo mauris commodo eget. Nam ultricies cursus est, id dictum mi molestie non. Pellentesque tincidunt purus placerat tortor suscipit, eu ultrices ex fringilla. Sed blandit leo ut magna convallis, sit amet venenatis est consequat.
</p>
</div>
</div>
</div>
All other pages, their assets are working, so I must be missing something somewhere.
No assets loading
Hi,
So I'm building a website and my website is showing all assets apart from one page, I've set up a document type, template and set up a blog post but I'm getting no assets
Hi Ben
I assume that you're experiencing this issue on the fronted of your website? Not in the Umraco backoffice, right?
If you have a look at the network tab (Judging by the screenshot you appear to be using Chrome) and select the "CSS" filter can you then confirm that the path for you CSS file is indeed correct on that particular page?
Perhaps it's an issue where you're using a relative path where instead you should be using an absolute path. So if you could perhaps share a code snippet from your layout / master file where you have setup the reference to the CSS file we can better help you figuring out if what I suggest is the issue :)
Looking forward to hearing from you.
Cheers, Jan
Hi Jan,
Thank you for replying, this is an issue on the front-end.
This is my master template
and this is my blog post template
All other pages, their assets are working, so I must be missing something somewhere.
Got it Jan, it was the paths on my css and js files.
Thank you for looking into it though.
is working on a reply...