Copied to clipboard

Flag this post as spam?

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


  • Alex 3 posts 23 karma points
    Apr 29, 2010 @ 23:04
    Alex
    0

    "Read More.... " link

    Hi there,

    I'm installed Umbraco 4.03 a couple of days ago. How can I make the classic read more link, like news articles in other CMS (for example like in joomla)?

    Any suggestion are appreciated.

    Alessandro

  • Chris Dunn 210 posts 401 karma points
    Apr 30, 2010 @ 20:14
    Chris Dunn
    0

     

    Alex,

    If you want to display a list of news articles and a 'read more' link following a title and teaser, this is a quick

    take on what you might do.  I haven't validated the xslt.  Just a quick type.

    <xsl:for-each select="$currentPage/node [@nodeTypeAlias = 'newsStory']">
    <div>
    <strong><xsl:value-of select="@nodeName"/></strong><br/>
    <p>
    <xsl:value-of select="data [@alias='storyTeaser'] "/>
    </p>
    <a href="{umbraco.library:NiceUrl(@id)}">Read More...</a>
    </div>
    </xsl:for-each>

     

    If you haven't gotten that involved with the xslt and macros yet, I would suggest downloading the CWS package for demo of 

    how to implement news.  

    http://our.umbraco.org/projects/creative-website-starter-(cws)

    -Chris

     

  • 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