Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple categories #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions api/js/etemplate/et2_extension_nextmatch.js
Expand Up @@ -2486,12 +2486,13 @@ var et2_nextmatch_header_bar = (function(){ "use strict"; return et2_DOMWidget.e

// Add category
if(!settings.no_cat) {
var multiple = (this.nextmatch.options.settings.cat_is_multiple ? true : false );
if (typeof settings.cat_id_label == 'undefined') settings.cat_id_label = '';
this.category = this._build_select('cat_id', settings.cat_is_select ?
'select' : 'select-cat', settings.cat_id, settings.cat_is_select !== true, {
multiple: false,
multiple: multiple,
tags: true,
class: "select-cat"
class: "select-cat et2_selectbox_single_row"
});
}

Expand Down
1 change: 1 addition & 0 deletions api/src/Etemplate/Widget/Nextmatch.php
Expand Up @@ -30,6 +30,7 @@
* 'no_cat' => True// I disable the cat-selectbox
* 'cat_app' => // I application the cat's should be from, default app in get_rows
* 'cat_is_select' => // I true||'no_lang' use selectbox instead of category selection, default null
* 'cat_is_multiple'=> // I Use muliple select (tags=true) for category filter, default false
* 'template' => // I template to use for the rows, if not set via options
* 'header_left' => // I template to show left of the range-value, left-aligned (optional)
* 'header_right' => // I template to show right of the range-value, right-aligned (optional)
Expand Down