The Gbook module has a built in function for importing posts, but the Guestbook module doesn't have a function to export them... Now what??
In this tutorial I will show you a User Defined Tag (UDT) that exports the Guestbook posts in Gbook import format!
Create a new User Defined Tag named "export_guestbook" with the content:
Create a new page at your website with WYSIWYG editor off and do not include the page in the menu. Add to the content of the page only the tag:
Or when you have multiple guestbooks use the id parameter to select the correct guestbook, in example:
When visiting this page you will see the semicolon separated export of the Guestbook module. Simply select and copy the text, and paste it into a CSV file.
Go to the Gbook module and import the file! If you don't see the file in the file picker, change the selector to "All Files".
Warning: just to be on the safe side, make an export of the database before you actually start the import...
One down side to this method is the Guestbook module doesn't store real line breaks, so they can't be exported either. I tackled this by changing "new lines" to <br /> tags. You'll need manually change the tags for actual line breaks in the Gbook posts...
I used this method to port 100+ posts at my own website and also a few other Dutch CMSMS users used it successfully!
No comments yet...