Copied to clipboard

Flag this post as spam?

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


  • Rony 4 posts 24 karma points
    Oct 29, 2011 @ 00:33
    Rony
    0

    New nodes are not being retrieved

    Hi All,

    I am facing an issue in umbraco which i would appreciate if anyone can help me.

    I am new to the umbraco world and i have been into a project where umbraco has been used extensively.
    My issue is - I created a document type, and added a node of that type in the content (it is not exactly under the root node it is like Content > en-US > MyNewNode).

    Now I am accessing from my c#code and trying to retrieve the root as Node(-1), which is giving me the entire structure of tree but my new node is not comming.

    For any hint you might require - connection string in web.config is pointing correctly, i had published the node.

    Can anyone please help me to resolve this ? Thank you.

  • Rich Green 2246 posts 4006 karma points
    Oct 29, 2011 @ 10:23
    Rich Green
    0

    Hey Rony,

    Welcome to the Umbraco forum!

    Firstly it might help to post your C# code so we can see what's happening.

    The other thing to check is that if the node is actually published, you can check this by looking at you /App_Data/umbraco.config file this is the 'published' data that the Umbraco front end uses and depending on how you're accessing code this could be the problem.

    Also please post a image on your content tree as it will help.

    Regards

    Rich

  • Rony 4 posts 24 karma points
    Oct 30, 2011 @ 21:21
    Rony
    0

    Hi Rich, Thanks for the response.

    Regarding the C# code the root node is being retrieved as -

     var rootNode = UmbracoHelpers.GetRootNode();

    And in the UmbracoHelpers - GetRootNode is nothing but return new Node(-1);

     I dont see any config file in the app_data. But the connection strings are at my web.config.

     

    Thanks,
    Rony

  • Rony 4 posts 24 karma points
    Oct 30, 2011 @ 22:23
    Rony
    0

    Rich, I found the issue. Actually i found the correct umbraco.config it was in the /data folder. I removed it and then published, then i got my nodes in there and also from the code. Thank you very much. I was not at all aware of this config file. I though the data might be retrieved from database everytime. I have one more question which is on a specific requirement. I am raising it as a different post as i want to mark this as answered. The new post is with title - "Radiobutton list of child nodes". It would be great if you can have a look into that.

  • 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.

Please Sign in or register to post replies