Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7511963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:43:16+00:00 2026-05-29T23:43:16+00:00

I am currently working on an Umbraco 4 to 5 migration project . I

  • 0

I am currently working on an Umbraco 4 to 5 migration project. I am stuck with reading the Home page childrens via REST service of an Umbraco 5 site (for navigation). I knew that the REST services can be exposed via MVC areas/routes and controller actions, and
using hive to get data from Umbraco . I used to get the data from Umbraco 4 with the following code

var nodes = uQuery.GetNodesByXPath(
"//root/descendant-or-self::* [@isDoc and (@level = 2) and string(umbracoNaviHide) != '1']"

I tried with the following code to fetch the data and it is not working

        var childs = RoutableRequestContext.Application.Hive.GetReader(new Uri("content://"));

        using (var uow = childs.CreateReadonly<IContentStore>())
        {
            var childIds = uow.Repositories.GetChildRelations(FixedHiveIds.ContentRootSchema, FixedRelationTypes.DefaultRelationType)
                        .Select(x => x.DestinationId).ToArray();

            IEnumerable<TypedEntity> children = uow.Repositories.Get<TypedEntity>(true, childIds);
        }

Does anyone know how to fetch the data from Umbraco5 using hive?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:43:18+00:00Added an answer on May 29, 2026 at 11:43 pm

    instead of

    FixedHiveIds.ContentRootSchema

    try using the Id of the parent that you’d like to look within. If you’re intending to use the root, it’s: FixedHiveIds.ContentVirtualRoot

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on a project using Umbraco and the client has asked for
Currently working on a site built in Django and i'm getting an issue when
Currently working on a flex AIR project based on PureMVC framework. There was a
Am currently working on a site that uses a lot of cfwindow objects and
I currently working on a project which uses Spree Cart and which has hence
im currently working on a project that involves listing contacts with a photo and
Im currently working on a site which will contain a products catalog. I am
Im currently working on a project that requires the following. I need to be
I am currently working on a one-page layout for a website. Each section of
Currently working on a project with the cloud / azure and windows phone 7,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.