Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

Includes elsewhere

Quote Reply
Includes elsewhere
Hi all,
cause of changing my include_files from some other scripts, i want them outside the templates-dir;
may you have an idea how to change in templates.pm (admin.html.pm)

sub parse()
...
# Parse includes, do this first so that the includes can include
# template tags.
$temp =~ s#$begin\s*include\s*(.+?)\s*$end#
if (exists $self->{'inc'}{$root}{$1}) { $self->{'inc'}{$root}{$1}; }
else {
if (open (INC, "${$self}{'ROOT'}/$1")) {
$self->{'inc'}{$root}{$1} = join ("", <INC> );
close INC;
$self->{'inc'}{$root}{$1};
}
else {
"Can't find file: ${$self}{'ROOT'}/$1";
}
}
#goe;

to something like $LINKS{include_dir} in links.pm ?



Subject Author Views Date
Thread Includes elsewhere Robert 3066 Feb 4, 2001, 8:04 PM
Thread Re: Includes elsewhere
pugdog 3019 Feb 4, 2001, 11:58 PM
Post Re: Includes elsewhere
Robert_B 3029 Feb 5, 2001, 5:45 AM