Querying media links in custom fields.
This commit is contained in:
parent
beac5afca1
commit
6901ad18a6
@ -170,6 +170,17 @@ Tiddler >> customFields [
|
|||||||
^ customFields ifNil: [ customFields := Dictionary new]
|
^ customFields ifNil: [ customFields := Dictionary new]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
Tiddler >> customFieldsWithMediaLinks [
|
||||||
|
| response |
|
||||||
|
response := OrderedDictionary new.
|
||||||
|
self customFields keysAndValuesDo: [:k :v |
|
||||||
|
(v endsWithAnyOf: #('mp4' 'jpg' 'jpeg' 'png'))
|
||||||
|
ifTrue: [response at: k put: v ]
|
||||||
|
].
|
||||||
|
^ response
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
Tiddler >> deleteUid [
|
Tiddler >> deleteUid [
|
||||||
self customFields deleteKey: 'uid'.
|
self customFields deleteKey: 'uid'.
|
||||||
|
Loading…
Reference in New Issue
Block a user