I have a page field (alias is on the subpages of page where this list is displayed) but I can't seem to call the values in the page field to display in this list? This is just a list too, no links or anything remotely complex. My xslt is shaky at best with the old schema, I would have used:
Using the code above, I get the bullets, but no values. If I leave out the [not(@isDoc)], I get the bullets with no values. If I use [@isDoc] I get no list at all. Any ideas?
Are you sure that you're not using 4.5.1 with the old schema? There's a setting in the web.config file which allows this to happen
<UseLegacyXmlSchema>true</UseLegacyXmlSchema>
You may already know this but all the published nodes are in a file named "umbraco.config" in the App_Data folder, open this file in notepad / visual studio and you can see what XML is being published, this can be really useful when debugging XSLT.
Thanks Rich, I didn't know that. But I also don't have ftp access to this site so can't check it. I have to presume that's the case seeing as the new schema doesn't work :)
Listing page fields in new schema 4.5
Hi, I am trying to make a simple list using:
I have a page field (alias is on the subpages of page where this list is displayed) but I can't seem to call the values in the page field to display in this list? This is just a list too, no links or anything remotely complex. My xslt is shaky at best with the old schema, I would have used:
Any ideas for the 4.5 version of the above code? Don't really understand isDoc although I have read the tutorial here:
http://our.umbraco.org/forum/core/41-feedback/9277-New-xml-schema---can-someone-explain-isDoc
Using the code above, I get the bullets, but no values. If I leave out the [not(@isDoc)], I get the bullets with no values. If I use [@isDoc] I get no list at all. Any ideas?
Thanks,
Sam.
Hi Sam
If you want to create a list with content from the current pages children, you should be able to do it like this:
The above code runs through all of the children on the level under the current page, and will create a <li> for each of the nodes.
/Kim A
Hi Kim, thanks, but no luck with that either, I tried that combo earlier, I thought it would work too.
The above code means no menu at all shows on the page, not even the list bullets. Running version 4.5.1 so I'm not sure why this doesn't work.
Strangely, on trying the old schema, the following DOES list the correct values:
...but running 4.5.1 here?!
Sam.
Are you sure that you're not using 4.5.1 with the old schema? There's a setting in the web.config file which allows this to happen
You may already know this but all the published nodes are in a file named "umbraco.config" in the App_Data folder, open this file in notepad / visual studio and you can see what XML is being published, this can be really useful when debugging XSLT.
Rich
Thanks Rich, I didn't know that. But I also don't have ftp access to this site so can't check it. I have to presume that's the case seeing as the new schema doesn't work :)
Sam.
is working on a reply...