How can I make links sql ignore "the" in link titles. For example, I would like the link The boarderforum to be listed with the "B's" and not the "T's". I couldn't find any discussions on this. Any advise? Thanks in advance
Oct 2, 2002, 4:54 PM
Veteran (1240 posts)
Oct 2, 2002, 4:54 PM
Post #4 of 5
Views: 1884
Lennie:
What I did- it is a little labor intensive to get started, but works- is to add a new filed, called "Sort". Then copy the category names to sort (do that in the Monitor), then edit all the ones with the "The" in them so they do not!
Then, in setup, just change the column to sort by!
dave
dave
Big Cartoon DataBase
Big Comic Book DataBase
What I did- it is a little labor intensive to get started, but works- is to add a new filed, called "Sort". Then copy the category names to sort (do that in the Monitor), then edit all the ones with the "The" in them so they do not!
Then, in setup, just change the column to sort by!
dave
dave
Big Cartoon DataBase
Big Comic Book DataBase
Oct 2, 2002, 5:30 PM
Administrator (9387 posts)
Oct 2, 2002, 5:30 PM
Post #5 of 5
Views: 1877
Hi,
Dave has a good idea. It's not going to be straightforward, as Links SQL has MySQL sort the results for speed and efficency reasons. Anothing way you could do it is have a checkbox called 'AddThe' which is checked for links that start with The, and blank otherwise. Then remove The from new links, and modify the template:
<%if AddThe%>The <%endif%><%Title%>
Might be a bit more efficent as you aren't repeating the title, but it's still a little labour intensive.
Cheers,
Alex
--
Gossamer Threads Inc.
Dave has a good idea. It's not going to be straightforward, as Links SQL has MySQL sort the results for speed and efficency reasons. Anothing way you could do it is have a checkbox called 'AddThe' which is checked for links that start with The, and blank otherwise. Then remove The from new links, and modify the template:
<%if AddThe%>The <%endif%><%Title%>
Might be a bit more efficent as you aren't repeating the title, but it's still a little labour intensive.
Cheers,
Alex
--
Gossamer Threads Inc.