Thanks, I got it to work! It would have been hard to figure that logic out
on my own.
Sidenote: If anyone has the same problem, make sure your Tiddlywiki version
is recent enough to support all the operators used here.
Op zaterdag 15 februari 2020 18:45:12 UTC schreef Mark S.:
>
> Here's a version that uses the "HelloThere" tag on TiddlyWiki.com. You'll
> see where to change it back:
>
> <table class="tableFormatter">
> <$list filter="[all[shadows+tiddlers]!prefix[$:/]tag[HelloThere]]
> +[sort[created]]">
> <tr>
> <td><$view field="created" format="date" template="DD/0MM/YYYY - ddd MMM
> DD"/></td>
> <td valign="top"><$link to=<<currentTiddler>>><$view
> field='title'/></$link></td>
> <td><$text text={{{ [<currentTiddler>get[text]split[]limit[30]join[]] }}}
> /></td>
> </tr>
> </$list>
> </table>
>
>
>
>
> On Saturday, February 15, 2020 at 10:27:20 AM UTC-8, Teun van Leeuwen
> wrote:
>>
>> Hi,
>>
>> I have used Tiddlywiki for a while, but I'm still struggling so now and
>> then to figure things out. I don't have much experience with programming,
>> but I do love knowledge management and Tiddlywiki is the only tool that
>> suits my needs.
>>
>> *The problem is the following:*
>>
>> I am using a list widget to list Tiddlers with the tag "Inbox" in a table
>> like so:
>>
>>
>>
>> 15/02/2020 - Sat February 15
>>
>> Title of the Tiddler
>>
>> Text of the Tiddler
>>
>>
>>
>> What I'd like to be able to do is cut the text of the tiddler displayed
>> in the list after a certain amount of characters. In case an item in the
>> list is really long, it would look like this:
>>
>>
>>
>>
>>
>> 15/02/2020 - Sat February 15
>>
>> Title of a short Tiddler
>>
>> Text of a short tiddler
>>
>> 15/02/2020 - Sat February 15
>>
>> Title of a long Tiddler
>>
>> Text of a really long tiddler which is cut off after x amount of chara...
>>
>>
>> I googled around for quite a while, but I was probably using the wrong
>> keywords. Is there any way I can easily achieve this? The code for the list
>> that I have now is:
>>
>> <table class="tableFormatter">
>> <$list filter="[all[shadows+tiddlers]!prefix[$:/]tag[Inbox]]
>> +[sort[created]]">
>> <tr>
>> <td><$view field="created" format="date" template="DD/0MM/YYYY - ddd MMM
>> DD"/></td>
>> <td valign="top"><$link to=<<currentTiddler>>><$view
>> field='title'/></$link></td>
>> <td>{{!!text}}</td>
>> </tr>
>> </$list>
>> </table>
>>
>> Thanks in advance!
>>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/c0490502-8b42-4eed-88d0-6cc05c1b4175%40googlegroups.com.