Share » Forums » Developer » set priority value

set priority value

set priority value

Saturday 24 January 2004 12:18:18 pm - 7 replies

Author Message

Eirik Alfstad Johansen

Sunday 25 January 2004 11:14:38 pm

Hi Michele,

I'm not sure, but I think it's the 'sort_field' parameter of the eZNodeAssignment::create method which controls this.

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Michele Franceschi

Sunday 25 January 2004 11:54:32 pm

Hi Eirik,
I use 'sort_field' parameter to select "Sort by" (Name, Published, Modified, Section, etc...)

Eirik Alfstad Johansen

Monday 26 January 2004 12:08:17 am

Hi Michele,

Then it's probably the 'sort_order' parameter.

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Michele Franceschi

Monday 26 January 2004 12:44:42 am

I use 'sort_order' parameter to select ascending o descending

Eirik Alfstad Johansen

Monday 26 January 2004 1:05:50 am

Hi Michele,

Then I guess my first answer was better: I'm not sure. :)

It might be just as easy to access the db and set the priority directly (unless you get a better suggestion, that is).

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Monday 26 January 2004 1:09:37 am

Hi again,

I just took a look at the kernel code for updating priorities, and noticed that they are in fact set directly (no designated class method). Here's how it's done:

$db->query( "UPDATE ezcontentobject_tree SET priority=$priority WHERE node_id=$nodeID" );

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Michele Franceschi

Monday 26 January 2004 9:42:14 am

Thanks Eirik,
I followed your tip

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

36 542 Users on board!

Forums menu