Are you displaying the content via XSLT or C# code. XSLT should always work with published content, some of the API objects (Document, etc) exist in both published and unpublished states.
Have a look at the raw xml data file /data/umbraco.config.... does this contain the unpublished node?
How did the node get unpblished.. was it via expiration dates?
Also try the audit trail command from the pop-up menu when you right click the node in the tree. Should tell you if the page got republished after it was last removed.
To me it sounds as if your permissions are wrong. Make sure the permission settings are correct for the /data folder (or the folder you've chose to have the data in), the user running the application pool should have MODIFY here.
But my worry is like if some updates are done on any nodes(including the problem node) its showing properly...and for this error giving node after unpublishing it wont show for sometime, say around 3-4 hours.. but after that again its showing some previous version content :(
Macro caching may also be an issue here. You can clear the cache (I think) by right-clicking on the top-level node of the content section ("Content") and choosing "Republish entire site". Note this different to clicking on a content node and choosing Publish.
Website showing unpublished content
Hi all,
I have a node with status as unpublished.(Earlier it was published only). but its showing in the front end.
how it can be resolved? do i need to check the node is published or not in the XLST? if yes how it can be done?
Are you displaying the content via XSLT or C# code. XSLT should always work with published content, some of the API objects (Document, etc) exist in both published and unpublished states.
Have a look at the raw xml data file /data/umbraco.config.... does this contain the unpublished node?
How did the node get unpblished.. was it via expiration dates?
Hi Chris,
Thanks for your reply.
I'm displaying the content via xslt. I unpublished the content from the admin side and not with expiration dates.
Yes, in umbraco.config the node details are showing.
when i do unpublish it wont show in the site for some time but after sometime its again coming back. :(
Have a look in the umbracoLog table and also at the pervious versions. There may be something that helps you there.
Are you sure someone else isn't republishing this page, or republishing it's parent and selecting 'publish all children'?
Also try the audit trail command from the pop-up menu when you right click the node in the tree. Should tell you if the page got republished after it was last removed.
Hi,
I checked the audit trail thing... nobody has published it before i unpublished.
and in the admin side its the status of the node is unpublished only. But in front end its showing :(
Chirs, as u asked even after unpublishing the node the details are showing in the umbraco.config file.
I believe it was not supposed to show, rt? :(
Here is the xslt: i'm using to show the link for that node.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<span id="sector">
<xsl:if test="$currentPage/ancestor-or-self::node/@id = '1047'">
<xsl:for-each select="$currentPage/ancestor-or-self::node [@level = 1]/descendant::node [@id = '1118']">
<h4 class="drawer-handle">
<div class="copy">
<a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="string(data[@alias='MenuName'])"/></a></div></h4>
<div class="drawer-content">
<xsl:variable name="sourceUrl" select="string(data [@alias='ThumbnailImage'])" />
<xsl:choose>
<xsl:when test="$sourceUrl != ''">
<a href="{umbraco.library:NiceUrl(@id)}"><img src="{umbraco.library:GetMedia($sourceUrl,'false')/data [@alias='umbracoFile']}" height="83" width="167" border="0"/></a>
</xsl:when>
<xsl:otherwise>
<a href="{umbraco.library:NiceUrl(@id)}"><img src="/umbraco/../media/382/default_tb.jpg" height="83" width="167" border="0"/></a>
</xsl:otherwise>
</xsl:choose>
</div>
<a href="{umbraco.library:NiceUrl(@id)}"><p>
<xsl:value-of select="substring(data[@alias='pageTeaser'],0,60)"/>...
>>
</p></a>
</xsl:for-each>
</xsl:if>
</span>
</xsl:template>
</xsl:stylesheet>
To me it sounds as if your permissions are wrong. Make sure the permission settings are correct for the /data folder (or the folder you've chose to have the data in), the user running the application pool should have MODIFY here.
But my worry is like if some updates are done on any nodes(including the problem node) its showing properly...and for this error giving node after unpublishing it wont show for sometime, say around 3-4 hours.. but after that again its showing some previous version content :(
I'll check the file permission too...
Macro caching may also be an issue here. You can clear the cache (I think) by right-clicking on the top-level node of the content section ("Content") and choosing "Republish entire site". Note this different to clicking on a content node and choosing Publish.
Cheers
JT
is working on a reply...