Hello.
I want to setup a 404-error page in the root of the site, and the page is using data from homepage (another root-page), so the question is how to get all root pages from other root-page and then use them?
I use Siblings<TModel>() for now:
var x = My404Page.Siblings<Home>();
// do something with it...
How to get all root-pages?
Hello. I want to setup a 404-error page in the root of the site, and the page is using data from homepage (another root-page), so the question is how to get all root pages from other root-page and then use them?
I use
Siblings<TModel>()
for now:Hi Dmitriy,
Is it working for you?
Also, you can use, it will return all root nodes:
Thanks,
Alex
Hi, Alex.
Yes, it works, but not universal- it can't be used in any page, only in other root-page.
Looks like what I want. Thanks a lot!
You are welcome, Dmitriy
Have a great day!
is working on a reply...