How fetch list of element sort by filesize

Author Message

Gianfranco Forlino

Thursday 31 January 2008 9:09:29 am

Hi,
i have a class <b>software</b> with an element <b>filedownload</b> as FILE. How can fetch the list of elements, filtering content on datatype attribute <b>filesize</b> or <b>download_count</b> ?

Best regards

André R.

Thursday 31 January 2008 9:48:24 am

You can filter / sort by download count using a extended attribute filter. the data is in the ezbinaryfile table. Filesize on the other hand is not in the table so you'll probably have to create a new datatype that extends ezbinaryfile to be able to sort by / filter by size.

Search for 'filter' on this site or ezpedia, or:
http://www.google.com/search?hl=en&client=opera&rls=en&hs=gpI&q=Extended+attribute+filter+ez&btnG=Search

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Gianfranco Forlino

Friday 01 February 2008 7:12:59 am

Too complicated. You have an example from which to take inspiration? I saw the example images on valid but I was not much help

Many thanks

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.