phpns-team team mailing list archive
-
phpns-team team
-
Mailing list archive
-
Message #00240
Re: [Question #50481]: Can news headlines be displayed with a summary linking to the full article
Question #50481 on phpns changed:
https://answers.launchpad.net/phpns/+question/50481
Status: Open => Answered
alecwh proposed the following answer:
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.
--
You received this question notification because you are a member of
Phpns-team, which is an answer contact for phpns.