template

Posts: 16
Iscritto il: 11 Lug 06

e possibile impostare nella 4.7 un template diverso per la prima pagina?

Grazie 1000


Posts: 88
Iscritto il: 31 Gen 05

Usa il modulo front_page, ti consente di impostare una homepage diversa.


Posts: 16
Iscritto il: 11 Lug 06

non mi serve una homepage diversa statica ma la homepage deve poter essere integrata con i moduli e i blocchi di drupal deve essere diverso solo il template


Posts: 228
Iscritto il: 29 Ott 05
Redattore di Drupal Italia. Contribuisco a manualiTraduttore

Ciao,
io fino ad ora ho provato solamente front_page. Però so che esiste un modulo che puoi vedere qui: http://cvs.drupal.org/viewcvs/drupal/contributions/modules/sections/
Non lo ho mai provato (sarebbe da provare, appena posso lo installo) in ogni caso nel readme dice:
"This module allows you to create sections. Each section has an installed template, theme or style attached to it. Each section also contains a path setting similar to the new blocks admin.
You can then assign themes to a list (regexped) paths."


Posts: 16
Iscritto il: 11 Lug 06

Grazie li proverò entrambi e poi scelgo


Posts: 8
Iscritto il: 09 Dic 05

se utilizzi "PHPTemplate theme engine" puoi utilizzare qualcosa tipo:

if ($is_front) {
include('front.tpl.php');
return;
}

Forse ti può essere utile questo link: http://drupal.org/node/23348
Ciao
Giuseppe


Posts: 16
Iscritto il: 11 Lug 06

Avevo risolto, ho usato

if (drupal_is_front_page()){
***
}

Avevo provato if ($is_front) ma non funzionava

Grazie comunque

Ciao


Condividi contenuti