Re: dump all content in a Word document (or a text file)
Posted: Wed Jan 27, 2010 9:39 pm
OK... I have a procedure for you to dump all your content into a single page so you can copy and paste into Word.
Create a User Defined Tag called "content_dump". Put the following in it:
Create a page called "word".. Go to the options and turn off the menu so it doesn't change your menus. Put the following in this page.
here's my test: http://www.thefcff.com/?page=word
Now you can copy and paste it into a word document.
NOTE: This won't process any smarty you might have on a page. If you need news as well, that's another procedure.
Create a User Defined Tag called "content_dump". Put the following in it:
Code: Select all
global $gCms;
$cntnt = $gCms->getContentOperations();
foreach ($cntnt->GetAllContent() as $page) {
echo '<h1>' . $page->mName . '</h1>';
$page_data = $cntnt->LoadContentFromAlias($page->mAlias);
echo($page_data->mProperties->mPropertyValues['content_en']);
echo "<br><br>";
}
Code: Select all
{content_dump}
Now you can copy and paste it into a word document.
NOTE: This won't process any smarty you might have on a page. If you need news as well, that's another procedure.