Where is the help text for a plugin located
Posted: Thu Aug 07, 2008 10:28 am
Hello,
I've had CMSMS for a day or so, and have been looking through some of the code in the plugins folder to get a feel for how hard or easy it would be to put together a simple plugin. I'm not trying to do anything special, this is just a learning exercise, so I don't want to use a user defined tag in this instance.
This is my approach:
1. copy existing plugin
2. change name and strip out functionallity
3. add some random text to display, so I know it's working
4. add extra stuff from there
What I don't understand is where the nice help text you get when you click the help link in the admin area comes from.
For example function.ImageGallery.php has the code
but I can't find how lang('help_function_imagegallery') becomes the help text, unless it's hidden in the database somewhere.
In which case how do you make the help for your plugin available, if and when you choose to release it.
Thanks in advance,
I've had CMSMS for a day or so, and have been looking through some of the code in the plugins folder to get a feel for how hard or easy it would be to put together a simple plugin. I'm not trying to do anything special, this is just a learning exercise, so I don't want to use a user defined tag in this instance.
This is my approach:
1. copy existing plugin
2. change name and strip out functionallity
3. add some random text to display, so I know it's working
4. add extra stuff from there
What I don't understand is where the nice help text you get when you click the help link in the admin area comes from.
For example function.ImageGallery.php has the code
Code: Select all
function smarty_cms_help_function_ImageGallery() {
echo lang('help_function_imagegallery');
}
In which case how do you make the help for your plugin available, if and when you choose to release it.
Thanks in advance,