Page 1 of 1

Need help how to install a module

Posted: Thu Dec 06, 2007 4:13 am
by NewToCMS
Hi,
I'm a CMS newbie so tried to read some thread and docs but still lost...
Ok, just installed CMS and it is working.
Now how can I add image module(?) (I found some like image rotator, random image; not sure which one is the best...)? I notice that those "modules" have only a php file.  Where and how should I upload it?  And I also read about "tag".??

How can I simply create a box, like the "news" in default CMS theme, where I can show some images?

Thanks,

Re: Need help how to install a module

Posted: Thu Dec 06, 2007 4:45 am
by tophers
Your question has two parts (or possibly three):
NewToCMS wrote: Now how can I add image module(?) (I found some like image rotator, random image; not sure which one is the best...)? I notice that those "modules" have only a php file.  Where and how should I upload it?  And I also read about "tag".??
The functions you are quoting are actually {tags}, not modules. To use them, unzip the files and FTP it into the Plugins directory. To  call the function, navigate to Extensions > Tags, and click on the tag you have just installed (image_rotator, for instance). The Help page will usually show you an example of how to call the tag (in this example it would be {image_rotator}). Simply place this code into your template, or into a Content Block to call the function.
NewToCMS wrote:How can I simply create a box, like the "news" in default CMS theme, where I can show some images?
This is more a question for Layout & Design, but if you use a template with a sidebar, for example, you could place the tag there.

If you are interested in installing a Module, you can either navigate to Extensions > Modules, and Install module via XML file, or if it is a .zip file, then unzip it and FTP it into the Modules directory.

Re: Need help how to install a module

Posted: Fri Dec 07, 2007 3:05 pm
by NewToCMS
Thank you!

How to install parameter inside a tag?

For example: random image (if I want for example "uploads/images/random" directory?

tag: {random_image}

    * (optional) folder - Folder to pick images from (default is "uploads/images/").

Re: Need help how to install a module

Posted: Fri Dec 07, 2007 3:24 pm
by kermit
the format for calling a plugin (also udt, user-defined-tags) or module is:

{pluginname param1='value' param2='value'}

or

{cms_module module='modulename' param1='value' param2='value'}

some modules have a shortcut, for instance:

{menu} is the same as {cms_module module='menumanager'}

and you can add parameters to it as well, such as:

{menu template='minimal_menu.tpl' start_level='1' number_of_levels='2'}