Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have no idea why this is not working. I am making the following call:
<xsl:variable name="physiciansNode" select="umbraco.library:GetXmlNodeById('1130')"/>
The page returns the following text:
"No published item exist with id 1130"
I have verified, reverified, and verified again, the node I am trying to load IS PUBLISHED! I can preview the node and the template prints out the pageID which is in fact 1130.
Any ideas why this isn't working?
I have used this call in umbraco 3, and now I can't get it to work in 4.
Can you do this call without the quotes, as GetXmlNodeById expects an integer parameter.
<xsl:variable name="physiciansNode" select="umbraco.library:GetXmlNodeById(1130)"/>
I have tried that too, and the extension puts it in as string, but I did try it both ways.
Have you checked that data/umbraco.config xml file contains the node? I know that if the template is outputting the id then the raw xml must be ok.
Also, try outputting the cached xml directly to the screen, and then check it for the id too.
<textarea cols=50 rows="50"> <xsl:copy-of select="umbraco.library:GetXmlAll()"/></textarea
What happens if you access the node via xslt rather than api calls?
Does the page/node name get rendered on screen?
It was not showing up in the GetXmlAll call. I don't know why. I know that this particular node does not have an associated template, and neither does its parent, I don't have to have a template to get it into the xml do I?
Thanks for the additional info.
Hmmm, is it a permissions issue on the server to that data file you mentioned earlier maybe?
I there a solution for this problem? I'm having the same.
The problem in my respect was a file permission problem on the umbraco.config file in the config directory. This is apparently where the site's xml is cached and it is what appears to be used by the admin app.
If that's true, there will be hell to pay :pBut I can't imagine that is the case.
I'll let you know tomorrow.
It seems the security is set as it should be.
But no luck so far.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted