Log in | Register | Lost password

Bottom
Template filter for empty upload field
  • Posted: 28.01.2008, 12:24
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hello,
    I have a template that contains the following code:

    Code

    <!--[pagesetter_createFilter assign=listFilter]-->

    <!--[pagesetter_inlinePubList tpl=listAdminCourses tid=4 filter=$listFilter pubcnt=100]-->


    which successfully lists all the instances of the publication type.

    The template publication type has a field called "coursesDayFullDescriptionPDF" of type "any upload". I would like to only list those instances that DO NOT have a document uploaded to this field by adding a filter to the template code. I have tried the following but it does not work:

    Code

    <!--[pagesetter_createFilter filter="coursesDayFullDescriptionPDF:null" assign=listFilter]-->

    <!--[pagesetter_inlinePubList tpl=listAdminCourses tid=4 filter=$listFilter pubcnt=100]-->


    Can anyone help?

    Regards

    Robbie

  • Posted: 28.01.2008, 17:06
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Have you tryed without double quote ?

Template courtesy of Designs By Darren.