munoz
Posts: 7 Joined: Fri May 27, 2016 12:44 pm
Post
by munoz » Mon Jun 06, 2016 5:07 pm
There is this that has the option to change the sorting by "sort by date" and "sort by relevance".
I see it as simply text. Is there a way to make it a radio button option?
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="OrderLink"/>
</xsl:attribute>
<xsl:value-of select="OrderType"/>
</xsl:element>
</div>
mark
Site Admin
Posts: 5519 Joined: Tue Apr 25, 2000 6:56 pm
Post
by mark » Mon Jun 06, 2016 5:53 pm
The advanced form has a drop down select list for "Order by". You could copy that.
munoz
Posts: 7 Joined: Fri May 27, 2016 12:44 pm
Post
by munoz » Tue Jun 07, 2016 10:31 am
I currently have a drop down as well. I do not know XSL, and the drop down doesn't seem to be working.
The text links are working.
But I would like it to be radio buttons.
Here is a link for reference
http://thunderstone.academy.usna.edu/te ... ackieTest2
mark
Site Admin
Posts: 5519 Joined: Tue Apr 25, 2000 6:56 pm
Post
by mark » Tue Jun 07, 2016 11:32 am
That hostname doesn't resolve on the public internet.
Order by:
<label>
<INPUT TYPE="RADIO" NAME="order" VALUE="r">
<xsl:if test="Order='r' or Order=''">
<xsl:attribute name="CHECKED">CHECKED</xsl:attribute>
</xsl:if>
</INPUT>Relevance</label>
<label>
<INPUT TYPE="RADIO" NAME="order" VALUE="dd">
<xsl:if test="Order='dd'">
<xsl:attribute name="CHECKED">CHECKED</xsl:attribute>
</xsl:if>
</INPUT>Date</label>
munoz
Posts: 7 Joined: Fri May 27, 2016 12:44 pm
Post
by munoz » Tue Jun 07, 2016 11:43 am
Oops, I wasn't sure if it would work.
But thank you for the code