Hey folks,

I've incorporated, into my Noteself usage, the ximg macro located here->  
[External Image Path 
Macro](http://www.richshumaker.com/tw5/tw-photo.html#External%20Image%20Path)

It works great and works when I view a tiddler using the markup.

I have since modified the approach (created new tiddlers) to create 
essentially an External Link Path Macro (xpdf). My modified macro xpdf is 
intended to allow external links to open pdfs. The macro seems to work, but 
only when I perform the following:

   1. advance search for the macro
   2. select the xpdf macro
   3. when the tiddler appears (I don't have to open the edit window) the 
   tiddlers that are using the macro work.

Here's what I've got in the tiddler:

A tiddler named "$:/macros/xpdf" and tagged "$:/tags/Macro" with the 
following content

    
\define pdfAtPath(t, y, d, p)
[ext[$t$|$p$$y$ JBW/$d$]]
\end

\define xpdf(title, year, doc, path:"$:/macros/xpdf/path")
<$macrocall $name="pdfAtPath" p={{$path$}} t="$title$" y="$year$" d="$doc$"
/>
\end

Another tiddler named "$:/macros/xpdf/path" and tagged "$:/tags/Macro" with 
the following content

./JBW Notes Chrono/

In the tiddler calling the macro, the following notation is used:

<<xpdf History 2003 "2003-01-01_01_J_Green Book 099.pdf">>


Some other data (if needed).

   - Mac OS 10.15.5
   - Latest Noteself install 5.1.21
   - I have a local CouchDB (3.1.0) instance running
   - I have a remote CouchDB (2.3.1) instance running
   - This DB is replicating to and from each CouchDB instance

The Questions...

   - Does anyone see any reason why the xpdf macro would need the extra 
   step?
   - Would the ximg and xpdf conflict with each other? (They both appear to 
   work once the xpdf macro is viewed)
   - Are there certain variables that I need to change because they are 
   unique (I wouldn't think this to be true)
   - Anyone have any ideas on how to fix it?

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/0cfc9ab0-dca8-4709-b2ca-5730ebe6ef26o%40googlegroups.com.

Reply via email to