Suggest how to get parent site name from subsite name from another root using umbraco.
For eg.
- Home
- Overview
- About
Assume that from search page i need to get name of the subsite name and parent site name like below:
- Subsite1 - Home
- Overview - Home
- Subsite1 - Parent2
- Subsite2 - Parent4
What i have tried:
- @foreach( var container in Model.Content.Children("container")
- {
- var containerName = container.HasProperty("containerTitle") &&
- container.HasValue("containerTitle")? container.GetPropertyValue
- ("containerTitle"): container.Name;
- }
please suggest your logics. Thanks in advance.

Replies
Know the answer? Post it — somebody with the same question will find it here.