Display content from root node in multiple subnodes
We're setting up multiple web sites under a single installation of Umbraco. Each site is a content node. No problems there. What we'd like to do is create a content node that will contain content that all the sites can display, content such as news releases.
What would be a recommended structure for this scenerio and what would be the best way to display this common content using each site's specific template(s)?
And want to have a news-section, which is shared among all three sites I would place the news-section at the same level as the sites, and the fetch it using xslt like this...
But in terms of SEO I think you need to pay some attention so that you don't end up having duplicate content, since you are potentially showing the same content at three different domains.
Looking forward to see what others have to suggest.
We're on the right path, but we're not getting up high enough. I can only get in the current first level node. What I need is the items in another node one level below Content, same level as my site root.
Maybe you can use the umbraco.library:GetXmlNodeById. If your shared node has an id of 1252, then you can do somehting like this:
umbraco.library:GetXmlNodeById(1252)
In this way you'll grab the content from that node. Now I don't know what you need to search for in your content, but try it out, and check the wiki out about the extension I mentioned.
In order to use Kim's solution and not have to worry about hard-coding the ID, you could place a content picker property on your pages, and with that select where The news should be fetched from.
Just forget what I was writing about in my previous post...it's not the way to do it. Sorry about that.
So that takes care of the list of news items, it displays within the root web site web page. However, somewhat related to your SEO question... the news items themselves are displaying outside of the site. I'll have to think about that... maybe displaying the actual news release under it's own subdomain... news.company.com for example.
Well I'm no SEO expert so I'm not the right person to guide you. I just know that there can be some issues related with that way of handling the content :-)
Display content from root node in multiple subnodes
We're setting up multiple web sites under a single installation of Umbraco. Each site is a content node. No problems there. What we'd like to do is create a content node that will contain content that all the sites can display, content such as news releases.
What would be a recommended structure for this scenerio and what would be the best way to display this common content using each site's specific template(s)?
Hi Connie
If you have a setup like this
Content
- Site 1
- Site 2
- Site 3
And want to have a news-section, which is shared among all three sites I would place the news-section at the same level as the sites, and the fetch it using xslt like this...
<xsl:for-each select="$currentPage/ancestor-or-self::node[@level = '1']/node[@nodeTypeAlias = 'newsitem']">Stuff goes here</xsl:for-each>
But in terms of SEO I think you need to pay some attention so that you don't end up having duplicate content, since you are potentially showing the same content at three different domains.
Looking forward to see what others have to suggest.
/Jan
We're on the right path, but we're not getting up high enough. I can only get in the current first level node. What I need is the items in another node one level below Content, same level as my site root.
Hi Connie
Maybe you can use the umbraco.library:GetXmlNodeById. If your shared node has an id of 1252, then you can do somehting like this:
In this way you'll grab the content from that node. Now I don't know what you need to search for in your content, but try it out, and check the wiki out about the extension I mentioned.
Hope this makes sense :)
/Kim A
That's not the best solution, as it means hard coding the ID, but it does work and the ID will most likely never change.
In order to use Kim's solution and not have to worry about hard-coding the ID, you could place a content picker property on your pages, and with that select where The news should be fetched from.
Just forget what I was writing about in my previous post...it's not the way to do it. Sorry about that.
/Jan
So that takes care of the list of news items, it displays within the root web site web page. However, somewhat related to your SEO question... the news items themselves are displaying outside of the site. I'll have to think about that... maybe displaying the actual news release under it's own subdomain... news.company.com for example.
Well I'm no SEO expert so I'm not the right person to guide you. I just know that there can be some issues related with that way of handling the content :-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.