Page 1 of 1
Category Order question
Posted: 13 Aug 2008, 03:28
by tamerax
Hi there
I'm sure this is really easy question but i couldn't find any info on it.
How do i setup the category list view to show the latest categories on top rather than the bottom in a one column view?
thanks! i LOVE this component!!
Re: Category Order question
Posted: 13 Aug 2008, 10:10
by Phryll
It's always displaying as the first of the top because when you create a categorie it's normally identified as
id: 1
so it's the first category ehich is shown in your Gallery
i hope this helps you , otehrwise you can set the id's manually
Joomla Admin Control Panel --> Components --> PhocaGallery --> Categories --> (set id's)
Cheers Philipp
Re: Category Order question
Posted: 13 Aug 2008, 17:39
by tamerax
is there a way to possible change the PHP code on one of the pages to display them in descendening order instead of ascending?
like...change ASC to DESC somewhere?
Re: Category Order question
Posted: 13 Aug 2008, 17:52
by Jan
You can change the SQL query in models, see e.g.:
components\com_phocagallery\models\category.php
Jan
Re: Category Order question
Posted: 13 Aug 2008, 23:45
by tamerax
I changed this line in catagory.php
$this->setState('filter_order_dir', JRequest::getCmd('filter_order_Dir', 'ASC));
but nothing changed.
Did i miss something?
Re: Category Order question
Posted: 15 Aug 2008, 19:43
by Jan
Hi, I didn't try it, so I cannot say, but you should change the sql query in model (selecting the categories)
components/com_phocagallery/models/categories.php (I hope it is right, I am not on my PC, so I cannot check it )
Jan
Re: Category Order question
Posted: 16 Aug 2008, 03:43
by tamerax
i decided just to change the order manually like previously suggested
i was wasting too much time trying to get the sql to change.
thanks anyways. still love the component!
Re: Category Order question
Posted: 17 Aug 2008, 19:53
by Jan
ok