|
PmWiki /
SkinTemplates-TalkUnderstanding old config filesThis information is deprecated, but we're still including it in the docs so you can better understand any really old local/config.php files you look at.
The original method of telling PmWiki where to find a skin used to be to set DO NOT USE $PageTemplateFmt
How to do conditional output in skin? Note that the following code, correct in a wiki page (without the "<!--markup:") doesn't work in a skin. <!--markup:(:if ! equal "{$LastModifiedBy}" "":)--> by {$LastModifiedBy} This is display everytime <!--markup:(:ifend:)--> (To continue to answered with a solution) How to properly use the in order to be able to php include a file that is hosted outside the pmwiki directory. You have to keep your php file where your pmwiki.php file is, so it can be automatically included or use the full path to your file with the "file:" skin directive. How can I insert javascript in the skin template ? When I try to do so, it seems that the Javascript is turned off. I'm missing something but I'm an amateur. I've the same problem. Somebody please tell us something about, thanks.
For that matter is there any sort of programming language you can use in a template file? Earlier I wrote some javascript to check if the page was being edited, and if so not display a sidebar, but ran into the problem above me. Are these files parsed with PHP? Or is there a way to use those embedded HTML comments mentioned in the article to accomplish what I mentioned? Is there a way to replace <!-- PageText --> with mark up? I'd like to make one skin template with conditional markup based on action instead of several templates switched by action. I could do this in <!--markup: ... This is a talk page for improving PmWiki.SkinTemplates. |