Page 1 of 1

{AUTHOR} tag not working inside the teaser template

Posted: Fri 10. Aug 2007, 02:13
by Tidida
Hi:

I put the {AUTHOR} replacement tag inside the teaser template:

<!--TEASER_ENTRY_START//-->
<hr style="margin:7px 0 7px 0;padding:0;height:0;border:0;border-bottom:1px dotted #CCCCCC;clear:both" />
<div id="resumenTeaser">
<div id="fechaTeaser">{DATE:d/m/y:ES}</div>
<h3><a href="{ARTICLELINK}">{TITLE}</a></h3>
{AUTHOR}<br />
[IMAGE]<div style="float:left"><a href="{ARTICLELINK}">{IMAGE}</a>[CAPTION]<p>{CAPTION}</p>[/CAPTION]</div>[/IMAGE]
<p>[SUBTITLE] <b>{SUBTITLE}.</b>[/SUBTITLE]
{SUMMARY} <a href="{ARTICLELINK}">&raquo;</a></p>
</div>
<!--TEASER_ENTRY_END//-->

But what I get is the owner of the article, not the author. Inside the article the replacement tag works great, but not in the teaser.

Does anyone know what to do to correct this?

Thanks

Posted: Fri 10. Aug 2007, 02:38
by DeXXus
Did the author of the original article also create the article that contains the teaser?

Posted: Fri 10. Aug 2007, 02:50
by Tidida
Yes, that's it, you're right. It's showing the author of the teaser article and not of the articles in the teaser. Is there a way to change this??

And another question. The {AUTHOR} tag does not work in the article listing, does it?

I put it in the template and does not display at all.

Thanks by the way.




:D

Posted: Fri 10. Aug 2007, 11:27
by pepe
That's, what you can find inside the sample.tmpl file (or was it an addition of mine ? mhhh???)
sample template for article summary listing
===========================================

TITLE = article title
SUB = article subtitle
SUMMARY = article summary text
IMAGE = summary image (only the <img src="..."> tag)
ZOOMIMAGE = if the image is click-zoomable (<a href...><img...></a>)
CAPTION = summary image caption
ARTICLELINK = url to full article
MORE = the "more..." text/image like defined in template_defaults
BEFORE = show before listing entry
AFTER = show after listing entry
SPACE = show this between listings
DATE = show article date {DATE:FORMAT:LANG} or {DATE:FORMAT}

EDITOR = name of editor
ARTICLEID = ID of list entry
So try {EDITOR} instead {AUTHOR}

Posted: Fri 10. Aug 2007, 23:41
by Tidida
thanks pepe, it's true that for the article listing. But for the teaser it does not work.

So there is no way to show the real author of an article in a teaser??

Posted: Sat 11. Aug 2007, 01:10
by DeXXus
Tidida wrote:thanks pepe, it's true that for the article listing. But for the teaser it does not work.

So there is no way to show the real author of an article in a teaser??
Not -NO- way.
-ONE- way.
The author of the ORIGINAL article (or anyone logged in as him) can create the teaser and have the authorship intact. :wink: