Question: If I set the wikiheader background color, free links in the header (I have Front_Page instead of FrontPage?) get overridden with a background color from wikipagelink. How do I avoid this? Thanks --Wiki:BilKleb
The idea is that this makes applying CSS styles much easier, as BODY can now get zero margins without the wiki content being flush with the browser window.
This patch is invisible unless the CSS stylesheet has set properties for the following elements:
div.wiki, div.footer { border-top: solid 1px black; }
Find the line:
$fullHtml .= &WikiToHTML($Text{'text'});
Replace this line, and the rest of the BrowsePage sub with the following:
# tarq wikidiv patch begin #$fullHtml .= &WikiToHTML($Text{'text'}); # append Wiki text enclosed in div.wiki $fullHtml .= "<div class=\"wiki\">" . &WikiToHTML($Text{'text'}) . "</div>"; # end if (($id eq $RCName) || (T($RCName) eq $id) || (T($id) eq $RCName)) { $fullHtml .= "<div class=\"RC\">" ; # opens div.RC $fullHtml .="<hr>\n" if (!&GetParam('embed', $EmbedWiki)); print $fullHtml; &DoRc(); # close div.rc and open div.footer print "</div><div class=\"footer\">"; print "<hr>\n" if (!&GetParam('embed', $EmbedWiki)); print &GetFooterText($id, $goodRevision) . "</div>"; return; } $fullHtml .= "<div class=\"footer\">"; # open div.footer $fullHtml .= "<hr>\n" if (!&GetParam('embed', $EmbedWiki)); $fullHtml .= &GetFooterText($id, $goodRevision) . "</div>"; # close div.footer print $fullHtml; return if ($showDiff || ($revision ne '')); # Don't cache special version &UpdateHtmlCache($id, $fullHtml) if $UseCache; # tarq wikidiv patch end
Remember to close the sub's } !!
print &GetHeader('', &QuoteHtml($header), '') ;with
# tarq wikidiv patch: open div.edit print &GetHeader('', &QuoteHtml($header), '') . "<div class=\"edit\">" ;and replace
print &GetMinimumFooter();with
# tarq wikidiv patch print "</div>" . &GetMinimumFooter();