Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4625752
Enhance file upload functionality: Added support for 'upload_file' fi…
kodinkat Jan 30, 2026
fa609f0
Refactor whitespace and formatting in custom fields and components: I…
kodinkat Jan 30, 2026
10c280b
Refactor whitespace in custom fields: Standardized array initializati…
kodinkat Jan 30, 2026
87c2291
Refactor file upload field type: Updated references from 'upload_file…
kodinkat Feb 3, 2026
7333ece
Update component imports and enhance key prefix organization: Changed…
kodinkat Feb 4, 2026
3c7e1f9
Add storage download endpoint: Implemented a new REST API route for d…
kodinkat Feb 4, 2026
a57f558
Enhance file upload handling: Added support for 'file_upload' field t…
kodinkat Feb 4, 2026
e34e7c0
Refactor file upload activity logging: Updated sprintf formatting for…
kodinkat Feb 4, 2026
7e3a8e7
Refactor whitespace in dt-posts-endpoints: Removed unnecessary whites…
kodinkat Feb 4, 2026
88a5535
Update component imports for consistency: Modified import statements …
kodinkat Feb 10, 2026
085e72a
Update component import paths for consistency: Modified import statem…
kodinkat Feb 11, 2026
d0def78
Merge branch 'develop' of https://github.com/DiscipleTools/disciple-t…
kodinkat Feb 20, 2026
c38410c
Enhance file upload functionality: Implemented local handling of file…
kodinkat Feb 20, 2026
eed8d4a
Implement file upload filtering: Added support for filtering posts ba…
kodinkat Feb 20, 2026
a66d75e
Merge branch 'develop' of https://github.com/DiscipleTools/disciple-t…
kodinkat Feb 26, 2026
0e522ec
Refactor new record file upload handling by removing debug console lo…
kodinkat Feb 26, 2026
b2bc0a2
Update import paths in component index files to reflect new module st…
kodinkat Feb 26, 2026
ea7e56c
Enhance file upload handling by sanitizing accepted file types in adm…
kodinkat Feb 26, 2026
1c81ede
Merge branch 'develop' of https://github.com/DiscipleTools/disciple-t…
kodinkat Mar 4, 2026
6626ce7
Enhance file upload functionality by expanding accepted file types to…
kodinkat Mar 4, 2026
0c60cef
Refactor file upload field options in dt-settings.js for improved rea…
kodinkat Mar 4, 2026
1660d75
Refactor PHP code in tab-custom-fields.php to improve readability by …
kodinkat Mar 4, 2026
ff57ca4
Sanitize input parameters and enhance file upload handling in dt-post…
kodinkat Mar 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion archive-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ class="loading-spinner"></span>
<div class="grid-x">
<div class="cell small-4 filter-modal-left">
<?php $fields = [];
$allowed_types = [ 'user_select', 'multi_select', 'key_select', 'boolean', 'date', 'datetime', 'location', 'location_meta', 'connection', 'tags', 'text', 'communication_channel' ];
$allowed_types = [ 'user_select', 'multi_select', 'key_select', 'boolean', 'date', 'datetime', 'location', 'location_meta', 'connection', 'tags', 'text', 'communication_channel', 'file_upload' ];
//order fields alphabetically by Name
uasort( $field_options, function ( $a, $b ){
return strnatcmp( $a['name'] ?? 'z', $b['name'] ?? 'z' );
Expand Down Expand Up @@ -1101,6 +1101,29 @@ class="text-comms-filter-input"
<?php echo esc_html( sprintf( _x( 'All %1$s with no value in %2$s', 'All Contacts with no value in field', 'disciple_tools' ), $post_settings['label_plural'], $field_options[$field]['name'] ) ) ?>
</label>
</p>
<?php elseif ( isset( $field_options[$field] ) && $field_options[$field]['type'] === 'file_upload' ) : ?>
<p>
<label>
<input
name="filter_by_file_upload_option_<?php echo esc_attr( $field ) ?>"
class="filter-by-file-upload-option"
type="radio"
value="all-with-files"
data-field="<?php echo esc_html( $field ) ?>"
/>
<?php echo esc_html( sprintf( _x( 'All %1$s with files in %2$s', 'All Contacts with files in Documents', 'disciple_tools' ), $post_settings['label_plural'], $field_options[$field]['name'] ) ) ?>
</label>
<label>
<input
name="filter_by_file_upload_option_<?php echo esc_attr( $field ) ?>"
class="filter-by-file-upload-option"
type="radio"
value="all-without-files"
data-field="<?php echo esc_html( $field ) ?>"
/>
<?php echo esc_html( sprintf( _x( 'All %1$s without files in %2$s', 'All Contacts without files in Documents', 'disciple_tools' ), $post_settings['label_plural'], $field_options[$field]['name'] ) ) ?>
</label>
</p>
<?php endif; ?>
</div>
</div>
Expand Down
10 changes: 10 additions & 0 deletions docs/dt-posts-list-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,16 @@ Different field types have different filter formats:
'assigned_to' => []
```

### File Upload Fields

```php
// Find posts with at least one uploaded file
'documents' => ['*']

// Find posts with no uploaded files
'documents' => []
```

## Combining Multiple Filters

Multiple filters can be combined to create complex queries:
Expand Down
40 changes: 20 additions & 20 deletions dt-assets/build/components/index.es.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
import { E as s, C as e, w as D, B as o, D as i, a as l, b as n, d as r, e as c, f as u, u as p, A as C, g as M, x as T, h as m, i as x, j as S, y as g, k as B, t as d, r as h, l as v, m as A, n as L, o as b, p as f, z as y, q as F, c as j, v as k } from "./index-B5P35fmQ.js";
import { E as e, C as s, x as D, B as o, D as l, a as i, b as n, d as r, e as c, f as p, u, w as C, A as M, g as T, h as m, i as x, j as S, y as d, k as g, t as B, r as h, l as v, m as A, n as b, o as F, p as L, z as f, q as y, c as U, v as j } from "./index-Brc07-hb.js";
export {
s as ApiService,
e as ComponentService,
e as ApiService,
s as ComponentService,
D as DtAlert,
o as DtBase,
i as DtButton,
l as DtChurchHealthCircle,
l as DtButton,
i as DtChurchHealthCircle,
n as DtConnection,
r as DtCopyText,
c as DtDate,
u as DtDatetime,
p as DtFormBase,
C as DtIcon,
M as DtLabel,
T as DtList,
p as DtDatetime,
u as DtFileUpload,
C as DtFormBase,
M as DtIcon,
T as DtLabel,
m as DtLocation,
x as DtLocationMap,
S as DtMapModal,
g as DtModal,
B as DtMultiSelect,
d as DtMultiSelectButtonGroup,
d as DtModal,
g as DtMultiSelect,
B as DtMultiSelectButtonGroup,
h as DtMultiText,
v as DtNumberField,
A as DtSingleSelect,
L as DtTags,
b as DtText,
f as DtTextArea,
y as DtTile,
F as DtToggle,
j as DtUsersConnection,
k as version
b as DtTags,
F as DtText,
L as DtTextArea,
f as DtTile,
y as DtToggle,
U as DtUsersConnection,
j as version
};
Loading
Loading