Library Call to Check for Duplicates Ignores Unpublished Nodes
System: Umbraco Version - 4.7.1 ,Windows Server 2008 – 8gb memory – 4 Zeon 2.27Ghz processors service pack 1 – 64 bit OS , IIS version 7.5.7600.16385, SQL Server 2008 R2, Stacktrace - N/A
I have posted earlier about random nodes suddenly becoming unpublished in 4.7.1. Our only recourse if to republish each site. We are still investigating why this is happening. Unfortunately this has given rise to another problem where two copies of the same file/node are generated when a publish event makes a library call. Thisresults in a duplicate file being generated.
I am writing on behalf of our developer. The code he gave me is as follows:
"In a Publish I am calling the following to find if a
child already exists with a particular name (Jonathan Carter M.D.)
But this only looks in the published nodes (Umbraco
cache). How do I find if the particular name (Jonathan Carter M.D.) already
exists as an unpublished node which is not in the cache and not accessible from
the library call?"
Library Call to Check for Duplicates Ignores Unpublished Nodes
System: Umbraco Version - 4.7.1 ,Windows Server 2008 – 8gb memory – 4 Zeon 2.27Ghz processors service pack 1 – 64 bit OS , IIS version 7.5.7600.16385, SQL Server 2008 R2, Stacktrace - N/A
I have posted earlier about random nodes suddenly becoming unpublished in 4.7.1. Our only recourse if to republish each site. We are still investigating why this is happening. Unfortunately this has given rise to another problem where two copies of the same file/node are generated when a publish event makes a library call. Thisresults in a duplicate file being generated.
I am writing on behalf of our developer. The code he gave me is as follows:
"In a Publish I am calling the following to find if a child already exists with a particular name (Jonathan Carter M.D.)
XPathNodeIterator parentNodeIter =
umbraco.library.GetXmlNodeById(parent.ToString());
But this only looks in the published nodes (Umbraco cache). How do I find if the particular name (Jonathan Carter M.D.) already exists as an unpublished node which is not in the cache and not accessible from the library call?"
is working on a reply...