Plankton has asked for the wisdom of the Perl Monks concerning the following question:
... in to the "front page" of my site at home. It spits links to the newest nodes. What I can't figure out is how to create a nodegroup and display the first node of a thread with some of its text. Much like how perlmonks does it :)[% my $limit; $limit = int($$VARS{newnodes_limit}) if (exists $$VARS{newnodes_limit} +); $limit ||= 15; my $str; my $ref = getNodeWhere({}, "", "createtime DESC", $limit); foreach my $N (@$ref) { $str .= linkNode($N) . "<BR>\n" if $N->hasAccess($USER, 'r'); } $str; %]
| Plankton: 1% Evil, 99% Hot Gas. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Everthing node questions
by PodMaster (Abbot) on Aug 31, 2004 at 04:14 UTC | |
by Plankton (Vicar) on Aug 31, 2004 at 05:04 UTC | |
by PodMaster (Abbot) on Aug 31, 2004 at 05:48 UTC | |
by Plankton (Vicar) on Aug 31, 2004 at 15:41 UTC |