Single List of content from two different folders - multisite implementation
Hi
I want to create a news summary for a umbraco implementation I'm working on with multiple sites. I have a top level global content folder and then multiple sites, and want to be able to create news stories both globally and locally
the problem I'm having is that I am able to list both global and local news for each site, but they appear as separate lists. Is there any way anyone knows of usnig a single xslt to select 'news' content from both the global folder and the local folder within an XSLT, combine both lists, sort according to create date and output a single list
If the news are stored in nodes with a specific doctype it is easy. Just say you have a doc type called "NewsItem" then you can make something like this:
Thanks for the reply. That would work in one situation, but I have one global content site and many local sites all of which have their own local news that must not be shared The xpath you specified in your foreach would I think select all nodes of that type within all sites, but I only want to pick nodes from the local site and from the global folder
i.e
o Global Folders
o Site 1
o Site 2
Site 1 should only see it's news and the global news, and same for site 2
Single List of content from two different folders - multisite implementation
Hi
I want to create a news summary for a umbraco implementation I'm working on with multiple sites. I have a top level global content folder and then multiple sites, and want to be able to create news stories both globally and locally
the problem I'm having is that I am able to list both global and local news for each site, but they appear as separate lists. Is there any way anyone knows of usnig a single xslt to select 'news' content from both the global folder and the local folder within an XSLT, combine both lists, sort according to create date and output a single list
thanks,
If the news are stored in nodes with a specific doctype it is easy. Just say you have a doc type called "NewsItem" then you can make something like this:
hth, Thomas
Hi Thomas
Thanks for the reply. That would work in one situation, but I have one global content site and many local sites all of which have their own local news that must not be shared The xpath you specified in your foreach would I think select all nodes of that type within all sites, but I only want to pick nodes from the local site and from the global folder
i.e
o Global Folders
o Site 1
o Site 2
Site 1 should only see it's news and the global news, and same for site 2
thanks,
ahh ok, then try something like this one:
hth, Thomas
Did this work?
Cheers, Thomas
is working on a reply...