Can news headlines be displayed with a summary linking to the full article

Asked by rocknmetal

I looked for this in the questions database but didn't find a specific answer.

In this news system, does it allow for us to insert a pre-defined number of 'headlines' that would display on a page utilizing an 'include' tag that would display say 5 headlines AND a short summary of the article, perhaps the date as well, and make the title a hyperlink to the full article? We want to display up to 5 'summaries' on the home page of a site. Since there's not a 'feature list' on your site I didn't know if this is available.

Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
phpns Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
alecwh (alecwh) said :
#1

Yes, this is possible. The 'summary' will be the "Main Article". You can
start putting the 'rest of it' in the "Extended" section, so it will
appear once clicked.

<?php
$phpns['limit'] = 5;
$phpns['template'] = TEMPLATE_ID; # this is the headlines template
?>

The 'main article' template:
<a href="{article_href}">{title}</a> ({date})<br />
{main_article}

After creating the template, put the ID number in the include code
above.

Revision history for this message
rocknmetal (gqwebguy) said :
#2

When I integrate the news articles using the integration wizard I receive these errors piled over the article:

Notice: Undefined index: freeze_file in /home2/wwwcasca/public_html/phpns/shownews.php on line 42

Notice: Undefined index: do in /home2/wwwcasca/public_html/phpns/shownews.php on line 51

Notice: Undefined index: mode in /home2/wwwcasca/public_html/phpns/shownews.php on line 53

Notice: Undefined index: offset in /home2/wwwcasca/public_html/phpns/shownews.php on line 54

Notice: Undefined index: sef in /home2/wwwcasca/public_html/phpns/shownews.php on line 61

Notice: Undefined index: static in /home2/wwwcasca/public_html/phpns/shownews.php on line 419

Notice: Undefined index: static in /home2/wwwcasca/public_html/phpns/shownews.php on line 542

Notice: Undefined index: comment_override in /home2/wwwcasca/public_html/phpns/shownews.php on line 543

Notice: Undefined index: script_link in /home2/wwwcasca/public_html/phpns/shownews.php on line 199

Notice: Undefined index: always_show_extended_article in /home2/wwwcasca/public_html/phpns/shownews.php on line 210

Notice: Undefined index: disable_extended_article in /home2/wwwcasca/public_html/phpns/shownews.php on line 212

Notice: Undefined index: content in /home2/wwwcasca/public_html/phpns/shownews.php on line 570

Notice: Undefined index: comment_list in /home2/wwwcasca/public_html/phpns/shownews.php on line 602

Notice: Undefined index: comment_override in /home2/wwwcasca/public_html/phpns/shownews.php on line 605

Revision history for this message
alecwh (alecwh) said :
#3

Phpns does not initiate variables - which is the reason you are getting
the error messages. Turn your PHP error_reporting to a lower level to g
et rid of them.

I realize this is a bad way to solve the issue, but since Phpns is
frozen from minor fixes (I consider this a minor fix, because they are
warnings), it won't be fixed.

Revision history for this message
Lannie (lannie) said :
#4

I have a site that uses frames. The frame on the left, on the homepage should show the article title and summary.

When they click on the title, it should populate the mainframe with the full article. How do I modify the code to do this?

Lannie

PS I am using inline frames.

Can you help with this problem?

Provide an answer of your own, or ask rocknmetal for more information if necessary.

To post a message you must log in.