From: barry <sla...@i1...> - 2001-11-09 06:38:19
|
in sub header : why are the lines: my $sectionInfo = getSection($form->{section}); slashDisplay('header', {section=> $sectionInfo}, ); not just slashDisplay('header', $section, ); The reason I ask is because I have added some section-specific stuff in the header template. This Slash::header function is called in slashd when it created slashhead,inc for each section. I wonder if this is a bug that was never caught because the default template 'header;misc;default' had no section-specific issues? Thanks! Barry |
From: barry <sla...@i1...> - 2001-11-09 07:01:40
|
My header;misc;default template now has these lines at the top: __template__ [% my_section = section.section %] [% UNLESS my_section %] [% my_section = "home" %] [% END %] </HEAD> and later: [% INCLUDE banner0 this_section = my_section %] the problem is that when this section gets called from slashd to create [section]/slashhead.inc, my_section always = "home", meaning section.section is empty. I really want to have my_section = [section] as it does when the page is generated by index.pl. Any tips on getting the section name in the template when it is called by slashd? Thanks! Barry At 10:37 PM 11/8/2001 -0800, barry wrote: >in sub header : > >why are the lines: > my $sectionInfo = getSection($form->{section}); > slashDisplay('header', > {section=> $sectionInfo}, > ); > >not just > > slashDisplay('header', > $section, > ); > >The reason I ask is because I have added some section-specific stuff in >the header template. This Slash::header function is called in slashd when >it created slashhead,inc for each section. I wonder if this is a bug that >was never caught because the default template 'header;misc;default' had >no section-specific issues? > > >Thanks! > >Barry > > >_______________________________________________ >Slashcode-general mailing list >Sla...@li... >https://lists.sourceforge.net/lists/listinfo/slashcode-general |