New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordpress - Add Site Prefix #203

Merged
merged 3 commits into from Jun 30, 2015

Conversation

Projects
None yet
3 participants
@dirkkelly
Contributor

dirkkelly commented Jun 24, 2015

I came across #185 when trying to import a multi site installation.

To give some background, the way that this installation has it configured, the sites are each stored as wp_x_ prefixes.

screen shot 2015-06-24 at 12 07 44 am

In order to support this I have added the site-prefix option which is prepended before all calls to these specific tables.

Import site wp_2_

ruby -rubygems -e 'require "jekyll-import";
  JekyllImport::Importers::WordPress.run({
    "dbname"      => "blogname",
    "user"        => "username",
    "password"    => "password",
    "host"        => "blog.com",
    "site_prefix" => "2_"
  })'
Show outdated Hide outdated lib/jekyll-import/importers/wordpress.rb
@@ -191,7 +198,6 @@ def self.process_post(post, db, options, page_name_list)
excerpt = content[0...more_index]
end
if options[:more_anchor]
more_link = "more"

This comment has been minimized.

@dirkkelly

dirkkelly Jun 24, 2015

Contributor

vim pointed out this variable wasn't being used.

@dirkkelly

dirkkelly Jun 24, 2015

Contributor

vim pointed out this variable wasn't being used.

@dirkkelly

This comment has been minimized.

Show comment
Hide comment
@dirkkelly

dirkkelly Jun 24, 2015

Contributor

I have successfully used this on 3.4.2, sorry I don't have a more recent installation.

Contributor

dirkkelly commented Jun 24, 2015

I have successfully used this on 3.4.2, sorry I don't have a more recent installation.

@dirkkelly dirkkelly referenced this pull request Jun 24, 2015

Closed

Wordpress Multisite #185

Show outdated Hide outdated lib/jekyll-import/importers/wordpress.rb
@@ -191,7 +198,6 @@ def self.process_post(post, db, options, page_name_list)
excerpt = content[0...more_index]
end
if options[:more_anchor]
more_link = "more"
content.sub!(/<!-- *more *-->/,
"<a id=\"more\"></a>" +
"<a id=\"more-#{post[:id]}\"></a>")

This comment has been minimized.

@parkr

parkr Jun 24, 2015

Member

I think they wanted it here ^^

@parkr

parkr Jun 24, 2015

Member

I think they wanted it here ^^

@parkr

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Jun 24, 2015

Member

Thanks for the patch! Just one comment. :)

Member

parkr commented Jun 24, 2015

Thanks for the patch! Just one comment. :)

@dirkkelly

This comment has been minimized.

Show comment
Hide comment
@dirkkelly

dirkkelly Jun 29, 2015

Contributor

Thanks @parkr, I've returned that line

Contributor

dirkkelly commented Jun 29, 2015

Thanks @parkr, I've returned that line

@parkr

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Jun 29, 2015

Member

Great! Thanks, @dirkkelly. One more thing – can you please add this option to the documentation page for this importer?

Member

parkr commented Jun 29, 2015

Great! Thanks, @dirkkelly. One more thing – can you please add this option to the documentation page for this importer?

@dirkkelly

This comment has been minimized.

Show comment
Hide comment
@dirkkelly

dirkkelly Jun 30, 2015

Contributor

@parkr I think I already have then? Sorry if I'm misunderstanding the request.

https://github.com/jekyll/jekyll-import/pull/203/files#diff-6ffabbc9b04e59e6903b73835e6b068bR29

Contributor

dirkkelly commented Jun 30, 2015

@parkr I think I already have then? Sorry if I'm misunderstanding the request.

https://github.com/jekyll/jekyll-import/pull/203/files#diff-6ffabbc9b04e59e6903b73835e6b068bR29

@parkr

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Jun 30, 2015

Member

@dirkkelly Ah! Sorry about that. I was convinced we setup our documentation differently and I read that incorrectly. Thanks.

Member

parkr commented Jun 30, 2015

@dirkkelly Ah! Sorry about that. I was convinced we setup our documentation differently and I read that incorrectly. Thanks.

parkr added a commit that referenced this pull request Jun 30, 2015

@parkr parkr merged commit 61fdfd4 into jekyll:master Jun 30, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

parkr added a commit that referenced this pull request Jun 30, 2015

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.