Help - Search - Members - Calendar
Full Version: How to show the author's name on Edit Entry?
Movable Type Community Forum > Additional Resources > Tips and Tricks
otravers
In MT's backend I'd like to show the post's author name (that would be useful for us since we have more than a dozen authors on our collablog), but the code below doesn't behave as I thought it would:

CODE
<a href="http://www.mydomain.com/mt/mt.cgi?__mode=list_entries&blog_id=1&filter=author_id&filter_val=<TMPL_VAR NAME=AUTHOR_ID>"><TMPL_VAR NAME=AUTHOR_NAME></a>


This fetches my author name and ID, not that post's author name/ID. It's probably a problem of context, but I don't know PERL at all, so any help is appreciated.
kadyellebee
The only place that I know that it shows the author's name is in the List Entries (list_entries.tmpl) section, and then the Power Edit screen, which is based on the same template. But that appears to be in a loop for the entries, so I'm not sure how to capture that variable one entry at a time. The context that you are trying to grab it is where you edit a single post, correct? Then because the logonav.tmpl has TMPL_VAR NAME=AUTHOR_NAME for the name that is logged in on the very top logo bar, that's probably the conflict.

Sorry I don't know more of how to help! But maybe those ideas will bump you in the right direction. smile.gif

Kristine
otravers
QUOTE
The context that you are trying to grab it is where you edit a single post, correct?

Yes, that's correct.

QUOTE
Then because the logonav.tmpl has TMPL_VAR NAME=AUTHOR_NAME for the name that is logged in on the very top logo bar, that's probably the conflict.

Now that you mention it, that seems a reasonable assumption. Thanks for your answer, I guess we'll have to live without that tweak!
almuhajabah
This is a good one for the "requested features list" if it isn't already there. For multi-author blogs, it would be very handy to be able to see and edit the author while looking at the post instead of having to go into Power Edit mode. smile.gif
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-2009 Invision Power Services, Inc.