Author Topic: Wechseln des Templates pro Kategrie / change the template in every category  (Read 3682 times)

0 Members and 1 Guest are viewing this topic.

Offline mrcool

  • Pre-Newbie
  • Posts: 3
    • View Profile
Ich habe nun 4images installiert. Und mehrere Templates. Nun möchte ich gerne jede Kategorie in einem anderen Style anzeigen.
=> ich hätte also gerne in den Einstellungen zur Kategorie das Template eingestellt. Und nicht in den allgemeinen Einstellungen.

I have installed 4images. With different templates. But only one template is active. Now I want display in every category a different style.
=> I want to customice the category. Not in the general customizing.

Im Forum habe ich dies nicht gefunden.

ich glaube nguago hat dies auch schon gefragt: http://www.4homepages.de/forum/index.php?topic=23411.0
Das Posting von Jan: http://4homepages.de/forum/index.php?topic=1847.0 ist nicht das gewünschte.

wenn man also die Kategorie wechselt, soll sich auch das template ändern.
=> when I change the category, so I want display an other template.

Which files must be change?

for example:
- the function get_categories in includes/functions.php?
- categories.php?
- die database table categories: a new field like cat_template.
- admin/categories.php and admin/settings.php, because to save the property.

Can sameone help me to write the coding?

Sven
« Last Edit: March 09, 2009, 11:14:13 PM by mrcool »

Offline mrcool

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: Wechseln des Templates pro Kategrie
« Reply #1 on: February 22, 2009, 02:20:40 PM »
welche Dateien müssen angepasst werden?

z.B.
- die Funktion get_categories in includes/functions.php: das Array  $site_template->register_vars bekommt einen neuen Eintrag cat_template.
- categories.php: hier wird das Array auch verwendet. hier befindet sich auch der SELECT zum Lesen der Kategorie
- die Datenbanktabelle categories muss natürlich angepasst werden: cat_template wird als neues Feld benötigt.
- admin/categories.php und admin/settings.php, um die Eigenschaft pflegen zu können.

Aber wie muss das Coding aussehen?
Funktioniert es dann schon, oder wechselt 4images dann nicht automatisch das template?

Sven

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.290
    • View Profile
    • Discover the New World of Kindersurprise
Re: Wechseln des Templates pro Kategrie
« Reply #2 on: February 22, 2009, 05:37:00 PM »
ich glaube nguago hat dies auch schon gefragt: http://www.4homepages.de/forum/index.php?topic=23411.0

Und warum hast Du da nicht angeknüpft ?
Kein Wunder das man sich hier einen Wolf sucht, bei 1000 gleiche Postings

Und abwarten ist auch nicht dein Ding (Doppelposting)
Danke Harald




Offline mrcool

  • Pre-Newbie
  • Posts: 3
    • View Profile
I have translated my question to English.
Can someboby help me.

Please
Sven

Rembrandt

  • Guest
Hi!

...
Das Posting von Jan: http://4homepages.de/forum/index.php?topic=1847.0 ist nicht das gewünschte.
...
aber du hast doch genau nach dem gefragt ?

mfg Andi