Both sides previous revisionPrevious revisionNext revision | Previous revision |
en:tutorials:minitutorial:1.2.x [2011/02/28 13:20] – ilon | en:tutorials:minitutorial:1.2.x [2012/04/15 08:37] (current) – laurent |
---|
===== Download and installation ===== | ===== Download and installation ===== |
| |
First, [[en:download:stable:1.2#developer-edition|download the "developer" edition of Jelix]]. Jelix requires at least PHP 5.2 (See [[en:manual-1.2:installation:requirements|here a detailed list of requirements]]) | First, [[en:download:stable:1.2#developer-edition|download the "developer" edition of Jelix]]. Jelix requires at least PHP 5.2 (See [[http://docs.jelix.org/en/manual-1.2/installation/requirements|here a detailed list of requirements]]) |
| |
Unpack the archive file you have downloaded, with your archiver software companion. For example, with tar (replace x with you'r version): | Unpack the archive file you have downloaded, with your archiver software companion. For example, with tar (replace x with you'r version): |
Now you should see: | Now you should see: |
| |
{{en:tutorials:minitutorial:start_page_en.png}} | {{:en:tutorials:minitutorial:start_page_en-1.2.png?500}} |
| |
If there are some error messages in the "installation check" section, fix them. | If there are some error messages in the "installation check" section, fix them. |
</code> | </code> |
| |
This "customized" response assigns to its @@P@bodyTpl@@ member the default template which will be used to generate the @@<body>@@ content of all pages : "example~main". This is the @@F@main.tpl@@ file in the example module. "example~main" is called a selector. A [[en:manual-1.2:selectors|Jelix selector]] is a shortcut to refer to a resource of a module. Here is the content of @@F@example/module/example/templates/main.tpl@@: | This "customized" response assigns to its @@P@bodyTpl@@ member the default template which will be used to generate the @@<body>@@ content of all pages : "example~main". This is the @@F@main.tpl@@ file in the example module. "example~main" is called a selector. A [[http://docs.jelix.org/en/manual-1.2/selectors|Jelix selector]] is a shortcut to refer to a resource of a module. Here is the content of @@F@example/module/example/templates/main.tpl@@: |
| |
<code html> | <code html> |
Now you see: | Now you see: |
| |
{{en:tutorials:minitutorial:minituto_2_en.png}} | {{:en:tutorials:minitutorial:minituto_2_en-1.2.png|}} |
| |
==== Your first content ==== | ==== Your first content ==== |
So here, we put "<p>Hello !</p>" in the "MAIN" template variable. We now see: | So here, we put "<p>Hello !</p>" in the "MAIN" template variable. We now see: |
| |
{{en:tutorials:minitutorial:minituto_3_en.png}} | {{:en:tutorials:minitutorial:minituto_3_en-1.2.png|}} |
| |
| |
You see now: | You see now: |
| |
{{en:tutorials:minitutorial:minituto_4_en.png}} | {{:en:tutorials:minitutorial:minituto_4_en-1.2.png|}} |
| |
===== Retrieving parameters ===== | ===== Retrieving parameters ===== |
You will see: | You will see: |
| |
{{en:tutorials:minitutorial:minituto_5_en.png}} | {{:en:tutorials:minitutorial:minituto_5_en-1.2.png|}} |
| |
| |