Page 2 of 2

Re: Export to static?

Posted: Tue Oct 17, 2006 7:33 pm
by jeffunk
wget --mirror –w 2 –p --html-extension –-convert-links http://www.yourdomain.com
I tried this and it worked pretty good, but... I had some difficulties getting the stylesheet to work, so for anyone else who sees a bare bonesy website, without all the stylings, the thing to do is to find some editor that will let you edit multiple files (on linux regexxer is the one that I'm using.  So what you have to do is find the stylesheet file something like

sylesheet.php?templateid=4

and replace it with something like stylesheet.css

then use your multi file editor and replace all the references in all the files to sylesheet.php?templateid=4 with stylesheet.css

That makes it all work for me,  alarach I reckon that your missing logo might be fixed as well!!

Good luck!

Re: Export to static?

Posted: Tue Oct 17, 2006 9:50 pm
by kevin360
Use httrack instead of wget and it works perfectly, that's what I'm using to convert a simple cmsms website into a static version.  Here's what I run:

httrack -s0 -N1003 http://www.exmple.com/

Re: Export to static?

Posted: Tue Oct 17, 2006 10:45 pm
by jeffunk
hey Kevin,

Thanks for the tip!! That's definitely the most painless way to do this!!  Worked perfectly.
Jeff

Re: Export to static?

Posted: Wed Oct 18, 2006 3:38 pm
by Pierre M.
Yes, right now wget/httrack does it.
Someday the static export feature may be a bonus in core via Smarty tuning.
See http://forum.cmsmadesimple.org/index.ph ... 678.0.html

PM