Log in | Register | Lost password

Bottom
filter upload fields (solved)
  • Posted: 14.05.2006, 19:52
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hi, i'm having a hard time trying to use filters for uploads in pagesetter.

    I'm trying to create an inlinePublist with the publications witch has an uploaded field named 'upload'. When I try to use the filter 'filter=upload:notnull', i get all the publications, including the ones with no uploaded files.

    I guess it's because the upload field itself will always return the result 'array', so i would use a property like 'upload.url'. But when I use 'filter=upload.url:notnull' I receive the message
    "/public_html/modules/pagesetter/pnuserapi.php(1448): Unknown field name 'upload.url'".

    How can I filter to list the publications with an uploaded file?

    zeed



    edited by: zeed, Jun 16, 2006 - 01:58 PM
  • Posted: 15.05.2006, 21:06
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Will fix it in next 6.3.0 beta.
  • Posted: 16.05.2006, 23:54
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Cool!In the meantime I'll create a boolean field to check the uploaded status. Thanks a lot.
  • Posted: 17.05.2006, 07:06
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Seems like the filters "upload:eq" (empty) and "upload:ne" (has file) already works.

    No null values - only empty strings when no upload available.

    Please let me know if it works.
  • Posted: 16.06.2006, 12:58
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    It worked! Pretty cool, thank you! This filtering system is awesome!

Template courtesy of Designs By Darren.