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 am using Umbraco for a couple of days now and see the potential but got stuck on the following:
In the content section I made two nodes, one for my navigation and subnavigation and another one for banners.
These banners consist of an image and a title and will eventually lead towards a textpage. I want these banners to be shown on every page, here is where my problem starts.
I made my document type, my template and xslt, but the xslt examples I've seen all wat to approach data through the current page, I don't need/want to do this as my data needs to come from a different document type.
Is it possible to do something like:
<xsl:for-each select="documenttype"> ...</xsl:for-each>
Maybe my thoughts are completely wrong, but being new to this any help or reference towards howto-documents is welcome.
$currentPage is just a starting point, you can use it to access other pages outside of it by using different axes (see XPath Axes Visualizer to see how this works)
If your structure is like:
- Root (Content)- - Page- - - Page- - Page- - Banners (Doctype: Folder-Banners)- - - Banner1 (Doctype: Banner)
You can use the below to traverse to the root, then to the Banners folder & each banner inside
Also if your Banners can be in different areas of the site and you're not sure where, you can use the below to get all banners beneath the root - though the above is probably better performing.
Hope this helps,Tom
Thanks Tom, this certainly helps!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted