Page 1 of 1

Change "sorting" setting to radio button?

Posted: Mon Jun 06, 2016 5:07 pm
by munoz
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>

Change "sorting" setting to radio button?

Posted: Mon Jun 06, 2016 5:53 pm
by mark
The advanced form has a drop down select list for "Order by". You could copy that.

Change "sorting" setting to radio button?

Posted: Tue Jun 07, 2016 10:31 am
by munoz
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

Change "sorting" setting to radio button?

Posted: Tue Jun 07, 2016 11:32 am
by mark
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>

Change "sorting" setting to radio button?

Posted: Tue Jun 07, 2016 11:43 am
by munoz
Oops, I wasn't sure if it would work.
But thank you for the code