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

  • Home
  • SEARCH
  • 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 4171768
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:29:02+00:00 2026-05-21T00:29:02+00:00

Say I have a content structure like: About Us Information Contact Us Blah When

  • 0

Say I have a content structure like:

About Us
  Information
  Contact Us
  Blah 

When a user clicks About Us, how can I make it display the Information page?

This would be required on multiple site sections so hardcoding links / redirects won’t work.

How can I make a page display the content from the first child, if exists?

  • 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-21T00:29:02+00:00Added an answer on May 21, 2026 at 12:29 am

    I think it might be easier to answer if you describe what you are trying to do.

    But if you are on the “About Us” page (ie. Sitecore.Context.Item is the “About Us” item).

    You can check if the current item has children like this:

    if (Sitecore.Context.Item.HasChildren) { /* do something */ }
    

    You can access the children in the following way:

    Sitecore.Context.Item.Children
    

    This returns a ChildList object on which you could call GetArray() to get an Item[].

    If you just blindly wanted the first item I guess you could call:

    Sitecore.Context.Item.Children.ToArray()[0]; //arrays are zero-based, so the first item is 0 and not 1
    

    But try to write a bit about what you are trying to do (ie make a menu or something).

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

Sidebar

Related Questions

Let's say you have this scenario:a simple blog home-page that loads both static content
I have this structure: <div class=father> This string is left-aligned <div class=divToCenter style=display:inline-block;> //contains
Say I have a list of divs identified by class .e.g '.myclass' Inside each
Let's say I have a JS in one file that creates a Viewport :
What I mean is, let's say I have two organizations ACME and Boring Corp.
how do we set the content type header for a page not served from
I'll start with an example and hopefully it will help explain my question. Say
I need to write something into a text file's beginning. I have a text
There is a tutorial video that introduces Spring MVC 3.0. In the demo-project they
Sorry for the rather vague title, but it seemed befitting of a similarly vague

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.