Copied to clipboard

Flag this post as spam?

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


  • steweir 34 posts 54 karma points
    Oct 15, 2010 @ 16:34
    steweir
    0

    Really simple FAQ

    Im looking to build a simple faq section for a site im working on as i cant get the runway module to work, all i need is a single page displaying all the questions with links to the answers via anchor points further down the page.

    I need the section to be able to have more questions added when needed and im not sure how i would do this, as its not adding a page just a new bit of content to the page, can anyone give me a guideline on how to do this would be much appreciated. 

  • steweir 34 posts 54 karma points
    Oct 15, 2010 @ 16:36
    steweir
    0

    sorry i posed this twice, can an admin delete this topic please and just keep one

  • Carlo Cabrales 58 posts 77 karma points
    Oct 15, 2010 @ 16:57
    Carlo Cabrales
    0

    This will get you started.. This will be for the question anchor area..

    <h3 id="contentsanchor">FAQ</h3>
    <ul>
    <xsl:for-each select="$currentPage/Question">
      <li><href="#{@nodeName}"><xsl:value-of select="@nodeName"/></a></li>
    </xsl:for-each>
    </ul>

    This is for the list of questions..

    <xsl:for-each select="$currentPage/Question">
              <div id="{@nodeName}"><xsl:value-of select="textArea"/></div>
          <href="#contentsanchor">Back to Contents</a>
    </xsl:for-each>

Please Sign in or register to post replies

Write your reply to:

Draft