{AUTHOR} tag not working inside the teaser template

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Tidida
Posts: 32
Joined: Thu 17. Jun 2004, 08:42
Location: Mexico City

{AUTHOR} tag not working inside the teaser template

Post 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
The syntax used is identical
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Did the author of the original article also create the article that contains the teaser?
Tidida
Posts: 32
Joined: Thu 17. Jun 2004, 08:42
Location: Mexico City

Post 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
The syntax used is identical
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post 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}
Tidida
Posts: 32
Joined: Thu 17. Jun 2004, 08:42
Location: Mexico City

Post 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??
The syntax used is identical
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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:
Post Reply