Copied to clipboard

Flag this post as spam?

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


  • nesttor 4 posts 24 karma points
    Feb 10, 2013 @ 12:48
    nesttor
    0

    node content displays only the first item

    Hi, I just new here and Im having this problem.  Firs it was ok,.. i dont know after sometime it only displays FIRST content of my node. I included the xslt code below.

    <ul>
    <xsl:for-each select="$currentPage/* [@isDoc and string(umbracoNaviHide) != '1']">
        <li>
            <a href="{umbraco.library:NiceUrl(@id)}">
                <br/><xsl:value-of select="../articleAuthor"/>
            </a>
        </li>
    </xsl:for-each>
    </ul>

    and this razor part


      <ul>
        @foreach(var item in pagesToList.Skip(currentPage*itemsPerPage).Take(itemsPerPage))
        {
              <li>
                  <ul>
                 <li>@item.Name</li>
                <li>@item.articleAuthor</li>
                </ul> 
            </li><br/>
        }
      </ul>

     

    result is

    thesame is happening in my razor pagination code.

    Anyone please help!! thank you in advance :)

  • nesttor 4 posts 24 karma points
    Feb 10, 2013 @ 13:01
    nesttor
    0

    sorry this is the xslt :(

    <ul>
        <xsl:for-each select="umbraco.library:GetXmlNodeById(1378)/* [@isDoc]">
         
    <li>   
        <a href="{umbraco.library:NiceUrl(@id)}">
            <xsl:value-of select="./articleAuthor"/><br/> ---------->>>>> the author appears only on first item of the list,,
        <xsl:value-of select="@nodeName"/><br/>
       
    </a>
    </li>

    </xsl:for-each>
    </ul>


    again thanks in advance

  • 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