Export to static?

General project discussion. NOT for help questions.
jeffunk
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 16, 2006 3:17 am

Re: Export to static?

Post 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!
kevin360

Re: Export to static?

Post 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/
jeffunk
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 16, 2006 3:17 am

Re: Export to static?

Post by jeffunk »

hey Kevin,

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

Re: Export to static?

Post 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
Post Reply

Return to “General Discussion”