Converting LiquidWiki to 5.0 (and maybe fixing a few gotchas)... (Part 3)

Now, a rough guide to getting started with 4.7 and the LiquidWiki is as follows:

1) Install the module
2) Add a new input format such as "wiki", making sure that the Liquid MediaWiki Filter is checked, and assign all the role types that should be able to input wiki-style content
3) Create a wiki page
4) Set the default content type to wiki page in the settings at /admin/liquid/settings
5) Set the default home page to your first wiki page
6) Start building

Now, this is a great theory... however, I suspect we're going to have a little bit of trouble with this particular formula...

We're going to assume that step 1 is done for now. All of the files exists, the database is inserted, and we can reach the Liquid settings in the admin. So let's jump to item number two.

Create a wiki input format. Here's where we run into our first problem: No Liquid MediaWiki Filter. Remember the input file we created at the beginning? A major change in 5.0 is that .module files are no longer available by selection for activation without a .info. There are two more .modules in the file, so we have to go ahead and create those. While we're at it, let's use the new nifty grouping object by defining Package in all three files.

liquid.info
name = LiquidWiki Project
description = Allows for the creation of wiki within Drupal
package = Liquid Wiki

version = "HEAD"
project = "liquid"

liquid_filters.info
name = LiquidWiki Filters
description = Creates a Liquid Wiki Filter
package = Liquid Wiki

version = "HEAD"
project = "liquid"

liquid_wikipage.info
name = LiquidWiki Wikipage
description = Wiki page content type
package = Liquid Wiki

version = "HEAD"
project = "liquid"

After creating these 3 files, upload them to your webserver (overwriting liquid.info). Now you can proceed through the above steps as intended in 4.0!

Another brief change that I made was to liquid_wikipage_node_info(). Replace the entirety of the function with the following code:

function liquid_wikipage_node_info() {
return array('wikipage' => array('name' => t('Wiki page'),
'description' => t('A wiki page for insertion into a wiki.'),
'module' => 'liquid_wikipage',
));
}

Download the code so far:
Click here.