Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

list fiter octobercms

# ===================================
# Filter Scope Definitions
# ===================================

scopes:

    category:
        label: Category
        modelClass: AcmeBlogModelsCategory
        conditions: category_id in (:filtered)
        nameFrom: name

    status:
        label: Status
        type: group
        conditions: status in (:filtered)
        options:
            pending: Pending
            active: Active
            closed: Closed

    published:
        label: Hide published
        type: checkbox
        default: 1
        conditions: is_published <> true
 
PREVIOUS NEXT
Tagged: #list #fiter #octobercms
ADD COMMENT
Topic
Name
2+1 =