How to preview content with no hostname associated
I have more than one site under a single install of Umbraco. Each has it's own hostname and domain associated with it. I also have some content nodes off the root that are site independent, i.e. their content is used in multiple sites, i.e. events, news, etc. Each of these specialized root level content nodes does not have a hostname or domain name associated.
Now my people want to be able to preview the content in these specialized nodes. I can create and associate a generic template for them, but they won't view or preview since they don't exist as a standalone page under any domain. How can I preview this content?
You could create a dummy page in the site where you do want this information to be displayed, and the template for the dummy page call an xslt that gets and displays the information from the page at the root level.
Eg, use GetXmlNodeById (or url) whatever you are more comfortable with.
How to preview content with no hostname associated
I have more than one site under a single install of Umbraco. Each has it's own hostname and domain associated with it. I also have some content nodes off the root that are site independent, i.e. their content is used in multiple sites, i.e. events, news, etc. Each of these specialized root level content nodes does not have a hostname or domain name associated.
Now my people want to be able to preview the content in these specialized nodes. I can create and associate a generic template for them, but they won't view or preview since they don't exist as a standalone page under any domain. How can I preview this content?
You could create a dummy page in the site where you do want this information to be displayed, and the template for the dummy page call an xslt that gets and displays the information from the page at the root level.
Eg, use GetXmlNodeById (or url) whatever you are more comfortable with.
<xsl:variable name="thePage" select="umbraco.library:GetXmlNodeById('String id')"/>
This one xslt/template could be called from each dummy page under each site you have.
Hope that helps.
Problem is, how do I hide those dummy pages. It's a workaround, just not very clean. And, you'd have to view/preview outside the node you are editing.
is working on a reply...