Re: com web/master: Generate a shorter news intro for long entries. Originally by Levi in phpweb: scripts/pregen_news

From: Date: Thu, 05 Jul 2012 21:19:17 +0000
Subject: Re: com web/master: Generate a shorter news intro for long entries. Originally by Levi in phpweb: scripts/pregen_news
References: 1 2 3  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13879@lists.php.net to get a copy of this message
On Thu, Jul 5, 2012 at 2:44 PM, Hannes Magnusson <bjori@php.net> wrote: > On Thu, Jul 5, 2012 at 9:34 PM, Levi Morrison <morrison.levi@gmail.com> > wrote: > > > > > > 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>&hellip; 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? > > Ouh, right. You are moving most of the news from the frontpage.. > > The problem with the 'via' attribute is that it literally points to > the conference pages rather then our news entry. > So when you click "read more" you get sent to a page that doesn't even > contain that news item. > > On the other hand, the conference/cfp entries should eventually be > aggregated fron joind.in so I suppose that doesn't really matter in > the meanwhile. > > -Hannes > Perhaps a new rel is in order? Maybe archive?

« previous php.webmaster (#13879) next »