[Pmwiki-users] TIP: New Templates + WYSIWYG Editors
Steven Leite
steven_leite
Tue Feb 24 04:20:20 CST 2004
Hello everyone,
Following up on a previous query, and somebody's suggestion, I was able to make it possible to edit template pages with my favorite wysiwyg editor so they work correctly on my server after they're uploaded (eg. pathing information for css and images files doesn't get broken). I just thought I'd share:
{{Attach:PmWiki.Templates}}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This Tip applies to people in the following situation:
- you edit your templates locally on your computer with a wysiwyg editor
- once completed, you upload your template to a remote server
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Assuming you have a directory structure similar to this on your remote server:
/home/public_html/pmwiki/pub/skins/your_skin
and something like this on your local system:
c:/My Documents/My Webs/pmwiki/pub/skins/myskin
And assume for example you have these four files as part of your local template:
mytemplate.htm (located in myskin/ folder)
image1.gif (located in myskin/images/ folder)
image2.gif (located in myskin/images/ folder)
mycss.css (located in myskin/css/ folder
Here's how you should save the files on your local system so that they will still function when you upload them to your remote server:
MyWebs/pmwiki/pub/skins/myskin/mytemplate.htm
MyWebs/pmwiki/pub/skins/myskin/pub/skins/myskin/images/image1.gif
MyWebs/pmwiki/pub/skins/myskin/pub/skins/myskin/images/image2.gif
MyWebs/pmwiki/pub/skins/myskin/pub/skins/myskin/css/mycss.css
On your remote server, put the files in their normal directories like this:
/home/public_html/pmwiki/pub/skins/myskin/my_template.htm
/home/public_html/pmwiki/pub/skins/myskin/images/image1.gif
/home/public_html/pmwiki/pub/skins/myskin/images/image2.gif
/home/public_html/pmwiki/pub/skins/myskin/css/mycss.css
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{Attach.}}
-- S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://contra.vosn.net/pipermail/pmwiki-users_pmichaud.com/attachments/20040224/2fbdc122/attachment.htm
More information about the pmwiki-users
mailing list