Forums / Developer / Priorities of nodes ?

Priorities of nodes ?

Author Message

Fou Jino

Wednesday 23 March 2011 6:12:44 am

Hi everyone,

I have a question about the priority of node in backend of ez publish

I have a list of folder and that I drag&drop to change their priority in my backend (admin), but in my front-end, the order of priorities it's not respected everywhere !

I tried with the sort parameter but it doesn't work, do you have an idea ?

Thanks in advance !

Foujino ~ http://www.foujino-blog.be

Marko Žmak

Wednesday 23 March 2011 7:23:46 am

What's the code of your fetch?

Note: The drag&drop functionality was removed in newer versions of eZP (i believe it was in 4.3), so you shouldn't much rely on it. What version of eZP do you have?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Fou Jino

Thursday 24 March 2011 12:53:14 am

Hi Marko,

Here my fetch :

{def $folders-level3 = fetch( 'content',
'list',
hash( parent_node_id, $folder-level2.node_id, 'class_filter_type', 'include',
'class_filter_array', array( 'folder' ) ))}

But in fact, I had a wrong fetch at level of "sort by", because I used this line for parameter of my sort :

'sort_by', array( 'priority')

And the right line is :

'sort_by', array( 'priority', true() )

So it solved, thanks anyway !!

Foujino ~ http://www.foujino-blog.be