Enhancements to news
Posted: Mon Jan 16, 2006 1:03 am
I would love to see the ability to have both poster's name and an avatar for that poster in the news section.
Content management as it is meant to be
https://forum.cmsmadesimple.org/
Well, I think that's a bit optimistic....Patricia wrote: The author name will be included in the next version of CMSMS which should be out in about 1 week.
How will that work if there is space in the author's name, but the file name can't take any space?The avatar is not included, but you can achieve that by tweaking the detail template
in the News module you will simply go to the detail template in the admin panel and :
replace:with this:Code: Select all
<div class="NewsDetailAuthor"> {$entry->author} </div>
Code: Select all
<div class="NewsDetailAuthor"> {$entry->author} <img src="uploads/images/authors/{$entry->author}.jpg"> </div>
How about for summaries?Patricia wrote: The author name will be included in the next version of CMSMS which should be out in about 1 week.
The avatar is not included, but you can achieve that by tweaking the detail template
in the News module you will simply go to the detail template in the admin panel and :
replace:with this:Code: Select all
<div class="NewsDetailAuthor"> {$entry->author} </div>
you of course need to have the authors images in .jpg (with same spelling+ uppercase-lowercase) in uploads/images/authors/ (path and extension as per my above example)Code: Select all
<div class="NewsDetailAuthor"> {$entry->author} <img src="uploads/images/authors/{$entry->author}.jpg"> </div>
You just need a week of patience
Cheers
Guess I can't use it yet; I imagine I wouldn't be able to use it anywhere in news until you guys have added the author name in yet, right?neenach2002 wrote: That's great to hear!
I'm just trying to achieve something that looks similar to my old news.Avatars are a must for any anime site; along with usernames.
Can't I just use {$entry->author} for the author's name then?![]()
Yeah, this is added in SVN and will be in the next release.Guess I can't use it yet; I imagine I wouldn't be able to use it anywhere in news until you guys have added the author name in yet, right?