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 very simple question. i wanna write somthing like this in xslt.
if(nodeId==1092)
but i couldn't write this in xslt.please help me.
Hi Onur
I took the liberty to move your post to the XSLT forum.
To do the above in xslt you would do it this way.
<xsl:if test="$currentPage/@id !='1092'><!-- Code goes here --></xsl:if>
What is it you're trying to achieve?
/Jan
Hi Jan.Thank you for answer.But it didnt work.there is char mistake.Can you check this again.
am trying to add link to titles that has this id.
<xsl:if test="$currentpage/@id=='1092'"> <a href="{umbraco.library:NiceUrl(current()/@id)}">Devam...</a> </xsl:if>
where am i doing wrong?
You have two equal signs instead of one.
<xsl:if test="$currentPage/@id='1092'"><!-- Code goes here --></xsl:if>
What is it that you're trying to achieve? Is it just setting the above link or is there more to it?
I found where i am doing wrong.Thank you Jan :)
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
NodeId Control
Hi.i have a very simple question. i wanna write somthing like this in xslt.
if(nodeId==1092)
but i couldn't write this in xslt.please help me.
Hi Onur
I took the liberty to move your post to the XSLT forum.
To do the above in xslt you would do it this way.
<xsl:if test="$currentPage/@id !='1092'>
<!-- Code goes here -->
</xsl:if>
What is it you're trying to achieve?
/Jan
Hi Jan.Thank you for answer.But it didnt work.there is char mistake.Can you check this again.
am trying to add link to titles that has this id.
<xsl:if test="$currentpage/@id=='1092'">
<a href="{umbraco.library:NiceUrl(current()/@id)}">Devam...</a>
</xsl:if>
where am i doing wrong?
Hi Onur
You have two equal signs instead of one.
<xsl:if test="$currentPage/@id='1092'">
<!-- Code goes here -->
</xsl:if>
What is it that you're trying to achieve? Is it just setting the above link or is there more to it?
/Jan
I found where i am doing wrong.Thank you Jan :)
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.