I'm sure someone else could come up with something more elegant, but I
think the method in this thread
https://groups.google.com/forum/?hl=en#!searchin/tiddlywiki/linkimage$20tw5/tiddlywiki/T4iAJWt4CdE/MFeao7hpvokJ
would work. E.g.,
\define linkpdf(title)
<object data="file:///C:/somefolder/somotherfolder/$title$.pdf" type=
"application/pdf" width="100%" height="500px"/>
\end
<$macrocall $name=linkpdf title={{!!filename}}/>
cmari
On Friday, April 4, 2014 6:39:24 AM UTC-7, Ulrik Stervbo wrote:
>
> I did try that but that doesn't work (<object
> data={{!!path}}{{!!filename}} type="application/pdf" width="100%"
> height="500px"/>).
>
> The path is defined in a field in the tiddly. The file name is also
> defined in a field in the same tiddly
>
>
> 2014-04-04 15:34 GMT+02:00 Danielo Rodríguez <[email protected]<javascript:>
> >:
>
>> It depends on how do you are going to use that, but you can use.
>> {{!!path}}{{!!filename}}
>>
>>
>> The question is, where is the path defined?
>> El viernes, 4 de abril de 2014 14:52:02 UTC+2, Ulrik Stervbo escribió:
>>
>>> Hello list,
>>>
>>> I'm trying to generate a template to link to external files (I know this
>>> defeats the purpose of a single HTML but I expect to have a lot of images,
>>> pdfs and other things). To include PDfs I use: <object data={{!!filename}}
>>> type="application/pdf" width="100%" height="500px"/>
>>>
>>> I would like to have the field 'filename' to contain just the file name
>>> and have another field 'path' which contains the (unchanging) path to a
>>> directory next to the tiddlywiki. How can I combine these two fields to
>>> generate a path with file name pointing to the data?
>>>
>>> Cheers,
>>> Ulrik
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/tiddlywiki/-5SPFwSesZc/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.