hiding post from navigation removes it from list of posts
Hi
I have integrated uBlogsy into my umbraco site and everything is fine apart from now when i go and create a new post > on the properties i choose to hide from my navigation (as i don't want my nav item "News" to drop down with every post. ) and it removes it from the list of posts on the main blog page, it still shows under Archives section on the sidebar.
Is there any reason why it is doing this? What's strange is that all of the test posts that were already in there when i downloaded uBlogsy are NOT ticked to hide from navigation yet they aren't showing in the nav (which is what i am trying to achieve). Just the new one I've made today.
I guess the intention was to hide it from the posts list... which is a way to "navigate" to the article. After all a navigation is just a list of links right? Some may disagree.
I'm not sure if anyone else has an issue with this functionality though.
Anyway, a work around would be to create another property. Call it hideFromMainNavigation. Then check for that property in your navigation script.
Sorry i'm still getting used to everything in Umbraco. Where am i finding this line of code IEnumerable ? I've checked in the cshtml of ublogsy the list posts and show posts i see similar lines but not that exact. Do i have to edit this line at all?
What doc type would i create this new property type on? Ublogsy doc? and by check for the property in my nav script what would i be looking for and would i have to insert that somewhere?
I figured out i was placing a post directly under the My Blog node rather than My Blog > Posts > Year > Month > Post .
when i place the post in the correct place it doesn't show on my navigation which is great.
However I have come across another error that i have posted in another forum, would i be able to post the link for you to have a look at, as i notice you have fixed similar problems like the one i am currently having?
If placing the node under folders works then cool.
To answer your original question about where to add the property. I would have added a true/false property to the uBlogsyPost doctype. Then in the navigation script just check of the property was selected.
I'm developing locally. Is there a way to change the root from News to Post on the content node property tab to create a new post
Otherwise when my client uses this quick post it will make it appear on the nav but i'd prefer it to be posted under the posts section to keep it tidy and also to keep it from appearing on the nav.
Just another quick question...I removed the categories property type from the post section because my clients don't really categorize their posts however it gave me error loading macro script for any new post until i put the category property back up? It's not a massive deal if this can't be taken away or atleast disabled, but just a thought.
I'm not sure what you mean by "change the root from News to Post"
Regarding the categories datatype, you can always remove all the categories so it will be empty... or you could hide the property. There are a few property hiders.
Can you see the image i posted? That only lets me create a post into Root : News
rather than Root : News > Post
So as of now my client will not be able to use that create post feature on the content node tab as it is placing the post created directly underneath the News node rather than
hiding post from navigation removes it from list of posts
Hi
I have integrated uBlogsy into my umbraco site and everything is fine apart from now when i go and create a new post > on the properties i choose to hide from my navigation (as i don't want my nav item "News" to drop down with every post. ) and it removes it from the list of posts on the main blog page, it still shows under Archives section on the sidebar.
Is there any reason why it is doing this? What's strange is that all of the test posts that were already in there when i downloaded uBlogsy are NOT ticked to hide from navigation yet they aren't showing in the nav (which is what i am trying to achieve). Just the new one I've made today.
Thanks for any help in advance :)
Hannah
Strange that no one has noted this until now.
Here's the line that is causing the problem
IEnumerable<DynamicNode> postList = GetPosts(nodeId).Where(x => x.GetProperty("umbracoNaviHide").Value != "1");
It's the main get posts method.
I guess the intention was to hide it from the posts list... which is a way to "navigate" to the article. After all a navigation is just a list of links right? Some may disagree.
I'm not sure if anyone else has an issue with this functionality though.
Anyway, a work around would be to create another property. Call it hideFromMainNavigation. Then check for that property in your navigation script.
Sorry i'm still getting used to everything in Umbraco. Where am i finding this line of code IEnumerable ? I've checked in the cshtml of ublogsy the list posts and show posts i see similar lines but not that exact. Do i have to edit this line at all?
What doc type would i create this new property type on? Ublogsy doc? and by check for the property in my nav script what would i be looking for and would i have to insert that somewhere?
Hope that makes sense.
Thanks for your help.
I figured out i was placing a post directly under the My Blog node rather than My Blog > Posts > Year > Month > Post .
when i place the post in the correct place it doesn't show on my navigation which is great.
However I have come across another error that i have posted in another forum, would i be able to post the link for you to have a look at, as i notice you have fixed similar problems like the one i am currently having?
Thanks
If placing the node under folders works then cool.
To answer your original question about where to add the property. I would have added a true/false property to the uBlogsyPost doctype. Then in the navigation script just check of the property was selected.
What's the link?
I'm developing locally. Is there a way to change the root from News to Post on the content node property tab to create a new post
Otherwise when my client uses this quick post it will make it appear on the nav but i'd prefer it to be posted under the posts section to keep it tidy and also to keep it from appearing on the nav.
Just another quick question...I removed the categories property type from the post section because my clients don't really categorize their posts however it gave me error loading macro script for any new post until i put the category property back up? It's not a massive deal if this can't be taken away or atleast disabled, but just a thought.
I'm not sure what you mean by "change the root from News to Post "
Regarding the categories datatype, you can always remove all the categories so it will be empty... or you could hide the property. There are a few property hiders.
eg. http://our.umbraco.org/projects/backoffice-extensions/uhidesy
Can you see the image i posted? That only lets me create a post into Root : News
rather than Root : News > Post
So as of now my client will not be able to use that create post feature on the content node tab as it is placing the post created directly underneath the News node rather than
- Content > News > Posts > New Post
it is putting them in
- Content > News > New Post
Did you enable date folders?
Does the Posts node already exist and is published?
Yes, enabled date folder and posts node exists and is published.
The posting is fine through the actual blog node, it's writing a quick post on the tab section of the content node i'm referring to.
Aha.
I see the problem.
I'll put the fix in the latest version. It should be available in the next few days.
is working on a reply...