[tw5] Re: Filter list by tag but sort by and show value of field

2019-03-31 Thread Huw
That is most excellent! Thanks! I missed that operator entirely!

regards

Huw

On Sunday, 31 March 2019 09:52:54 UTC+1, Jed Carty wrote:
>
> It sounds like you need the get operator 
> https://tiddlywiki.com/#get%20Operator
>
> Try this:
>
> <$list filter='[tag[TAGNAME]get[nameid]sort[]]'>
>
>
> 
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/98d491f7-e3f0-4dab-b650-4897c5a256f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Filter list by tag but sort by and show value of field

2019-03-31 Thread Huw
Currently I am using "*<$list filter='[tag[TAGNAME]sort[title]]'/>*" to 
produce a list of tiddlers by tag. Works fine.

However, what I would like to do (and have failed miserably) is to get a 
list of tiddlers by tag, sorted by and displaying the value of a specific 
field.

So for example I have tiddlers "Apple", "Orange", "Pear".

All have a field named "nameid" that contains a string and all have the tag 
"Fruit".

I would like to produce a list of all items with the tag "Fruit", but the 
list should be derived from and sorted by the value of the "id" field, so 
the list would be:

AppleIDString
OrangeIDString
PearIDString

rather than

Apple
Orange
Pear

Which is what I have now.

Any help would be much appreciated!

regards

Huw

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/1980f3a0-cf64-4605-b7c8-37ae0eb10d0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Mechanism to select a tiddler and transclude its contents

2019-03-24 Thread Huw
Ah! Thats excellent thanks!

Ill have to tinker a little with my Character files because I use "$view 
field" for names and such because of the way I create the files (I use a 
template and a button/input field combo to take a name and generate the 
character file). Aside from that it works exactly as I wanted it to!

Many thanks to everyone who chipped in!

Regards
Huw

On Sunday, 24 March 2019 13:33:26 UTC, Birthe C wrote:
>
> Replace the edit part with <$transclude 
> tiddler={{$:/temp/selected/character}}/>
>
>
> Birthe
>
> søndag den 24. marts 2019 kl. 13.51.55 UTC+1 skrev Huw:
>>
>> Okay, fair enough, perhaps I didn't think that through when I was typing! 
>> So how would I transclude the tiddler in the same way?
>>
>> Thanks, Huw
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/98a0bf2e-55b6-4406-9e02-8c0dcf430ba4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Mechanism to select a tiddler and transclude its contents

2019-03-24 Thread Huw
Okay, fair enough, perhaps I didn't think that through when I was typing! 
So how would I transclude the tiddler in the same way?

Thanks, Huw


On Sunday, 24 March 2019 12:32:58 UTC, Birthe C wrote:
>
> Hi Huw,
>
> That is because you asked to be able to edit the selected tiddler. If you 
> only want to view them you could transclude the tiddler.
>
>
> Birthe
>
> søndag den 24. marts 2019 kl. 09.50.55 UTC+1 skrev Huw:
>>
>> Hey guys, thanks for the replies - its good to hear that this is actually 
>> possible.
>>
>> Eric: Your code works nicely however the tiddlers (Characters) that are 
>> displayed are shown in raw text format rather than the nicely formatted 
>> tiddlers that I have set up. Is there some way to display them as actual 
>> tiddlers rather than in their raw text state?
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/e0da34c6-156f-4126-83a1-24f9de77527b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Mechanism to select a tiddler and transclude its contents

2019-03-24 Thread Huw
Hey guys, thanks for the replies - its good to hear that this is actually 
possible.

Eric: Your code works nicely however the tiddlers (Characters) that are 
displayed are shown in raw text format rather than the nicely formatted 
tiddlers that I have set up. Is there some way to display them as actual 
tiddlers rather than in their raw text state?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/31a63faa-7bbc-4c4f-98ce-496c5979a2bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Mechanism to select a tiddler and transclude its contents

2019-03-23 Thread Huw
Hello. Iv been an on and off user of TW since the early days and I'm just 
starting out with TW5.

What I want to do (any advice or re-direction is fine)

*Create a list from a specific tag*
This can be in any format (For example just a list of tiddlers or the same 
list inside a select control etc)

*Transclude selected Tiddler into a panel on the same page*
When I click a tiddler in the list the content of the tiddler needs to be 
transcluded into a DIV or some other kind of container that is on the same 
page as the list and preferably editable.

*Actual Objective*
I am a part time author and as such I have a huge collection of stories and 
story notes. I also have a Character editor and this is what I am working 
on. I need a list of tiddlers with the 'Character' tag, and when clicking 
on one I want the content of that Character tiddler displayed in some kind 
of container on the same page as the list.

Of course the same tiddlers can be opened normally from within any body of 
text, but this is where the collection of Characters lives and I want to be 
able to create and edit them there.

*What I don't want* 
Tiddlers appearing in an iFrame with the sidebar menu etc. I want just the 
content of the tiddler to be seen

*What Iv already done*
So far Iv only managed to get a list of tiddlers with the correct tag, but 
I am entirely at a loss as to how to transclude a selected tiddler into 
another part of the page based on the item click in the list. I simply 
don't know where to start.

By all means correct any assumptions Iv made incorrectly and point me in 
the right direction (If this is possible at all)

Kind regards

Huw

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/864e8457-9544-4a26-a28f-c50b660a3740%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.