a. Modules and Functions

Top  Previous  Next

 

The system functionality consists of modules and functions. Using them you can have some fun with your site: change the current content of the site pages and generate a desired one.

 

Module is a set of functions grouped according to a logic or thematic connectivity. There are 8 modules in the system that can be used by the webmaster: business catalog, classifieds, membership_plan, menu, payment, publications, static content, users. For example, the 'payment' module is a set of features that allows users to make any payment with different methods of payments.

 

Function is a portion of the system code that carries some certain functionality or a system feature. Particular parameters can be passed to a function. These  parameters will be used by a function. Function displays information according to one or more specified templates.

 

As a rule, a function is assigned to a particular page and displays when this page is displayed. Function parameters can be specified in the settings of the page or in the query to the page. E.g., [Your_Site_URL] / [Page Name] ? [Parameter Name] = [Parameter Value].        

 

Webmaster can include module functions in any template using the following syntax: {module   name="[Module Name]" function="[Function Name]  [Parameter Name] = [Parameter Value]"}. E.g., {module  name="static_content"  function="static_page"  pageid="MyContent"}.

 

The alternative way to display a function is using the URL: [Your_Site_URL] / system / [Module Name] / [Function Name] ? [Parameter Name] = [Parameter Value]. E.g., to display the 'display_listing' function of the 'classifieds' module, use the URL: /system/classifieds/display_listing?listing_id=131. This function will display details of the listing where 'listing_id' = 131.