Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Question: Functions; I have input, but no output. What's wrong with my XSLT?

$
0
0

> how do I capture the URL of the displaying C1 page to use in the function?

In XSLT, one way would be to make a function call to Composite.Pages.GetPageId, which returns the current page's ID by default.

In your XSLT, add a variable that uses the return value:

<xsl:variable name="currentPage" select="/in:inputs/in:result[@name='GetPageId']" />

and use the value of this variable to form the URL:

~/page({$currentPage}) 

The latter will be resolved to a normal URL by Composite C1

/Vitaly



Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>