Odessa Content Sharing  





  Register now   Forgot password ?

System structure and Templates

els Odessa Content Sharing : System structure and Templates

Module management

All module items are storing in table "els)modules"

How to add a new menu item   ?

To add a new menu item you need to add new row into the "els_modules" table . For example , you want to add new menu "Reports" under the menu "My profile".

Insert one row into modules table as below .

insert into els_modules (module_name,file_name,parent_id,priority, access_key, can_be_default) values('Reports', 'custom_report_file', 14, 3, 'myreports', 0)

We are passing "14" as parent_id , because the id from My profile menu is 14.

After   inserting this rows , you need to add this menu item to "language" files . To do this , open "english.php" and all other language files from "lang" folder , and add this changes as below .

$MODULES['Reports']='Reports example';

After you have created new menu item in "els_modules" table you need to define access list for this menu item , to display it in "Users"->"Access Management" .

After that , you need to create 2 files "reports_file.php" and reports_file_temp.php" and write you php codes there and put it into the modules/custom folder .

To check having access to "Reports" menu , you can use "menu" function of "access" class. As a first parameter you need to pass "access_key" column of "modules" table . Here is an example :

access::menu("branches",false);

Will return true if has access . Pass "true" as a second parameter if you want to redirect to login page if user doesn't have access.

By default there are some system folders inside the "modules" folder

CMS - All files about Page categories and pages are storing in this folder
UM - All files about user management are storing in this folder
RATES - All files about rating are storing in this folder
SYSTEM - All system files are storing in this folder .

You should put your custom files into the CUSTOM folder

System takes "module" key from query string and loads file from the defined folder .

For example if you have index.php?module=custom_contacts string , then system will load contacs.php and contacts_tmp.php inside custom folder .

 

Templates

If you want to change the design of system , you can add your own template and change the design .

1) Copy "lite" folder that inside "themes" folder and rename it to any other template .

2) Modify files inside newly created folder .

3) Open config.php file and change $SITE_TEMPLATE variable to newly created folder , and you will have your web site with another design


Installing
els Odessa Content Sharing : Installing

Categories : Create Category
els Odessa Content Sharing : Categories : Create Category

Categories : Manage categories
els Odessa Content Sharing : Categories : Manage categories

Pages : Manage pages
els Odessa Content Sharing : Pages : Manage pages

Pages : Create new page
els Odessa Content Sharing : Pages : Create new page

Pages : Add files , Add thumbnail, Add video
els Odessa Content Sharing : Pages : Add files , Add thumbnail, Add video

Menu management
els Odessa Content Sharing : Menu Management

Users Management : Roles
els Odessa Content Sharing : Users Management : Roles

Users Management : User groups
els Odessa Content Sharing : Users Management : User groups

Users Management : Users
els Odessa Content Sharing : Users Management : Users

Ratings
els Odessa Content Sharing : Ratings

Clouds
els Odessa Content Sharing : Clouds

Mail configuration
els Odessa Content Sharing : Mail configuration

Configuration on config.php file
els Odessa Content Sharing : Configuration on config.php file

Localization
els Odessa Content Sharing : Localization

System structure and Templates
els Odessa Content Sharing : System structure and Templates

Receiving payments with Paypal
els Odessa Content Sharing : Receiving payments with Paypal