I would like a like with all nodes from home page through all the site by different node nodeTypeAliases. Is that possible somehow using razor?
So far I have this:
By doing it by this way, then you donĀ“t need to use a specific id, to get data from. The id can change if the user delete the homepage and create again, then it will get another id, than 1060.
Remember to change the document type alias so it match your case.
List all nodes by node nodeTypeAlias(es)
Hi,
I would like a like with all nodes from home page through all the site by different node nodeTypeAliases. Is that possible somehow using razor? So far I have this:
Hi Levente,
WIth this code below should list pages from home page through all the site by different nodes.
By doing it by this way, then you donĀ“t need to use a specific id, to get data from. The id can change if the user delete the homepage and create again, then it will get another id, than 1060.
Remember to change the document type alias so it match your case.
Hope this helps,
/Dennis
And if you want to list more nodes by more than one DocumentTypeAlias then you can do by this way.
In the example above I list nodes that uses the document types with the aliases of "umbNewsItem" and "umbTextPage"
Hope this helps,
/Dennis
Hi Dennis,
It's perfect, again. It seems you are my hero today :)
Hi Levente,
You are welcome. Great that it works like intended. I am glad that I can help you.
/Dennis
Hi Dennis,
Sorry, that I interrupt again, but I have a really big problem. It's totally different problem like this, just unfortunately nobody knows what is the solution for my problem, and it's very important. Can you have a look at this link, if it's not a big problem? Maybe you know the answer or have a solution: https://our.umbraco.org/forum/getting-started/questions-about-runway-and-modules/67065-save-problem-after-100-images
Thank you, Levente
is working on a reply...