*** bin/view Mon Dec 3 18:11:20 2001 --- bin/view.new Tue Dec 17 16:54:02 2002 *************** *** 144,149 **** --- 144,151 ---- my $vtext = "
"; + # suppose the CSS has a declaration: .invisibleInNormal {display:none} + $tmpl =~ s/[.]invisibleInNormal/.invisibleInRaw/gos; if( $viewRaw !~ /debug/i ) { $text =~ s/%META[\:A-Z]*{[^\}]*}%[\n\r]*//gos; } *************** *** 220,227 **** # remove the NOINDEX meta tag $tmpl =~ s/]*>//goi; } else { $tmpl =~ s/%EDITTOPIC%/Create<\/b><\/a>/go; ! } $tmpl =~ s/%REVTITLE%//go; $tmpl =~ s/%REVARG%//go; --- 222,244 ---- # remove the NOINDEX meta tag $tmpl =~ s/]*>//goi; } else { + if ( &TWiki::Store::_readTemplateFile("oopscreate", $skin )) { + my $url = &TWiki::getOopsUrl( $webName, $topic, "oopscreate" ); + my $warndisplay; + # if a template oopscreate exists, use it and set the vars in it: + # %PARAM1% to the intended topic name + # %PARAM2% to none if the topic is a wiki topic, + # (use as a CSS class in the template) + if( (&TWiki::isWikiName($topic)) || ($topic =~ /^[A-Z]{3,}$/ ) ) { + $warndisplay = "none"; + } else { + $warndisplay = "warn"; + } + TWiki::redirect( $query, "$url¶m1=$topic¶m2=$warndisplay"); + return; + } else { $tmpl =~ s/%EDITTOPIC%/Create<\/b><\/a>/go; ! } } $tmpl =~ s/%REVTITLE%//go; $tmpl =~ s/%REVARG%//go;