Here are some sctipts that you can use to migrate your articles from Wordpress database to your Voog site.
Edit wordpress_assets_downloader.rb file and setup correct parameters.
Create a folder wp_assets
| # This script download all assets linked in articles in Joomla database. | |
| # | |
| # It finds all asset url in article contents (stored in "jos_content" table). And downloads them. | |
| # | |
| # NB! Modify "Configuration" section variables before running this script. | |
| # | |
| # Run this script to see instructions: | |
| # | |
| # ruby joomla_assets_downloader.rb help | |
| # | 
Here are some sctipts that you can use to migrate your articles from Wordpress database to your Voog site.
Edit wordpress_assets_downloader.rb file and setup correct parameters.
Create a folder wp_assets
| # This script uploads files to your Voog site over API. | |
| # | |
| # Run this script: | |
| # | |
| # ruby voog_assets_uploader.rb | |
| # | |
| # Required gems: | |
| # gem install voog_api) | |
| # gem install mime-types | |
| # | 
| #!/usr/bin/env ruby | |
| # Script to copy Voog (www.voog.com) page content areas and/or elements between pages. | |
| # It uses functions from Voog migrator script https://gist.github.com/tanelj/a64d58185551976874d5, that should be in same folder. | |
| require_relative 'voog_migrator' | |
| def copy_articles!(mappings) | |
| mappings.each do |k, v| | |
| source_page = @migrator.source.page_by_path(k) | |
| target_page = @migrator.target.page_by_path(v) | 
| #!/usr/bin/env ruby | |
| # voog_migrator.rb | |
| # | |
| # Small script to migrate content between websites that are build with Voog CMS. | |
| # This tool is using Ruby client of the Voog API: https://github.com/Voog/voog.rb. | |
| # | |
| # Read more about Voog API http://www.voog.com/developers/api. | |
| # This tools allows to analyze source and target host (default action when running this script without any parameters) | 
| # gem 'activerecord', '4.0.3' | |
| gem 'activerecord', '4.1.0.rc1' | |
| # gem 'rails', github: 'rails/rails', branch: '4-1-stable' | |
| require 'active_record' | |
| require 'minitest/autorun' | |
| require 'logger' | |
| # Ensure backward compatibility with Minitest 4 | |
| Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) |