Page 1 of 2

EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht

Posted: 11 Nov 2014, 11:11
by pitschen
Hallo,

ich hätte mal wieder ein paar Fragen zur Ansicht, diesmal geht es um die Phoca-Gallerie und dem Menu-Module.

1. Frage:
Wie kriege ich das hin, es nach dem Datum im Kategorienamen zu sortieren.
So schauen meine Kategorien immer aus: 2014.02.28, FSV Viktoria vs FC Viktoria
In der Phoca Gallerie wird es richtig sortiert (Kategorien-Ansicht), jedoch nicht im Menü, da bleibt alles beim Alten und wird wohl nach Erstellungsdatum soritert.

2. Frage:
Ich möchte die Box-Anzeige der Kategorien 3-spaltig haben und rechts das Menü-Modul. Wie kann ich die Boxen verkleinern?

Ich habe immer mal wieder und vorsichtig ein paar Einstellungen ausprobiert, es jedoch nicht hingekriegt.

meine Seite: http://battal.bicen.de/index.php/bilddatenbank
------------------------------------------------------------------------------------------

Hello,

i have few question about phoca gallery and the phoca gallery menu module. I hope you can help me.

1. Question:
How to get it like, to sort the categories by their name:
My categories are build everytime like this: 2014.02.28, FSV Viktoria vs FC Viktoria
Phoca are sorted the category in the phoca-gallery correctly, but not in the menu-module.

2. Question:
I want to have the box-view in 3-column and in the right the menü-module. How to resize the boxes.

I had try some settings in the options, but dont get it like i write.

my site: http://battal.bicen.de/index.php/bilddatenbank

Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht

Posted: 11 Nov 2014, 20:13
by Jan
Hi,

1) menu module orders by: cc.parent_id,cc.ordering, which means:

first the tree will be set and then the items are ordered by ordering (like they are ordered in backend) - to change it, you need to customize the code directly.

2) Which box view you exactly mean?

Jan

Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht

Posted: 11 Nov 2014, 21:14
by pitschen
Thank you for your reply jan. Which code you mean on which file :)

When you click on the link, there are 3 gallery-categories, this i want smaller to get 3-column. Now i have on this page 2 at first (_ _ and handball) and 1 under this two (handball). I hope you understand my description.

:)

Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht

Posted: 11 Nov 2014, 21:29
by Jan
Hi, the php file of the module:

modules/ ... mod_phocagallery_menu.php

Columns: you can test to switch different categories view options plus you can change the size of images or you you can display the mosaic effect :idea:

Jan

Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht

Posted: 12 Nov 2014, 10:19
by pitschen
I understand and find the file and line, but i dont know what to write as code to have like the newest categorie at the top. Can you describe it for me?

The columns, i must try, how to make it.

Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht

Posted: 12 Nov 2014, 19:10
by Jan
Hi, first, there is a tree, so first the categories will be ordered by tree, then they can be ordered by date ... so you should test to change it to date:

From:
cc.parent_id,cc.ordering

To:
cc.parent_id,cc.date

Jan

Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht

Posted: 12 Nov 2014, 19:21
by pitschen
i have this line and its not working:

. ' ORDER BY cc.parent_id,cc.date ASC';

Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht

Posted: 13 Nov 2014, 11:20
by pitschen
I think, i have solve the problem with changing the "ASC" to "DESC". Its ordering by category-ID now.
It was maybe better, when it will ordering by the category-name.

Thank you! :)

Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht

Posted: 13 Nov 2014, 16:18
by pitschen
Sorry for my english, next time i will write in german again.

ordering by the category-id is wrong. i want it in order on category-title.
I have this title in the code and its not ordering:
. ' ORDER BY cc.title,cc.ordering ASC';

I hope you can help me.

Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht

Posted: 15 Nov 2014, 18:19
by Jan
Hi, there is a tree of categories, so such needs to be set, so first you need to create tree then you can set which order method you will use, in your case: cc.title but after cc.parent_id

Jan