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
How to "newsTitle" list it here?
i didn't understand your question
To display a list of news items you have to use a xslt file. here is an example.
<ul> <xsl:for-each select="$currentPage/ancestor-or-self::node[@level='1']//node[@nodeTypeAlias='Nieuws']/node[@nodeTypeAlias='Nieuwsitem' and string(data [@alias='umbracoNaviHide']) != '1']"> <li> <a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="data[@alias='pageTitle']"/> </a> </li> </xsl:for-each></ul>
thanks Bas,but
How does umbraco's template included xslt file? Whether to use the macro?Parameter "select" means I can not understand. Can explain? thank you.
I think this pages can help you out:
http://umbraco.org/documentation/videos/for-site-builders/xslt-primer/creating-a-news-listhttp://blog.percipientstudios.com/2009/5/5/your-first-umbraco-xslt-macro.aspx
thanks a lot :)
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
How to get the title list?
How to "newsTitle" list it here?
i didn't understand your question
To display a list of news items you have to use a xslt file. here is an example.
<ul>
<xsl:for-each select="$currentPage/ancestor-or-self::node[@level='1']//node[@nodeTypeAlias='Nieuws']/node[@nodeTypeAlias='Nieuwsitem' and string(data [@alias='umbracoNaviHide']) != '1']">
<li>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="data[@alias='pageTitle']"/>
</a>
</li>
</xsl:for-each>
</ul>
thanks Bas,but
How does umbraco's template included xslt file? Whether to use the macro?
Parameter "select" means I can not understand. Can explain? thank you.
I think this pages can help you out:
http://umbraco.org/documentation/videos/for-site-builders/xslt-primer/creating-a-news-list
http://blog.percipientstudios.com/2009/5/5/your-first-umbraco-xslt-macro.aspx
thanks a lot :)
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.