NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms-system:article:contentparts:recipes [2009/04/25 08:06] 127.0.0.1 external edit |
english:phpwcms-system:article:contentparts:recipes [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Original: [[http://www.milkana.de/rezepte.phtml]] | Original: [[http://www.milkana.de/rezepte.phtml]] | ||
| - | Content Typ: 26 [[:deutsch:technik:aufruf-interner-funktionen:content_part_typen|(siehe auch)]] | + | Content Type: 26 [[:english/technics/internal-function-call/content-part-types|(have a look)]] |
| - | Docu: [[http://www.phpwcms-docu.de/content_part_kochrezept.phtml]] | + | Docu: -- |
| Forum: [[http://forum.phpwcms.org/viewtopic.php?p=112655#p112655]] | Forum: [[http://forum.phpwcms.org/viewtopic.php?p=112655#p112655]] | ||
| Line 15: | Line 15: | ||
| Download: {{:deutsch:phpwcms-system:artikel:contentparts:recipes01.zip|Komplettes Set: css, php, tmpl}} | Download: {{:deutsch:phpwcms-system:artikel:contentparts:recipes01.zip|Komplettes Set: css, php, tmpl}} | ||
| - | **Bedingung:** \\ | + | **Condition:** \\ |
| - | Auskommentieren oder löschen der alten recipes.php in template/inc_script/frontend_render/ \\ | + | Comment out or delete the old recipes.php in template/inc_script/frontend_render/ \\ |
| - | Suche-Template search01.html liegt in template/inc_cntpart/recipe/search/ \\ | + | Search-template search01.html you will found in template/inc_cntpart/recipe/search/ \\ |
| ---- | ---- | ||
| \\ | \\ | ||
| - | Mit Hilfe dieses CPs können recht einfach Rezepte dargestellt werden. | ||
| - | Grundsätzlich gilt, pro Rezept **ein Artikel** mit dem CP **Kochrezepte/recipes**. (Artikelliste in einer Ebene). | ||
| - | **Die Suche** wird mit den Tag ##**{RECIPE:}**## innerhalb eines z.B. Html CP angestoßen. Die Suche verarbeitet alle im System vorhandenen CPs **Kochrezepte/recipes**. | + | With the help of this CPs it is quite simple to represent recipes. |
| - | ##**{RECIPE:LOCALE|.....}**## ist ein systemspezifischer Parameter für die Laufzeitumgebung. -> Genauere Infos siehe: [[http://de.php.net/manual/de/function.setlocale.php]] | + | Generally, please use **one article** per recipe, with the **CP recipes**. (Article list in one level). |
| - | Im Regelfall reicht es, ##**{RECIPE:}**## zu verwenden. | + | |
| + | The search is started with the tag {RECIPES:} within e.g. a HTML CP. The search process all existing CPs **recipes** in the system. | ||
| + | |||
| + | ##**{RECIPES:LOCALE|.....}**## is a system-specific parameter for the run time environment. -> Have a look for more exact informations: [[http://de.php.net/manual/de/function.setlocale.php]] | ||
| + | |||
| + | As a rule it is enough to use ##**{RECIPES:}**## . | ||
| Line 38: | Line 41: | ||
| {{ :deutsch:phpwcms-system:artikel:contentparts:cp_recipe.gif?350|Backend: CP Rezepte }} | {{ :deutsch:phpwcms-system:artikel:contentparts:cp_recipe.gif?350|Backend: CP Rezepte }} | ||
| + | ~~CLEARFLOAT~~ | ||
| ==== Installation: ==== | ==== Installation: ==== | ||
| - | Die Ebene auf der das Suchformular liegt, sollte "rezepte" heißen. Wenn das nicht der Fall ist, muss die Datei ##\template\inc_cntpart\recipe\search\search01.html## geändert werden. | + | The level on that the search form lies should prescriptions be called "rezepte". If that is not the case, the file ##\template\inc_cntpart\recipe\search\search01.html## must be changed. |
| + | |||
| + | Assumption: The looking for category //(where the form at home is)//, is called rezepte-suchen) \\ | ||
| - | Annahme: Die suchende Kategorie (dort wo das Formular zuhause ist, heißt rezepte-suchen \\ | + | - Then please all //(there is 2 pieces in line 48 and line 62)// |
| - | - Dann bitte alle (sind 2 Stück Zeile 48 und Zeile 62) | + | |
| <code html><input name="rezepte" value="" type="hidden"></code> | <code html><input name="rezepte" value="" type="hidden"></code> | ||
| - | ersetzen mit | + | replace with |
| <code html><input name="rezepte-suchen" value="" type="hidden"></code> | <code html><input name="rezepte-suchen" value="" type="hidden"></code> | ||
| \\ | \\ | ||
| - | Eine andere Möglichkeit ist die Installation von [[:deutsch:ersetzer_rts:frontend_render:standard_tags_assembled|{ARTICLE[[TITLE][ID][ALIAS] ]} {CATEGORY[[ID][ALIAS] ]}]] (Ist im Paket enthalten).\\ | + | Another possibility is the installation of [[:deutsch:ersetzer_rts:frontend_render:standard_tags_assembled|{ARTICLE[[TITLE][ID][ALIAS] ]} {CATEGORY[[ID][ALIAS] ]}]] (Is contained in the package).\\ |
| - | Mit Hilfe des dann verfügbaren Tags ##**{CATEGORY_ALIAS}**## würde der richtige Ebenenname autom. in das Formular eingetragen. | + | With the help of the available tag ##**{CATEGORY_ALIAS}**## the correct level name autom. was registered into the form. |
| - | Dazu vorher alle (2x Zeile 48 und 82) | + | Then please all //(2x line 48 and line 62)// |
| <code html><!-- <input name="{CATEGORY_ALIAS}" value="" type="hidden"> //--> | <code html><!-- <input name="{CATEGORY_ALIAS}" value="" type="hidden"> //--> | ||
| <input name="rezepte" value="" type="hidden"></code> | <input name="rezepte" value="" type="hidden"></code> | ||
| - | ändern nach | + | replace with |
| <code html><input name="{CATEGORY_ALIAS}" value="" type="hidden"> | <code html><input name="{CATEGORY_ALIAS}" value="" type="hidden"> | ||
| <!-- <input name="rezepte" value="" type="hidden"> //--></code> | <!-- <input name="rezepte" value="" type="hidden"> //--></code> | ||