Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • saji 83 posts 38 karma points
    Nov 03, 2009 @ 09:55
    saji
    0

    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?

  • Chris Koiak 700 posts 2626 karma points
    Nov 03, 2009 @ 10:02
    Chris Koiak
    0

    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?

     

  • saji 83 posts 38 karma points
    Nov 03, 2009 @ 10:46
    saji
    0

    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. :(

     

     

     

  • Chris Koiak 700 posts 2626 karma points
    Nov 03, 2009 @ 14:43
    Chris Koiak
    0

    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'?

  • David Lees 5 posts 25 karma points
    Nov 03, 2009 @ 14:52
    David Lees
    0

    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.

  • saji 83 posts 38 karma points
    Nov 03, 2009 @ 15:11
    saji
    0

    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 "&#x00A0;"> ]>
    <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)"/>... &nbsp;
        >>
        </p></a>
      </xsl:for-each>
    </xsl:if>

    </span>

    </xsl:template>

    </xsl:stylesheet>

  • Stephan Lonntorp 195 posts 212 karma points
    Nov 03, 2009 @ 15:40
    Stephan Lonntorp
    1

    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.

  • saji 83 posts 38 karma points
    Nov 03, 2009 @ 15:49
    saji
    0

    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...

  • James Telfer 65 posts 165 karma points
    Nov 05, 2009 @ 14:09
    James Telfer
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft