Hi,
I created a new field in the Links database called "Featured". options are Yes/No.
In my LSQL admin, I went to Setup/Build Options/build_sort_order_category
And changed them to: Featured DESC, Title
Which, I'd think would mean that it would list Featured items first, then sort by title. But, it doesn't work. What am I doing wrong? Actually, what i';d like is for it to show the Featured items marked YES first, then show all others after that, sorted by title.
Second thing, is that I want to use a different template for the Featured items, so what I did was to create a copy of link.html and modifed it how I wanted, saved it as link_3.html. Then, within the category template, I went in and added this:
<%if Featured eq 'Yes'%>
<%loop links_loop%>
<%include link_3.html%>
<%endloop%>
<%else%>
<%loop links_loop%>
<%include link.html%>
<%endloop%>
But, I get no different template actioon. Am I using the wrong code to get the results I seek?
Thanks so much,
Evie
I created a new field in the Links database called "Featured". options are Yes/No.
In my LSQL admin, I went to Setup/Build Options/build_sort_order_category
And changed them to: Featured DESC, Title
Which, I'd think would mean that it would list Featured items first, then sort by title. But, it doesn't work. What am I doing wrong? Actually, what i';d like is for it to show the Featured items marked YES first, then show all others after that, sorted by title.
Second thing, is that I want to use a different template for the Featured items, so what I did was to create a copy of link.html and modifed it how I wanted, saved it as link_3.html. Then, within the category template, I went in and added this:
<%if Featured eq 'Yes'%>
<%loop links_loop%>
<%include link_3.html%>
<%endloop%>
<%else%>
<%loop links_loop%>
<%include link.html%>
<%endloop%>
But, I get no different template actioon. Am I using the wrong code to get the results I seek?
Thanks so much,
Evie