This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » General » Fetch objects and sort them by...
expandshrink

Fetch objects and sort them by download_count

Fetch objects and sort them by download_count

Sunday 29 September 2013 7:01:21 pm

Hi,

I'm working on a project of a publishing house. I have all the magazines and books archived as objects of a class named "publication", that includes as one his attributes a file.
I need to display a list of the 5 most downloaded "publications", but without success.

I've already searched the ez forums, and found only one solution that is making an extended Attribute Filter: share.ez.no/forums/setup-design/how-fetch-list-of-element-sort-by-filesize.

Do anyone have a more simple solution?
I already had a look at the documentation regarding the extended attribute filter, but have some questions yet:

1. How should I extract information to the ezPublish mySQL database from the new created PHP class?

2. Is there any ez documentation that can help me?
Above the documentation that I found:

- http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Modules/content/Fetch-functions/list

- http://blog.nxcgroup.com/2012/ez-publish-extended-attribute-filters/#.UkSEGT-NCeQ

Thanks in addvance for any answers.

No reply yet!

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from