Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Control Sort order of 1I18n Search results
#4
Hello, sarnaiz. Firstly you needn't resort to renaming the xml files directly because renaming the SLUG of the page will do that automatically for you. So simply changing the slug to mrast-01 will change the xml file to mrast-01.xml -- changing the xml filename directly like you did is also likely the source of the error you picked up, so avoid this where possible (don't worry - I only know this because I've made this mistake before as well xD).

Next, if you want alphabetical ordering then simply using order='url' should do the job for you, providing that you've used exactly the same prefix on each slug. So if you want the following to be displayed correctly:
  • Drugs
  • Trees
  • Weeds
  • Dust (where dust should be just after drugs)

Give each the corresponding slugs:
  • mrast-drugs
  • mrast-trees
  • mrast-weeds
  • mrast-dust

They should then be displayed in correct alphabetical order.

As for displaying ALL your results on the one page, I just set the maximum results displayed to a ridiculously large number. So use max='999' and your problems should be sorted.

Hope this helps you, sarnaiz!
Reply


Messages In This Thread
Control Sort order of 1I18n Search results - by Angryboy - 2012-06-10, 05:45:10



Users browsing this thread: 1 Guest(s)