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
EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht
-
pitschen
- Phoca Member

- Posts: 18
- Joined: 24 Oct 2014, 13:43
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht
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
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
If you find Phoca extensions useful, please support the project
-
pitschen
- Phoca Member

- Posts: 18
- Joined: 24 Oct 2014, 13:43
Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht
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.

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.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht
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
Jan
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
Jan
If you find Phoca extensions useful, please support the project
-
pitschen
- Phoca Member

- Posts: 18
- Joined: 24 Oct 2014, 13:43
Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht
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.
The columns, i must try, how to make it.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht
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
From:
cc.parent_id,cc.ordering
To:
cc.parent_id,cc.date
Jan
If you find Phoca extensions useful, please support the project
-
pitschen
- Phoca Member

- Posts: 18
- Joined: 24 Oct 2014, 13:43
Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht
i have this line and its not working:
. ' ORDER BY cc.parent_id,cc.date ASC';
. ' ORDER BY cc.parent_id,cc.date ASC';
-
pitschen
- Phoca Member

- Posts: 18
- Joined: 24 Oct 2014, 13:43
Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht
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!
It was maybe better, when it will ordering by the category-name.
Thank you!
-
pitschen
- Phoca Member

- Posts: 18
- Joined: 24 Oct 2014, 13:43
Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht
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.
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.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: EN/DE Sortieren Namen im Menu-Modul, Spaltenansicht
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
Jan
If you find Phoca extensions useful, please support the project