Forums / Cotonti / Extensions / Support / [Help] Craigslist

I need some pointers on how to create some parts of a craigslist plugin.

GHengeveld
#26636 2010-10-14 01:27
Depends on what you're trying to achieve. Usually you would use only one instance of XTemplate per plugin file. So if your plugin exists of multiple parts/pages, each with its own template file, its best to put each part in a separate file and include the file in your pluginname.php. Here's an example:



The courses.php file only contains a switch() statement which decides what file to include from the 'inc' folder. The files in 'inc' contain code similar to what you posted above.

There's no use in looking to download this plugin, it's something I built for a client, so it's private.