The first thing I would do is go to the very top content node > republish entire site, to rebuild the cache. Though I see the latest news pulling on the news page so that might not do it.
Are you querying the news articles differently on the news page vs the homepage besides limiting the query to the latest?
If you have access to the file system try looking in the logs (App_data\logs - look for the most recent file, refresh the page and then look at the last error).
I could definitely be confused as well but I was looking at latest news are on the homepage and noticed its pulling a March article vs the latest ones in the full news page.
Yep, that's what I thought. So I think the code you've found isn't what actually picks the article, but what renders the abstract of the article because it doesn't show how the article is actually picked or sorted. Is there a news article picker on the homepage? Are you using the grid editors? A screengrab of your setup would be helpful.
We can't see what is populating Model.Article. It could be:
1) A picker
2) Set in a controller
3) Some other weird and wonderful thing I've not thought of.
It's most likely a picker - but if you show the code that's above this segment we can likely advise.
Well - it would be trivial to change it if you wanted to.
In my experience clients say "We want it to be the latest article".. then they create an article they don't want to highlighted (imagine it's an apology for something or other) and then revert back to a picker ;)
Umbraco not displaying up to date news on website
Hi guys
So we have an umbraco 7 website hosting on Azure
We have a news feed on the home page of the website.
It's not displaying the most recent articles, it used to but not anymore :(
I think it might be something to do with Azure, as we had it hosted elsewhere and this wasn't an issue.
The website is Here I have used a bit.ly link so the client won't see!
I am thinking it may have something to do with syncing, something needs indexing? I am not great with Umbraco unfortunately!
The first thing I would do is go to the very top content node > republish entire site, to rebuild the cache. Though I see the latest news pulling on the news page so that might not do it.
Are you querying the news articles differently on the news page vs the homepage besides limiting the query to the latest?
Hi Amir
So below is the code I managed to dig out for the homepage. i am not sure if this is useful!
Hi,
Go through and check each article has a "link" - there is probably a custom field that's not set on one of the articles that is making it blow up.
You can also try replacing that code above with:
If you have access to the file system try looking in the logs (App_data\logs - look for the most recent file, refresh the page and then look at the last error).
Sorry to highlight - I think the error is in the first outer hyperlink - it's trying to use the link which might be empty.
I'm confused now, is it erroring out or just pulling the wrong article?
I read it as (and it appears to be the case from the link) there is a block / grid item that's erroring and it's a single partial view.
The site is just skipping that latest articles section. If I'm wrong my answer is likely incorrect!
I could definitely be confused as well but I was looking at latest news are on the homepage and noticed its pulling a March article vs the latest ones in the full news page.
Hi guys. The error is that the latest article is not being pulled in, its from March. Thats is the issue
Yep, that's what I thought. So I think the code you've found isn't what actually picks the article, but what renders the abstract of the article because it doesn't show how the article is actually picked or sorted. Is there a news article picker on the homepage? Are you using the grid editors? A screengrab of your setup would be helpful.
Yes Amir is correct.
We can't see what is populating Model.Article. It could be: 1) A picker 2) Set in a controller 3) Some other weird and wonderful thing I've not thought of.
It's most likely a picker - but if you show the code that's above this segment we can likely advise.
Hi guys.
Thank you for youe help, it has actually helped me get to the bottom of it!
Our client was adamant it was autopopulating so we went in looking for code that would do that.
So I started to make a video to show you our setup on the backend, and as I was making it, there it was. A picker!
So yes, not automatic, but you choose the document or url I guess!
Thank you once again!
Well - it would be trivial to change it if you wanted to.
In my experience clients say "We want it to be the latest article".. then they create an article they don't want to highlighted (imagine it's an apology for something or other) and then revert back to a picker ;)
Steve
With you on that, they'll end up with a random post about someone's birthday stuck there for a month :)
is working on a reply...
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.