[Pmwiki-users] Re: Part II: Notes while setting up the beta site

Christian Ridderström chr
Mon Feb 16 10:48:09 CST 2004


A tip for helping you to debug your layout/stylesheets.

Below are two tips for making it easier to make sense of the combination
of php-code in stdlayout.php together with various stylesheets:

The second tip assumes you're using Opera as your browser, but similar
functions might be available in other browsers.

* (Temporarily) modify the code to produce simpler output, e.g. this code:
	$PageLayoutFmt['wikihead']='search form';
	$PageLayoutFmt['wikicmds']='wikicmds<br>...<br>wikicmds';
	$PageLayoutFmt['wikititle']="    <div class='pagegroup'>group</div>
		<div class='pagetitle'>pagetitle</div>";
  will produce less HTML-code. (It would be nice to have a special "debug"
  or "layout" mode in pmwiki for this).


* Go to Opera's menu: View->Style and check the option
	"Debug with outline"
  which will show you the outline of e.g. the DIV-elements. This is really 
  useful when you're fiddling with positions, margins and paddings etc.

Here's a screenshot of how a simplified page can look:
    http://www.md.kth.se/~chr/pmwiki/screenshot/lyx-dbg-with-outline.png

/Christian

-- 
Christian Ridderstr?m                           http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list