template

7 contenuti / 0 new
Ultimo contenuto
template

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

Grazie 1000

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

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

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."

Grazie li proverò entrambi e poi scelgo

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

Avevo risolto, ho usato

if (drupal_is_front_page()){
***
}

Avevo provato if ($is_front) ma non funzionava

Grazie comunque

Ciao