Copied to clipboard

Flag this post as spam?

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


  • Molly 94 posts 134 karma points
    Aug 31, 2012 @ 17:42
    Molly
    0

    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 

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 03, 2012 @ 00:31
    Anthony Dang
    0

    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.

     

  • Molly 94 posts 134 karma points
    Sep 03, 2012 @ 14:36
    Molly
    0

    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. 

  • Molly 94 posts 134 karma points
    Sep 03, 2012 @ 18:13
    Molly
    0

    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 

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 04, 2012 @ 10:58
    Anthony Dang
    0

    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?

     

  • Molly 94 posts 134 karma points
    Sep 04, 2012 @ 11:14
    Molly
    0

    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. 

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 04, 2012 @ 16:13
    Anthony Dang
    0

    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

     

     

  • Molly 94 posts 134 karma points
    Sep 04, 2012 @ 16:54
    Molly
    0

    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 

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 04, 2012 @ 22:31
    Anthony Dang
    0

    Did you enable date folders?

    Does the Posts node already exist and is published?

     

     

  • Molly 94 posts 134 karma points
    Sep 13, 2012 @ 11:27
    Molly
    0

    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. 

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 15, 2012 @ 21:58
    Anthony Dang
    0

    Aha.

    I see the problem.

    I'll put the fix in the latest version. It should be available in the next few days.

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft