Loading...
 
Skip to main content

Features / Usability


importing directly into MySQL

I want to convert all my HTML files to tiki_articles. I have over 250 of them, so using the 'submit article' feature and copying & pasting 250 times sounded tedious.

I tried to get a little clever. I wrote a script that parsed the HTML files, saved the data portion, and imported that into the MySQL database. I used the table 'tiki_articles' and stuck the body portion into the field 'body' and filled out a few of the other fields (authorName, topidId...)

It looks like it populated the fields correctly using the MySQL interface, but the Tiki Wiki article section still does not recognize it.

I even manually link to
tiki-read_article.php?articleId=27
but it says "Article not found"

Maybe there is someplace else that keeps an index on the articles??? Maybe it doesn't like that I cheated?👻

I figured it out myself--if you want your article to appear, the table 'tiki_articles' must have the field 'type' set to 'Article.'