Re: com web/master: Generate a shorter news intro for long entries. Originally by Levi in phpweb: scripts/pregen_news
| From: | Levi Morrison | Date: | Thu, 05 Jul 2012 20:34:44 +0000 |
| Subject: | Re: com web/master: Generate a shorter news intro for long entries. Originally by Levi in phpweb: scripts/pregen_news | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-13872@lists.php.net to get a copy of this message | ||
On Thu, Jul 5, 2012 at 1:38 PM, Hannes Magnusson <bjori@php.net> wrote:
>
> + if ($count > 2) {
> + $permanentLink =
> get_link($retval, "alternate");
> + $content .= "<p
> class='fullArticleLink'><a href='$permanentLink'
> class>… read full
> article</a></p>";
> + }
>
I believe
$permanentLink = get_link($retval, "via"); is actually what
you should call. The alternate link points you to the homepage which only
contains the intro text, not the full article. The via link points to the
full article. Correct?