Hi,
I would like to know if it is possible to export static content that is created in drupal (such as images, "about us" static text etc) to xhtmls so I will be able to include it later in a website that is not on drupal. if it is possible, can you please explain how or refer me to the relevent documentation. (I saw in "http://aldibier.com/blog/articulo/comparaci%C3%B3n-de-joomla-drupal-y-li..." - a comparision between 3 CMS providers - that static content export is not available in drupal only in liferay - is that correct?)
Thanks!

Comments

dman’s picture

Browser: save-as ... done!
wget
CURL
...etc

Or you have boost.module which does that entirely for you.
Drupal produces XHTML, that's what it (and all CMSs) does. If you want to save it somewhere, save it. Easy! :-)

If you want the whole lot as a static copy, follow the instructions here: Creating a static archive of a Drupal site

Of course, if you want to take the css and images with you, you'll need to set up a decent mirror environment.

rinta’s picture

Thanks Dan for your answer.
Does using the tools you mentioned mean that I will first have to publish the content on a drupal site? meaning I will have to create the content (picture for example) and then attach it to a page on a drupal site, and then export the whole page? Can I avoid having to create 2 sites (one drupal and one my site)?
Can I use drupal only to create the content without having to place it on the site? can I export only the content? (I can not use "save as" on the browser since I am talking about a lot of content)
What exactly does the boost.module do (can you please refer me to documentation)?
What I'm looking for is a command / set of actions that extract the content that is created in drupal (content - seperate content items not a whole site page that is combined of many text areas and images ) so I will be able to use it in my site.
I'm sorry for all this tones of questions :)
I really appriciate your response.

dman’s picture

If you want to export content from Drupal, then yes, you have to put the content into Drupal somehow in the first place.
Drupal is a CMS, designed to serve websites, or subsites. It's not an editor, and it doesn't work on static files.

If you want just the content, without the surrounding XHTML, then use one of the dozens of export modules that can export into whatever format you want. Note that 'just' the content is not valid XHTML, although it may be an html fragment.

The documentation for boost is in the usual place. That's a performance tool more than an export tool. But one thing it does is create a static copy of all your pages as it does so.

A lot depends on why you want to manage things in your static site, and why - if you prefer your static site - would you want to get Drupal involved?
There are many solutions to similar things, but it depends on the actual problem.