2011-04-01, 06:10:07
First off, this is a great plug in, but i had to tweak it.
i would like to share my tweak, I don't recall seeing it on here, but if it is disregard this.
My tweak is for the news list. if i add a news item without excerpt, it tends to post the full article on the list, which to me is not needed. I wanted it to show just the list of articles and if there is an excerpt then it shows if not then it doesn't.
so, in order to make that work i had to add a little code in the news_manager file.
Open the news_manger.php and look for function.
In that function look for
edit it to make it be:
this will not show the full article content if there is no excerpt.
if i make more tweaks be sure to know i'll be posting them.
regards
irperera
i would like to share my tweak, I don't recall seeing it on here, but if it is disregard this.
My tweak is for the news list. if i add a news item without excerpt, it tends to post the full article on the list, which to me is not needed. I wanted it to show just the list of articles and if there is an excerpt then it shows if not then it doesn't.
so, in order to make that work i had to add a little code in the news_manager file.
Open the news_manger.php and look for
Code:
function show_article($id, $excerpt=FALSE)
In that function look for
Code:
if ($excerpt && !empty($data->excerpt)) {
$content = '<p>' . stripslashes(htmlspecialchars_decode($data->excerpt, ENT_QUOTES)) . '</p>';
}
edit it to make it be:
Code:
if ($excerpt){
if(!empty($data->excerpt))
$content = '<p>' . stripslashes(htmlspecialchars_decode($data->excerpt, ENT_QUOTES)) . '</p>';
else
$content = '';
}
this will not show the full article content if there is no excerpt.
if i make more tweaks be sure to know i'll be posting them.
regards
irperera