Change "sorting" setting to radio button?

Post Reply
munoz
Posts: 7
Joined: Fri May 27, 2016 12:44 pm

Change "sorting" setting to radio button?

Post 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>
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Change "sorting" setting to radio button?

Post by mark »

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

Change "sorting" setting to radio button?

Post by munoz »

User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Change "sorting" setting to radio button?

Post 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>
munoz
Posts: 7
Joined: Fri May 27, 2016 12:44 pm

Change "sorting" setting to radio button?

Post by munoz »

Oops, I wasn't sure if it would work.
But thank you for the code
Post Reply