TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guruprakash C
NA
142
27.7k
How to get parent site name from subsite using Umbraco
Jan 9 2018 2:33 AM
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.
Reply
Answers (
0
)
How to use multiple model with model binder-mvc.net
The model item passed into the dictionary is of type