wikify widget doesn't accept variable as text attribute?

91 views
Skip to first unread message

leeand00

unread,
Jan 18, 2018, 10:51:13 PM1/18/18
to TiddlyWiki

When iterating over a source dictionary tiddler, is it possible to feed a line (index) from it into the <$wifify> widget's text
attribute?


<$set name="source" value={{!!accomplishments_tiddler}} >
<$list filter="[
<source>indexes[]]" variable="index">

<
<source>>:<<index>><br/>

<$set name="aline" tiddler=<
<source>> index=<<index>> >

<
<aline>>

<$wikify name="bob" output="html" text=<
<aline>> >
<
<bob>>
</$wikify>


</$set>
</$list>
</$set>


Let's say there was something in a dictionary line like this:

2017 - Hosted lab by writing example code, creating presentation and presenting it on [[Backup and Disaster Recover Software.|https://www.meetup.com/cp-lug/events/245852703/]]

That should get turned into some text and an external hyper-link, correct?



Thank you,
   Andrew J. Leer



Mark S.

unread,
Jan 18, 2018, 11:23:36 PM1/18/18
to TiddlyWiki
What problem are you experiencing? When I try it both <<aline>> and <<bob>> produce text with an external hyperlink.

You don't show your index in your example, so for my test I just made it 01: 

So ... without seeing your data -- be sure you have an index for each line. Be sure that you've set the type of the data tiddler to data tiddlers.

Good luck,

-- Mark

leeand00

unread,
Jan 19, 2018, 12:34:15 PM1/19/18
to TiddlyWiki
Actually it's like this:

1:2017 - Hosted lab by writing example code, creating presentation and presenting it on [[Backup and Disaster Recover Software.|https://www.meetup.com/cp-lug/events/245852703/]]

Sorry I didn't post it right the first time.

leeand00

unread,
Jan 19, 2018, 2:05:35 PM1/19/18
to TiddlyWiki

This is the contents of the "dictionary tiddler" which has a type of "application/x-tiddler-dictionary":

1:2017 - Hosted lab by writing example code, creating presentation and presenting it on [[Backup and Disaster Recover Software.|https://www.meetup.com/cp-lug/events/245852703/]]

----

And this is the contents of the syntax for rendering in a tiddler that has a field which refers to "dictionary tiddler" named "accomplishments_tiddler":


<$set name="source" value={{!!accomplishments_tiddler}} >
   <$list filter="[
<source>
indexes[]]" variable="index">

     &lt;Contents-of-Line:&gt;
       <
<source>>:<<index>>
     &lt;/Contents-of-Line:&gt;
     <$set name="wood" tiddler=<
<source>> index=<<index>> >

      &lt;Contents-of-Variable:&gt;
       <
<wood>>
     &lt;/Contents-of-Variable:&gt;


      <$wikify name="bob" output="html" text="2017 - Hosted lab by writing example code, creating presentation and presenting it on [[Backup and Disaster Recover Software.|http://bit.ly/cplug_bareos_talk_lib]]" >

     &lt;Wikify-From-Attribute:&gt;
         <
<bob>>
     &lt;/Wikify-From-Attribute:&gt;

        <$wikify name="tom" output="html" text=<
<wood>> >
          &lt;Wikify-From-Variable:&gt;
              <
<tom>>
          &lt;/Wikify-From-Variable:&gt;
        </$wikify>

    </$wikify>

    </$set>
  </$list>
</$set>


----

And the results of above look like this:

<Contents-of-Line:> lines - CPlug - Orgs - Petes Webpages - Database Admin:1 </Contents-of-Line:>

<Contents-of-Variable:> </Contents-of-Variable:>

<Wikify-From-Attribute:>

2017 - Hosted lab by writing example code, creating presentation and presenting it on Backup and Disaster Recover Software.

</Wikify-From-Attribute:>

<Wikify-From-Variable:> </Wikify-From-Variable:>


---

I can't figure out why the <<wood>> variable doesn't populate with the contents of the text to be wikified.


On Thursday, 18 January 2018 23:23:36 UTC-5, Mark S. wrote:

Mark S.

unread,
Jan 19, 2018, 4:03:40 PM1/19/18
to TiddlyWiki
Where is this coming from:

lines - CPlug - Orgs - Petes Webpages - Database Admin:

?

What is the name of the dictionary tiddler? What are the contents of accomplishment_tiddler ? It might help if you exported and attached the data dictionary.

-- Mark

leeand00

unread,
Jan 19, 2018, 4:07:33 PM1/19/18
to TiddlyWiki
 Figured it out!  I was using 5.1.14 and I needed 5.1.15 to do it.
Reply all
Reply to author
Forward
0 new messages