Share » Forums » General » How do I sort my search results by...

How do I sort my search results by classid like ez.no ?

How do I sort my search results by classid like ez.no ?

Saturday 11 October 2003 3:04:49 pm - 3 replies

Author Message

David Syers

Monday 13 October 2003 9:56:25 am

Hi there Craig

Are you trying to sort by class (ie. Article, Product, Forum Message, etc.)?

If so you want to use:

sort_by, array( 'class_name', true() )

If however you want to sort on an identifier with the class it is not documented very well, but what you need to do is also specify the name of the class identifier.

ie. The class "Product" has an identifier "product_nr", to sort by this you need to use:

sort_by, array( 'class_identifier', array( 'product_nr', true() ) )

Hope this helps.

Marco Zinn

Monday 13 October 2003 10:42:20 am

Hi,
I think, you should take care about terminologies here:
"Class name" is not "class identifier" and this is NOT "class ID".

For example:
The Class name might be "Article" (or, if I decide to translate it "Artikel")
The class identfier would be "article" and you should not change this in translating or in customization as this could and should be used in templates. I think, this is, what Craig wants to do.
Class-ID is a number (ie. "1").

Marco
http://www.hyperroad-design.com

Aya Brea

Tuesday 02 December 2003 2:28:55 am

You should create your own search handler page. In that page you do several search operator with different class.

You should read the Search document in the Customize. It will explain everything you need...

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu