Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sra 13 posts 33 karma points
    Aug 02, 2010 @ 06:10
    sra
    0

    How to get the title list?

    How to "newsTitle" list it here?


  • Eran Meir 401 posts 543 karma points
    Aug 02, 2010 @ 08:46
    Eran Meir
    0

    i didn't understand your question

  • Bas Schouten 135 posts 233 karma points
    Aug 02, 2010 @ 08:46
    Bas Schouten
    0

    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>

  • sra 13 posts 33 karma points
    Aug 02, 2010 @ 12:26
    sra
    0

    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.

  • Bas Schouten 135 posts 233 karma points
    Aug 02, 2010 @ 12:53
  • sra 13 posts 33 karma points
    Aug 02, 2010 @ 13:07
    sra
    0

    thanks a lot :)

  • 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.

Please Sign in or register to post replies