Copied to clipboard

Flag this post as spam?

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


  • Daniel Horn 319 posts 344 karma points
    Nov 07, 2010 @ 00:49
    Daniel Horn
    0

    <ul class="right">

    Hey

    I got a navigation on this site, where the normal navigation is left positioned and then there is a few of the navigation links which shall be right positioned with a <ul class="right">.

    How do i seperate these links? they are at the same level in the nodetree.

    I was thinking having a property on the doc type that says something like Right -> yes and then it positions it on the right, but, not sure how to get it right positioned.. 

     

    Any ideas? It might be simple :)

  • Fernando 9 posts 30 karma points
    Nov 07, 2010 @ 06:20
    Fernando
    1

    I would add a property indicating the right positioning, and then use someting like the following code:

    <ul class="left">
      <xsl:for-each select="umbraco.library:GetXmlNodeById($source)/* [@isDoc and string(rightPositioning) = '0']">
      <li>
        <a href="{umbraco.library:NiceUrl(@id)}">
          <xsl:value-of select="@nodeName"/>
        </a>
      </li>
      </xsl:for-each>
    </ul>

    <ul class="right">
      <xsl:for-each select="umbraco.library:GetXmlNodeById($source)/* [@isDoc and string(rightPositioning) = '1']">
      <li>
        <a href="{umbraco.library:NiceUrl(@id)}">
          <xsl:value-of select="@nodeName"/>
        </a>
      </li>
      </xsl:for-each>
    </ul>

    Hope it helps.

  • Daniel Horn 319 posts 344 karma points
    Nov 11, 2010 @ 22:14
    Daniel Horn
    0

    So.. a true/false on the doc type where they can choose true if it shall be right and leave it off if it's just gonna stay on the left.

     

    Then, put that code you made in the template.. I'll give it a try :-)

  • Fernando 9 posts 30 karma points
    Nov 12, 2010 @ 00:10
    Fernando
    0

    That's right... good luck, please don't forget to mark the post as the solution to your question in case it works. :-)

  • Daniel Horn 319 posts 344 karma points
    Nov 12, 2010 @ 00:46
    Daniel Horn
    0

    Got it working :)... Thanks m8

Please Sign in or register to post replies

Write your reply to:

Draft