Modules
How can I use the new Module API?
First, you have to checkout Falt4 SVN, since the api is not included in the current release, but it will be included in Falt4 Final.
Well, it's very easy. You can open up the Folder "/modules/testmod/" and the following files "admin.php", "index.php", "conf.php". This are the three basic files, which are basically used in a module. The only file which is really needed however is "index.php", which is the file that will be loaded in the frontend.
So for a quickoverview:
admin.php: The Main Module Administration File ( If you click on the Module
)
conf.php: The File which is needed for the Configuration of the Module ( if you click on Edit
)
index.php: If you call the Module in the Frontend ( index.php?handler=modules&module=yourmodule )
So far so good. Now have a look at the file admin.php. All we see there are some methodcalls for the language class and this is all we need to talk about. :)
the code...
...and the result
Tags: templates
Related entries:
- Which replacementtags exists and what are they used for ?
- Give me some basic content Template examples
- prebuilt Templateset, -Templatepackage ? How to get and install them ?
- What are link types in the navigation for ?
- How can I choose a custom template for every Module?
Last update: 2007-07-10 17:49
Author: Ramon Ott
Revision: 1.12
You cannot comment on this entry