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 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 I have cleaner like this .cleaner:after { content: '.'; display: block; clear:
Let's say I have xml structure like this <root> <element>some content</element> <element>some content 2</element>
Say I have the following text ..(content)............. <A HREF=http://foo.com/content >blah blah blah </A> ...(continue
I have a content page(Say.. invoice.aspx) in asp.net application with master pages. The content
Say I have a structure like this: class AAA { BBB bb_member; double dbl_member;
I have a db structure like: posts id title content users id .... post_reads
I have a directory structure like this Root Sub Dir A Content Admin And
Just for learn: Say we have: interface Musician { /* content skipped */ }
Let's say I have the following content: Lorem Ipsum is simply dummy text of
Say I have a web service where I want to serve the content only

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.