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

New Post: How do you loop through child pages of a parent page and display meta field values?

$
0
0
Thankyou Marcus. That's gotten me a lot further than I was previously.

I created a new xslt method called GeneratePortfolioHome. The code is below. This is actually generating the correct data but it's duplicated twice. I can't see why it would be doing that.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:in="http://www.composite.net/ns/transformation/input/1.0" xmlns:lang="http://www.composite.net/ns/localization/1.0" xmlns:f="http://www.composite.net/ns/function/1.0" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xsl in lang f">
    <xsl:variable name="PortfolioList" select="/in:inputs/in:result[@name='GetChildPageDetails']/PortfolioPages" />
    <xsl:template match="/">
        <html>
            <head></head>
            <body>
                <div id="portfolioList">
                    <ul>
                        <xsl:for-each select="$PortfolioList/*">
                            <li>
                                <h3><xsl:value-of select="./@Title" /></h3>                                                         
                                <xsl:value-of select="./@ExternalLink" />
                                
                            </li>
                        </xsl:for-each>
                    </ul>
                </div>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>

Viewing all articles
Browse latest Browse all 2540

Trending Articles



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