Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Bug reports and fixes
.
Home
Help
Login
Register
Elxis CMS Forum
»
Community
»
Elxis Community
(Moderator:
Ivan Trebješanin
) »
How to create Sample data packages
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to create Sample data packages (Read 8601 times)
mannes
Newbie
Posts: 14
How to create Sample data packages
«
on:
April 07, 2008, 17:59:32 »
Hi,
I need some tips to create a sample data package. Is there some written info out there?
Regards
mannes
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: How to create Sample data packages
«
Reply #1 on:
April 07, 2008, 18:54:12 »
There is no documentation on this. You should examine how the default data package works.
Here is a very short how-to:
1.
Pick a name for your sample data package without spaces and strange symbols (i.e. personalsite, tourism_site, etc). Let's say you picked "mysite" as the name of your package.
2.
Create a mysite.php file inside
installation/schema/
folder
Inside this file you should place at least 3 functions having names:
//runs exactly after installing sample data
function mysite() {}
//displays a preview of the package
function mysite_preview() {}
//runs at the end, when sample data and multilingual menus have been created
function mysite_finalize() {}
Add inside these functions any code you like.
3.
Create a mysite.sql file and put inside it the sql queries you want to be executed during installation. These are the sample data main queries.
4.
Create a /installation/schema/mysite/ folder and place inside it all the other required files as well as the multi-lingual sql queries for the multi-lingual menus (optional).
For more see how the
default_data
package is built.
«
Last Edit: April 07, 2008, 18:59:01 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
mannes
Newbie
Posts: 14
Re: How to create Sample data packages
«
Reply #2 on:
April 07, 2008, 21:37:51 »
thanks, that helps
mannes
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Community
»
Elxis Community
(Moderator:
Ivan Trebješanin
) »
How to create Sample data packages