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}">»</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
{AUTHOR} tag not working inside the teaser template
{AUTHOR} tag not working inside the teaser template
The syntax used is identical
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.
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.
The syntax used is identical
That's, what you can find inside the sample.tmpl file (or was it an addition of mine ? mhhh???)
So try {EDITOR} instead {AUTHOR}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
Not -NO- way.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??
-ONE- way.
The author of the ORIGINAL article (or anyone logged in as him) can create the teaser and have the authorship intact.