Ibay default : Différence entre versions
De SME Server Wiki
| Ligne 13 : | Ligne 13 : | ||
'''3 -''' Voici le contenu qui devrais apparaître : | '''3 -''' Voici le contenu qui devrais apparaître : | ||
| − | { | + | <nowiki> { |
| − | + | my $desc = $adb->get_prop($IBAY_NAME, "Name") || "No description"; | |
| − | + | ||
| + | $OUT =<<HERE; | ||
| + | |||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
| + | |||
<HTML> | <HTML> | ||
| + | |||
<HEAD> | <HEAD> | ||
<TITLE>Information Bay: $desc</TITLE> | <TITLE>Information Bay: $desc</TITLE> | ||
</HEAD> | </HEAD> | ||
<BODY BGCOLOR="#FFFFFF"> | <BODY BGCOLOR="#FFFFFF"> | ||
| + | |||
<H1>Information Bay</H1> | <H1>Information Bay</H1> | ||
<P>This information bay has not yet been customized.</P> | <P>This information bay has not yet been customized.</P> | ||
| + | |||
</BODY> | </BODY> | ||
</HTML> | </HTML> | ||
| + | |||
HERE | HERE | ||
| − | } | + | }</nowiki> |
| + | |||
| + | '''4 -''' Vous pouvez modifier ce fichier pour la partie html entre | ||
| + | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
| + | et | ||
| + | </HTML> | ||
| + | |||
| + | '''5 -''' Voici ce à quoi correspond la variable utilisée dans ce fichier : | ||
| + | |||
| + | $desc => Commentaire associé à l'I-bay | ||
Version du 24 juillet 2007 à 17:12
Modifier le fichier index.html se trouvant les I-bays
Cet article explique comment modifier le fichier qui génère la page index.html se trouvant dans toutes nouvelles I-bays créées.
1 - Se placer dans le dossier ../index.html/ :
cd /etc/e-smith/templates/home/e-smith/files/ibays/html/index.html/
2 - Ouvrir le fichier 10body :
vi 10body
3 - Voici le contenu qui devrais apparaître :
{
my $desc = $adb->get_prop($IBAY_NAME, "Name") || "No description";
$OUT =<<HERE;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Information Bay: $desc</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>Information Bay</H1>
<P>This information bay has not yet been customized.</P>
</BODY>
</HTML>
HERE
}
4 - Vous pouvez modifier ce fichier pour la partie html entre
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
et
</HTML>
5 - Voici ce à quoi correspond la variable utilisée dans ce fichier :
$desc => Commentaire associé à l'I-bay