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 would like to create a list of all pages stored in the same node of current page.
For example:
- News List
* News number 1
* News number 2
* News number 3
When i see the page "News number 2" i want to create a list with "News number 1" and "News number 3".
I am using 4.5.2 for .Net 3.5 version.
With previous version I had no problem.
Please help me.
Thank you very much,
Davide
Hi Davide.
You should be able to accomplish this with the following piece of code:
<xsl:for-each select="$currentPage/../*[@isDoc and @id!=$currentPage/@id]"> <a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="@nodeName"/></a><br/></xsl:for-each>
/Kim A
Hi Kim,
thank you very much!
I have not found an explanation in umbraco documentation.
Can you tell me where I can read documentation about xslt on version 4.5?
bye,
Hi Davide,
Check out this wiki article that explains the differences between the 4.0 and 4.5 schemas. Also includes a page with some examples.
http://our.umbraco.org/wiki/reference/xslt/45-xml-schema
-Tom
Hi Tom,
thank you for link!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Generate list brothers pages
I would like to create a list of all pages stored in the same node of current page.
For example:
- News List
* News number 1
* News number 2
* News number 3
When i see the page "News number 2" i want to create a list with "News number 1" and "News number 3".
I am using 4.5.2 for .Net 3.5 version.
With previous version I had no problem.
Please help me.
Thank you very much,
Davide
Hi Davide.
You should be able to accomplish this with the following piece of code:
/Kim A
Hi Kim,
thank you very much!
I have not found an explanation in umbraco documentation.
Can you tell me where I can read documentation about xslt on version 4.5?
bye,
Davide
Hi Davide,
Check out this wiki article that explains the differences between the 4.0 and 4.5 schemas. Also includes a page with some examples.
http://our.umbraco.org/wiki/reference/xslt/45-xml-schema
-Tom
Hi Tom,
thank you for link!
Davide
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.