Thanks Xavier! I was using tobias split:before, but I think that will also 
work.

Another update! I am almost there with:

<$list filter="[is[current]fields[]regexp[-url]]" variable="fieldname">
<$list filter="[<fieldname>split:before[-]]" variable="fieldprint">
''<$text text=<<fieldprint>>/>'': <$transclude field=<<fieldname>> 
mode="inline"/>, 
</$list>
</$list>

I still can't figure out how to not show the last comma. 

P.S. Sorry to keep spamming this with updates. You could see this as I 
prematurely posted and should have waited till I did more figure out, but: 
1. The act of asking clarifies for me 2. Posting this thought 
process/evolution might be useful to others in the future! 

On Friday, December 1, 2017 at 2:29:30 PM UTC-6, Xavier wrote:
>
> Hi Diego,
>
> I think your second line should read:
>
> <$list filter="[<fieldname>splitbefore[-]removesuffix[-]]" 
> variable="fieldprint">
>
> Best,
> Xavier.
>
> -- Xavier Cazin
>
> On Fri, Dec 1, 2017 at 9:04 PM, Diego Mesa <dieg...@gmail.com 
> <javascript:>> wrote:
>
>> Hey all,
>>
>> I am trying to display a header for all posts tagged PoI that does, among 
>> other things, display any urls I've placed in its fields. For example, If I 
>> have a tiddler with the following fields:
>>
>> paper-url: test1.com
>> hn-url: test2.com
>> blog-url: test3.com
>>
>> I would like to have displayed
>>
>> Paper: test1.com
>> HN: test2.com
>> Blog: test3.com
>>
>> as the header. This is what I have so far:
>>
>> <$list filter="[is[current]fields[]regexp[-url]]" variable="fieldname">
>> <$list filter="[[<<fieldname>>]split:before[-]]" variable="fieldprint">
>> <$text text=<<fieldprint>>/> : <$view  field=<<fieldname>>/> <br>
>> </$list>
>> </$list>
>>
>> But this does not work. Without the split-before it renders as:
>>
>> <<fieldname>> : test1.com 
>> <<fieldname>> : test2.com
>> <<fieldname>> : test3.com
>>
>> which signifies that the <<fieldname>> isn't getting substituted 
>> correctly in the inner list. I tried adding a <$set> between the nesting, 
>> but that didn't work either. 
>>
>> Any specific (and general!) help would be greatly appreciated!
>> Diego
>>
>>
>> -- 
>> 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 <javascript:>.
>> To post to this group, send email to tiddl...@googlegroups.com 
>> <javascript:>.
>> 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/db3685f8-d0b7-49c5-9c87-153e82c2ae3d%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/db3685f8-d0b7-49c5-9c87-153e82c2ae3d%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/3205919f-cb47-483a-9e7a-00c4e69d5c4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to