David
Perhaps I'm not understanding the issue, but both of these work for me:
1 <a href="recipes.html">{{recipes!!link-text}}</a>
2 <a href="recipes.html"><$view tiddler="recipes" field="link-text"/></a>
On Monday, February 5, 2018 at 9:34:13 AM UTC-6, David Gifford wrote:
>
> I found a workaround for now, by separating the showname from the link.
> But I would still love it if there were a way to combine the two.
>
> *<$view tiddler="acercamientos" field="showname" format="text"/> -
> [ext[liga|./acercamientos.html]]
>
>
> On Monday, February 5, 2018 at 7:02:21 AM UTC-6, David Gifford wrote:
>>
>> Hi all
>>
>> I want to create a pretty link in an index where the link is to the URL
>> of an external page (preferably relative path, but I could live with
>> absolute path), but the text shown refers to a field of a tiddler within
>> the tiddlywiki file.
>>
>> Use case: I use a standalone TiddlyWiki to generate static pages, and a
>> static index. I use the title fields of the tiddlers for the filename of
>> the static pages, and a separate field called 'showname' to display the
>> viewable title of the article in the tiddler. Since I plan to change
>> shownames often (eg, from '8 things about this topic' to '10 things about
>> this topic'), I want the index to automatically update so I don't have to
>> hand enter each change in the index. That way, when I generate the static
>> index, the showname titles will be baked in, but the links will be to web
>> pages relative to the location of the index.
>>
>> I tried the following but they didn't work. I realize the problem is that
>> I am mixing html tags with TiddlyWiki widgets. What could I do to get this?
>>
>> *<a href="./presentaciones.html"><$view tiddler="presentaciones"
>> field="showname"/></a>
>>
>> *<$link to="./presentaciones.html"><$view tiddler="presentaciones"
>> field="showname"/></$link>
>>
>>
>>
>>
--
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 post to this group, send email to [email protected].
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/98abcb71-3f43-43b8-b064-561ffb9269b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.