New & Improved display of hidden fields (with variants)

60 views
Skip to first unread message

A Gloom

unread,
Aug 1, 2019, 9:29:01 PM8/1/19
to tiddl...@googlegroups.com
The "Tiddler for tracking/annotating custom fields" has been modified:
EDIT: adding proper reference
important has stylesheet and template info

Mods:

For displaying custom fields and values of tiddler that are otherwise hidden.
Two versions:
- - - 1. standard with mainly unique user created fields, plus caption & list fields
*(UPDATED: no break span, caption, list added)
- - - 2. extended, shows all hidden fields including created, creator, type fields


Use attached .tid which has all of them as visual examples in one page (also see screenshot) as well as  code snippets (for copying/pasting into tiddlers or templates)

Clipboard01.jpg



Will be posting:
-- a master fields reference-- a different envisioning of TW fields
-- and a fields viewer of any tiddler's user created fields-- the start of a basic database front end using tiddler fields
zz# fields&values display code.tid

A Gloom

unread,
Aug 1, 2019, 11:06:29 PM8/1/19
to TiddlyWiki
Will be posting:
-- a master fields reference-- a different envisioning of TW fields

ATTACHED:

Data fields explanations:
a modification of Tobias Beer's "ListFields"
Wiki standard/core system fields: listed by tiddler structure and its display position in view & edit mode.

– REFERENCE: TiddlerFields: https://tiddlywiki.com/#TiddlerFields
#data fields explanations.tid

A Gloom

unread,
Aug 2, 2019, 12:56:50 AM8/2/19
to tiddl...@googlegroups.com
FURTTER NOTES:

has styling & template information:
 
explaining the filter so it can be modified by user:

<$list filter="[all[current]fields[]sort[title]] -[all[shadows]removeprefix[$:/language/Docs/Fields/]] +[prepend[caption]] +[append[list]]" variable="listItem">

Caption, list, type, created, creator fields are core wiki fields so they don't get selected by the base filter which is for noncore fields, ie fields that are unique to a user's wiki.  They were added with the filter operators below which allowed them to placed outside of the filter ordering.

+[prepend[caption]] adds the caption field to the start of the resulting filter list

+[append[list]] adds the list field to the end of the resulting filter list

to add more than one field use this format:

+[append[list type]]

explaining the display:

<span class="rspannbrk"><span class="ragsspannumb"><$text text=<<listItem>>/></span> <$view field=<<listItem>>/></span>

<span class="rspannbrk"> is a wrapper that prevents a field title/value pair from being separated by a line break

<span class="ragsspannumb"> provides the border for the field title

these spans need the following custom styling/sheet:

/* span nobreak */
.ragspannobrk {white-space: nowrap;}

/* span borders small bold */
.ragsspannumb {border:solid 1px; border-radius:4px; padding:0px 4px 0px 4px; font-size: smaller; font-weight: bold;}
Reply all
Reply to author
Forward
0 new messages