Arange category in alfabetical order

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Arange category in alfabetical order

Post by culda_a »

How can I arange the new created categorys on the admin in alfabetical order?
ImagePackging design,labels, catalogs,postcards,
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Arange category in alfabetical order

Post by juergen »

Hey you there ;)

what do you mean with on the admin ? :?
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Re: Arange category in alfabetical order

Post by culda_a »

this is the backend menu:

HOME ARTICLE FILE MODULES COMMUNICATION PROFILE ADMIN

the Admin - where we create the categorys, how can I set to put all the new category in alfabetical order?
ImagePackging design,labels, catalogs,postcards,
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Arange category in alfabetical order

Post by juergen »

hmmm,

this is not possible, only if you sort before typing in.. all operations obey to category ids ..you can not leave them out. So for that, no reason to do such things, if you like to have you need to code this.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Arange category in alfabetical order

Post by update »

Getting acquainted with the alphabet you can easily do it by hand ;)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Arange category in alfabetical order

Post by juergen »

:D As far as I know Mr Package, he 'll have around 2 1/2 Million Entries *g
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Re: Arange category in alfabetical order

Post by culda_a »

:D You are right DF6IH so any sugestion how can I set it to put it automaticly in alfabetical order what do i HAVE TO CHANGE ?
ImagePackging design,labels, catalogs,postcards,
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Arange category in alfabetical order

Post by juergen »

in include/inc_lib/genenral.inc.php :

Code: Select all

function get_order_sort($order=0, $resort=0) {
	// for getting right article structure sorting INT
	// $o[0] = $acat_order; $o[1] = $acat_ordersort;
	$o		= array(3);
	$order	= intval($order);
	switch($order) {
		case  0: $o[0] =  0; $o[1] = 0; $o[2] = ' article_sort ASC';		break;
		case  1: $o[0] =  0; $o[1] = 1; $o[2] = ' article_sort DESC';		break;
		case  2: $o[0] =  2; $o[1] = 0; $o[2] = ' article_created ASC';		break;
		case  3: $o[0] =  2; $o[1] = 1; $o[2] = ' article_created DESC';	break;
		case  4: $o[0] =  4; $o[1] = 0; $o[2] = ' article_tstamp ASC';		break;
		case  5: $o[0] =  4; $o[1] = 1; $o[2] = ' article_tstamp DESC';		break;
		case  6: $o[0] =  6; $o[1] = 0; $o[2] = ' article_begin ASC';		break;
		case  7: $o[0] =  6; $o[1] = 1; $o[2] = ' article_begin DESC';		break;
		case  8: $o[0] =  8; $o[1] = 0; $o[2] = ' article_title ASC';		break;
		case  9: $o[0] =  8; $o[1] = 1; $o[2] = ' article_title DESC';		break;
		case 10: $o[0] = 10; $o[1] = 0; $o[2] = ' article_end ASC';			break;
		case 11: $o[0] = 10; $o[1] = 1; $o[2] = ' article_end DESC';		break;
	}
	$o[2] = ' article_priorize DESC,'.$o[2];
	return $o;
}
anything is possible but not name :| There is only a way in hacking the core, what makes no good sense for me. Perhaps you should opne an issue for that !
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Re: Arange category in alfabetical order

Post by culda_a »

so there is no way to arange the category did I understand right?, I think will be great if is possible to arange in alfabetical order also built in
ImagePackging design,labels, catalogs,postcards,
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Re: Arange category in alfabetical order

Post by culda_a »

Is there any solution in order arange the category in alfabetical order, even if I try to arange the category manualy it jumps ramdomly up and dow depends on what arow I press (up or down) Is not going one by one up or down...
ImagePackging design,labels, catalogs,postcards,
Post Reply