A trick to sort publication types at will
"Andrea M." <[email protected]> Mon, 27 Oct 2003 16:18:34 -0600
| Newsgroups | gmane.comp.cms.xaraya.knowledge-base |
|---|---|
| Organization | Xaraya News Server |
| Message-ID | <[email protected]> |
This article of mine has just been posted on the knowledge-base
sectional page of xaraya.com. I reproduce it here for visibility.
The sort order for publication types can be set only by ID, Name, or
Description. Sometimes you may want to set the sorting order
differently. Use this simple trick to achieve the sorting order you want
without modifying the appearance of the pubype name or description.
The simple trick that I have used is to add spaces at the beginning of
the description of the pubtype. When you choose to sort pubytpes by
description, xaraya correctly puts descriptions starting with spaces on
top of the sorting order. However, in the HTML of your browser will
ignore such spaces, hence the appearance of your pubtype description
will not change.
Here are more detailed instructions hopefully "beginner-proof":
1. Go to admin/articles/modify config and choose "sorting order for
publication types..." equal to "description". Don't forget to submit
such change by clicking on "update configuration at the bottom of the page"
2. Go to admin/articles/publication types.
1. Edit the publication type you want to appear next to last
and add exactly one space at the beginning of its description.
2. Next, edit the publication type you want to appear
second-next to last and add exactly 2 spaces at the beginning of its
description
3. ... Continue to add spaces at the beginning of the
description of each pubtype until you modify the one you want to appear
first (which should have the highest number of spaces at the beginning
of its description).
3. You're done.