Discussion:
[tw] Is there a way to customise the ORDER of fields in the EDITOR?
Josiah
2017-01-29 11:06:40 UTC
Permalink
Ciao all

I found myself labelling fields ...

b1-booktitle:
b2-bookchapter:
g1-globalindex:
g2-wordcount:
... etc ...

This is to get them in the right order in the editor.

Is there a way order them without me having to add prefixes?

Best wishes
Josiah
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4ccf1d6c-7720-41d8-b3d3-1caa8f99c948%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jed Carty
2017-01-29 11:17:20 UTC
Permalink
I am sure you could edit the edit templates to make this work, but I think
that it would be better to just make a form to edit the tiddler fields you
want to edit and then you can put things in whatever order you want.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/26d8f1b5-2b0c-4135-97f7-907536a7c399%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PMario
2017-01-29 11:35:59 UTC
Permalink
Post by Jed Carty
I am sure you could edit the edit templates to make this work, but I think
that it would be better to just make a form to edit the tiddler fields you
want to edit and then you can put things in whatever order you want.
As Jed pointed out, you can change
http://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FEditTemplate%2Ffields there is
a +sort[title].

The problem is, that there is _no_ other parameter you can use for sorting.
Fields are no tiddlers. So there is no meta data, like "modified" or
"modifier", that could be used for sorting.

It would be possible, that you add one tiddler per field-name, tag them,
and use the tag-tiddler's list field for sorting
<http://tiddlywiki.com/#ListField>. ... but that's probably not what you
want. .. It depends on the number of different fields, that you have. If
there are just a view, it would be easy that way. .. but still needs to
modify the edit template.

have fun!
mario
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/62225406-9266-4b59-ac7d-b8f243ca6e28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Josiah
2017-01-29 13:22:56 UTC
Permalink
Jed & PMario

That helps. And looks like enough to do it. HOW I manage to do it is
another issue :-). But can wait till I hit concrete problems.

Thank you!

Best wishes
Josiah
Post by PMario
Post by Jed Carty
I am sure you could edit the edit templates to make this work, but I
think that it would be better to just make a form to edit the tiddler
fields you want to edit and then you can put things in whatever order you
want.
As Jed pointed out, you can change
http://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FEditTemplate%2Ffields there
is a +sort[title].
The problem is, that there is _no_ other parameter you can use for
sorting. Fields are no tiddlers. So there is no meta data, like "modified"
or "modifier", that could be used for sorting.
It would be possible, that you add one tiddler per field-name, tag them,
and use the tag-tiddler's list field for sorting
<http://tiddlywiki.com/#ListField>. ... but that's probably not what you
want. .. It depends on the number of different fields, that you have. If
there are just a view, it would be easy that way. .. but still needs to
modify the edit template.
have fun!
mario
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/914751bd-1908-4089-b244-9f62c731cba8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PMario
2017-01-29 19:39:25 UTC
Permalink
Post by Josiah
That helps. And looks like enough to do it. HOW I manage to do it is
another issue :-). But can wait till I hit concrete problems.
:) ... It's actually easier, than my first idea. See the attachment.

It contains a tiddler named: field-sort ... This can be any name. If you
want to hide it from your users add $:/ to make it a system tiddler. The
body just contains a list of space separated field names.
and $:/core/ui/EditTemplate/fields which overwrites the core field
template. If you use a different name than field-sort you'll also need to
adjust this tiddler with the new name. .. It's only one change.

and there is a test tiddler: edit-this-tiddler.

The mechanism is based on:
http://tiddlywiki.com/#sortby%20Operator:%5B%5Bsortby%20Operator%5D%5D%20%5B%5Bsortby%20Operator%20(Examples)%5D%5D

have fun!
mario
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9142c82d-f1ad-4289-92cd-78bb87f516e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...