Closed massimopinto closed 8 years ago
I understand there was not traffic on this topic. But is there a solution anywhere?
Hey @massimopinto! Looks like the comment didn't post properly for the stale label.
The TextPattern import code is all here. It doesn't look like it implements post categories. Want to take a crack at it?
That would be good fun. I will give it a try as soon as I complete another task. Cheers Massimo
Massimo Pinto ENEA, C.R. Casaccia Department of Fusion and Technology for Nuclear Safety and Security National Institute of Ionizing Radiation Metrology Standards for protection-level dosimetry unit
2016-07-07 2:50 GMT+02:00 Parker Moore notifications@github.com:
Hey @massimopinto https://github.com/massimopinto! Looks like the comment didn't post properly for the stale label.
The TextPattern import code is all here https://github.com/jekyll/jekyll-import/blob/master/lib/jekyll-import/importers/textpattern.rb. It doesn't look like it implements post categories. Want to take a crack at it?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jekyll/jekyll-import/issues/250#issuecomment-230949857, or mute the thread https://github.com/notifications/unsubscribe/APMDEdFjMg1MIlm78Kd3suo_Zx7qbotjks5qTE1ngaJpZM4IXDlH .
HI @parkr, I am going back to this old issue: I took a look at the code and it does not look that hard to tackle, to me. However, I am not sure what is the best way to proceed when importing comments that are associated to a blog post. Should they be inserted at the bottom of the main text, with a static format? For jekyll sites maintained on GitHub Pages, I understand that one way to allow comments is to divert them to an external service such as Disqus. Addendum: Looks as if this has been discussed before for other importers including WordPress and Moveable Type: https://github.com/mpalmer/jekyll-static-comments/ Yours Massimo
Should they be inserted at the bottom of the main text, with a static format?
For historical comments, this is a possibility. Alternatively, create a data file for each post like _data/2016-01-02-my-old-post.yml
which contains an array of data you can pull in. Then in the layout or in an include, do something like:
{% if site.data[post.id] %}
{% for comment in site.data[post.id] %}
On {{ comment.date | date_to_sentence_string }}, {{ comment.author}} said:
{{ comment.body }}
{% endfor %}
{% endif %}
Hello,
I just imported my old texpattern-based blog posts, and it was rather exciting to see it all come back to life after many years sitting into a database. I am curious about the import process of database tables other than textpattern, such as the category table, which is linked to the Category variable of the textpattern table. Is this open for development or it's a matter of (me) studying how to get this going? Yours, Massimo