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
Hi, I have a problem to with a general news section.
My structure looks like this:
Root- General news - News article- Customer portal 1 - Customer news - News article- - Customer portal 2 - Customer news - News article
I have no problem to list the news from both general news and customer news on the customer portal page.
But the URL to the general news article points to url above customer portal, but I want it to act as it where on the customer portal page.
My xlst looks like this,
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:PS.XSLTsearch="urn:PS.XSLTsearch" exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets PS.XSLTsearch "><xsl:output method="xml" omit-xml-declaration="yes" /><xsl:param name="currentPage"/><!-- Don't change this, but add a 'contentPicker' element to --><!-- your macro with an alias named 'source' --><xsl:variable name="source" select="/macro/source"/><xsl:variable name="source2" select="1153"/> <xsl:template match="/"> <h1>Aktuell information</h1><!-- The fun starts here --><table width="350"> <xsl:for-each select="umbraco.library:GetXmlNodeById($source)/* [@isDoc and string(umbracoNaviHide) != '1'] | umbraco.library:GetXmlNodeById($source2)/* [@isDoc and string(umbracoNaviHide) != '1']"> <xsl:sort select="umbraco.library:FormatDateTime(@updateDate, 'yyyy-MM-dd hh:mm')" order="descending" /> <tr> <td><xsl:value-of select="umbraco.library:FormatDateTime(@createDate, 'yyyy-MM-dd')"/></td> <td><a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="@nodeName"/> </a></td> <td>(<xsl:value-of select="nyhetsavsandare"/>)</td> </tr></xsl:for-each> </table></xsl:template></xsl:stylesheet>
Is the anyone out there who could help me to get the xlst right?
Nicklas
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
General newssection
Hi, I have a problem to with a general news section.
My structure looks like this:
Root
- General news
- News article
- Customer portal 1
- Customer news
- News article
- - Customer portal 2
- Customer news
- News article
I have no problem to list the news from both general news and customer news on the customer portal page.
But the URL to the general news article points to url above customer portal, but I want it to act as it where on the customer portal page.
My xlst looks like this,
Is the anyone out there who could help me to get the xlst right?
Nicklas
is working on a reply...