Ok, I've installed PmWiki. In order to skin it the way I want, I have to build a new .tmpl (template) file and a new .css file right? The CSS is like any other CSS. And as I understand it the .tmpl file is basically an HTML page with a different extension.
So I make a CSS file with all of the things I'll want. Then I make an HTML file using dreamweaver so I can see what changes are being made. When I finish it, I just change the .html to .tmpl and PmWiki displays the CSS correctly.
The rough outline is as such (just div ids and closing tags so you can see the nesting (/)= closing tag name:
<div id=body>
<div id=background>
<div id=main>
<div id=content>
<div id=pagetext>
<div id=wikitext>The editable wiki content.</div>
</div> (/pagetext)
</div> (/content)
</div> (/main)
</div> (/background)
</div> (/body)Now, the problem.
When I point the browser to www.mydomain.com/wiki/Main/Main it shows the outline of my CSS perfectly, but the wiki content is displayed directly below it. When I crack open the source to see what it looks like, lo and behold I find an unexpected addition to the .tmpl I just created:
<div id=body>
<div id=background>
<div id=main>
<div id=content>
<div id=pagetext>
<div id=wikitext>The editable wiki content.</div>
</div> (/pagetext)
</div> (/content)
</div> (/main)
</div> (/background)
</div> (/body)
<div id=wikitext>Content from my wiki page renderered as HTML code.</div>Now, if you look at my original code, I already have a <div> tag for 'wikitext'. Yet no matter what I try it always creates that code at the bottom. Other than its placement, the wiki content works fine. I can edit it, create pages, etc.
Any help would be greatly appreciated.
Last edited by krieg (2008-11-07 20:41:02)
Offline
Old topic, I know.
Your tmpl file is not quite the right format:
<html> <head> ...some header stuff... <!--HTMLHeader--> ...some more header stuff... </head> <body> ...some HTML... <!--PageText--> ...some more HTML.... <!--HTMLFooter--> </body> </html>
This is from here.
By following that basic layout for the tmpl file, and applying the CSS to the elements, you'll get the effects and looks you want.
But: You need to have the "directives" in there <!--PageText--> ... <!--/PageText--> or else it wont work. PmWiki expects to find these, and that's how it knows where to put the appropriate elements.
Offline
You are not logged in.