Hi All,
Quick question.
I have a listing page outputting channel entries sorting alphabetically.
Can you advise on the best way to handle ignoring ‘The’ in any titles. For example, ‘The Dog Inn’ would be listed on the page under ‘D’.
Thanks
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
February 14, 2011 10:44am
Subscribe [2]#1 / Feb 14, 2011 10:44am
Hi All,
Quick question.
I have a listing page outputting channel entries sorting alphabetically.
Can you advise on the best way to handle ignoring ‘The’ in any titles. For example, ‘The Dog Inn’ would be listed on the page under ‘D’.
Thanks
#2 / Feb 14, 2011 1:07pm
Hi, Dominic. What I’d do is create a new channel field called real_title, and put the real title in there, and the one you want to use to sort by as the title.
So you’d then use {real_title} instead of {title}
Or you could edit every url_title to get rid of the word the_ in it.
Does that help?
#3 / Feb 14, 2011 2:28pm
That’s a great help Sue - many thanks