After building a plugin for WordPress to let it crosspost to the wiki, I am now trying to do the same for my version of Moveable Type (v2.661)
My current attempt is to let MT on rebuilding a page check if links to the wiki should be added to a posting or not. I want to achieve this by creating a special tag <$MTWikify$> and adding it to the main index template.
MT seems to not see the plugin, or at least I get neither a response nor an error message upon rebuilding. Scott Hanson has written about creating plugins for MT 3, but that is not my version, and I have looked at other plugins as well, and I seem to take the right steps. Nevertheless it isn’t working. If anyone of you would be able to point me to some obvious mistake or a resource that makes more sense than the hotchpotch documentation at the MT-website, I would be grateful.
You can check out the current code of the plugin in the wiki: MTPluginWiki
[UPDATE] Got the code to work now, the part that adds links to the wiki that is. (next step is working on adding content to the wiki from MT)
Hi Ton!
There’s a plugin already doing that, or something similar: WikiFormat (http://mt-plugins.org/archives/entry/wikiformat.php).
It takes your entry body and looks for wikiwords, building links to the wiki. I think it also does more advanced wiki formatting, but I’m not sure.
Hope to be of some help,
Bru
Hi Riccardo,
No that is something different, that is building links to the wiki if wikiwords are in the posting.
What I am trying to do is to be able to decide per blog entry if I want to crosspost it into the wiki. So it is about putting blog-entries in the wiki.
And then, if an entry is in the wiki, I want to add links added in the blog-entry to the wiki, to edit or see the wiki-page.
Wikifying the Blog?
Ton is playing with Wikifying the Blog?
ok, got the picture now 🙂
The idea is really interesting, it adds a lot of “integration” feeling between wiki and blog (I got a wiki too, but they feel really like two separate things right now).
About your plugin, actually MT3 does the trick, letting you define callbacks where to put extra functionality in various step of the publishing process.
In your case, you could do something like:
MT::PluginWiki->add_callback (“pre_save”, 1, $plugin, \&add_post_to_wiki());
To have the same effect on MT, I think you’ll have to play with the perl API, and write an external agent that periodically (either as a demon or via cron) goes through your posts, looks for categories, pulls the post’s body, and push it into the right wiki topic…
Wikifying blogs – an excercise in not reinventing the wheel
In the past days I followed with much interested the thread on Ton’s blog about wikifying the blog (see also here and here), since that’s a topic that really interests me, and that I already started to explore in so is this a bliki? post, a while ago (…