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 <diego...@gmail.com> 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+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/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/CADeSwYM_TmAJT_wCQns_2tBL2gQOW9zQJNb14r9N58rvTV6uJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to