Help - Search - Members - Calendar
Full Version: link to entry from within entry
Movable Type Community Forum > Additional Resources > Tips and Tricks
tooluser
I want an easy way to link from one entry to another. Ideally, this would be something like:
CODE
<entry id=5>A link to entry 5</entry>

from within an entry's body while I'm typing it. will *not* work, because it functions only in templates.

The obvious solution is to use Brad Choate's brilliant MTMacro. However, it doesn't work. At least, *I* can't get it to. I have this macro created:

CODE
<MTMacroDefine name="entrylink" ctag="entrylink"><a href=<MTLink entry_id="<MTMacroAttr name="eid">">><$MTMacroContent$></a></MTMacroDefine>


this doesn't work either:

CODE
<MTMacroDefine name="entrylink" ctag="entrylink"><a href=<MTLink entry_id="[MTMacroAttr name='id']">><$MTMacroContent$></a></MTMacroDefine>


It fails in a rather grotesque way; the whole page simply fails to render.

This is pretty much the last thing I need to add to my site - any advice?

Thanks much.
kadyellebee
I wonder if you used the Process plugin and then just type the MTEntry tag into your post if it would work.  I'm not sure, but its worth a try smile.gif

Kristine
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.