biftek
07-06-2005, 01:44 PM
in the catergory view are you able to delete the author,publish date and cat titles that lay underneath the article title?
Chris S
07-07-2005, 02:44 AM
Hi,
Sure.
Backup before you start!
In the templates/template_name/panels/ViewCategoryAdvanced.php file, it has a function called 'GetArticles'.
Depending on which template you are using this code will be slightly different.
$output .= sprintf("
</span>
<div class=\"Details\">%s <a href='%s'>%s</a>
| %s %s
| %s | <span class='RatingDisplay'>%s</span>
</div>
<div class=\"Content\">
<table cellspacing=0 cellpadding=0><tr><td valign=top>
%s
</td><td valign=top class=content>
%s
</td></tr></table>
</div>
<div class=\"SmallLinks\">
", $GLOBALS["AL_LANG"]["hpBy"], AL_HELPER::AuthorLink($articleRow["AuthorID"], $author), $author, $GLOBALS["AL_LANG"]["hpPublished"], AL_HELPER::GetRelativeDate($articleRow["SD"]), AL_HELPER::GetCategoryListCVS($articleRow["ArticleID"]), AL_HELPER::GetRatingBar($articleRow["ArticleID"]), AL_HELPER::GetAuthorPic($articleRow["AuthorID"]), $articleRow["Summary"]);
Remove these:
$GLOBALS["AL_LANG"]["hpBy"], AL_HELPER::AuthorLink($articleRow["AuthorID"], $author), $author, $GLOBALS["AL_LANG"]["hpPublished"], AL_HELPER::GetRelativeDate($articleRow["SD"])
and also the first 4 %s placeholders from the previous line (otherwise you will get an error!)... and anything else you want to remove. Basically each '%s' is a placeholder for the stuff after so make sure you remove the right ones and the right amount.
in the catergory view are you able to delete the author,publish date and cat titles that lay underneath the article title?