Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Scoop Box Exchange - Show Box: subsection_list 1.00

Author: Phantros [Info]

Description:

This box makes a list of links to the child sections (subsections) beneath the current section. If no current section, it makes a list of links to the default "top level" sections.

Box Code:

my $content;
my $section = $S->{CGI}->param('section');

if($section)
{
foreach ( keys %{$S->{SECTION_DATA}->{$section}->{children}} )
{
if(!$S->{SECTION_DATA}->{$section}->{children}->{$_}->{invisible})
{
$content .= "<br><a href=\"/section/$_\">$S->{SECTION_DATA}->{$_}{title}</a>";
}
}

if(!$content)
{
$content = 'No subsections';
}
} else
{
$content = 'Put a list of default section links in this space.';
}

return {content => "<font size=1>$content</font>"};
Display: Sort:
Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Scoop Site Scroller: Get one yourself!
Smokedot
It's 4:19... do you know where your bong is?

Login
Make a new account
Username:
Password:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search