I'd like to add an RSS feed icon adjacent to the Author Display Name. It would be great if there was a tag to output the <$mt:var name='author_basename'$>, but I haven't found one.
OLD VERSION:
<div class="byline">Posted: <$mt:EntryDate format='%B %e %Y, (%I:%M %p)'$> by <$mt:EntryAuthorLink type='archive'$></div>
NEW VERSION:
<div class="byline">Posted: <$mt:EntryDate format='%B %e %Y, (%I:%M %p)'$> by <$mt:EntryAuthorLink type='archive'$> <a href="<$mt:var name='root_url'$>blog/<$mt:var name='author_basename'$>/index.xml" title="RSS Feed for '<$mt:EntryAuthorDisplayName$>'"><img src="http://www.hidglobal.com/main/site-images/icon-feed-14x14.png" width="14" height="14" border="0" alt="RSS Feed for '<$mt:EntryAuthorDisplayName$>'" /></a></div>
Is there an easy way to strtolower(replace ' ', '_', <$mt:EntryAuthorDisplayName$>)) in MovableType?
Reported on Movable Type 4.3
You could use:
<mt:AuthorBasename>
or:
<mt:AuthorBasename separator="-">
I get an error when I try to use that...
I tried making that 'mt:EntryAuthorBasename', but couldn't even save the template.
I also tried wrapping the '<mt:AuthorBasename>' block inside a '<mt:Authors>' and '</mt:Authors>' block, which created an RSS image link for each user/author (albeit each one had the proper link).
Is this a MT 5 feature? I neglected to mention we're using MT 4.3x
BTW, thanks very much for the reply!
You're welcome!
If you want to use it inside an individual article, I would recommend:
with a proper regex argument which to replace a part of your author archive URL pattern from something (say .html) to something else (say .xml)
It looks like your code didn't make it through... Could you use the nifty utility or replace < with [ and > with ]?
This seems to work:
<div class="byline"> Posted: <$mt:EntryDate format='%B %e %Y, (%I:%M %p)'$> by <$mt:EntryAuthorLink type='archive'$> <a href="<$mt:var name='root_url'$>blog/author/<$mt:EntryAuthorDisplayName lower_case="1" replace=" ","-"$>/index.xml" title="RSS Feed for '<$mt:EntryAuthorDisplayName$>'"><img src="http://www.hidglobal.com/main/site-images/icon-feed-14x14.png" width="14" height="14" border="0" alt="RSS Feed for '<$mt:EntryAuthorDisplayName$>'" /></a> </div>Perhaps MT can add this as an out-of-the-box Template Tag in a future release? ;-)