Page 1 of 1

Probleme mit Artikelsortierung / problems with article sort.

Posted: Tue 9. May 2006, 08:55
by rws
Hallo zusammen,

wir nutzen phpwcms sehr intensiv. Nun haben wir ein Glossar realisiert mit phpwcms - aber so richtig glücklich sind wir damit nicht unbedingt.

Wir haben folgende Einstellungen:

Im Adminbereich ist die Sortierung folgendermaßen eingestellt.

Image

In der Artikelzentrale werden diese dann auch korrekt geordnet:

Image

Im Frontend allerdings ist dies nicht der Fall

Image

Wisst ihr woran das liegen könnte?

Gruß rws.

#############################################

Dear all,

we're using phpwcms very often. We have developed a glossary with phpwcms - but it won't work correctly.

We have set the following properties:

Within the admin section we have set the sorting as follows:
(Article title Ascending)

Image

Within the article center it appears correctly:
Image

But in the front end it won't appear as set in the admin section.

Image

Have you an idea why this happen?

Bye rws.

Posted: Tue 9. May 2006, 11:25
by Heiko H.
Hallo,

guckst Du dort:

/config/phpwcms/conf.template_default.inc.php
$template_default["article_order"] = 0; // 0 = manual, 2 = creation date, 4 = start date -> + 0 = ASC, + 1 = DESC


Grüße Heiko...

Posted: Tue 9. May 2006, 14:08
by rws
Hallo Heiko,

vielen Dank, aber was soll ich dort eintragen wenn die Sortierung alphabetisch aufsteigend erfolgen soll?

Gruß rws

#################

Hi Heiko,

thank you for your reply, but what should I insert to effect the same as already inserted in the admin center here: alphabetical ascending

Posted: Tue 9. May 2006, 14:15
by Klappstuhl28
funktioniert manual nicht, wenn du die Artikel dann
per Hand alphabetisch sortierst? Pfeil auf Pfeil ab?

Posted: Tue 9. May 2006, 15:09
by Heiko H.
Hallo,

ja, ist mir auch grad erst aufgefallen, Du scheinst ein Artikelmenü zu verwenden, da kann ich Klappstuhl nur Recht geben.

$template_default["article_order"] auf "0" und Sortierung auf manuell (Pfeil auf/ab) stellen und die alphabetische Sortierung zu Fuß herstellen. :?


Ciao Heiko...

Posted: Fri 8. Sep 2006, 10:05
by gent
ich habe das selbe problem, habe mir allerdings so geholfen:

in der datei /include/inc_front/content/cnt15.article.inc.php
zeile 33 abändern, von:

Code: Select all

"AND article_end>NOW() ORDER BY article_sort, article_tstamp DESC;";
in:

Code: Select all

"AND article_end>NOW() ORDER BY article_title, article_sort, article_tstamp DESC;";
das ganze funktioniert solange gut, wie man keine umlaute im artikeltitel benutzt. leider werden die umlaute in der sortierung an das ende der liste gestellt, und dort auch bund durcheinander.
bsp.:

Ba..
Be..
Bu..
Bü..
Bä..

besser wäre:

Ba..
Bä..
Be..
Bu..
Bü..

wenn jemand hier eine idee hat, wie man umlaute richtig sortiert, wäre ich super dankbar.