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: section_intro 1.00

Author: mahonri [Info]


This box is patterned after section_title, but adds the scoop_intro block to the front page and the content of the description you type in for each section (on the Section admin page) for section specific pages.

Box Code:

## START section_intro ##
my $title = 'Front Page';
my $content = '|scoop_intro|';
my $op = $S->{CGI}->param('op');
my $page_num = $S->cgi->param('page');
my $page = '';
if ($page_num && $page_num != 1) {
$page = "(page $page_num)";

if ($op eq 'section') {
my $section = $S->{CGI}->param('section');
unless($S->have_section_perm('hide_read_stories',$section)) {
$title = $S->{SECTION_DATA}->{$section}->{title};
} else {
$title = '';
if ($op eq 'section') {
my $section = $S->{CGI}->param('section');
unless($S->have_section_perm('hide_read_stories',$section)) {
$content = $S->{SECTION_DATA}->{$section}->{description};
} else {
$content = '';

return {'content' => "$content", 'title' => "|title_font|$title $page|title_font_end|" };
## END section_intro ##
Display: Sort:
Code (none / 0) (#1)
by Holden74 on Sat Jul 20, 2019 at 04:34:41 AM PST

There are many codes and functions which you can use to make a quick program. The custom research paper writing service shares a few videos in which they teach you about quick learning of work.

create account
report bugs
Scoop Administrators Guide
Scoop Box Exchange

Scoop Site Scroller: Get one yourself!
Keepers of Lists
Got Lists? We've got over 1800

Make a new account

Hosted by 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