Joomla menu maken
Ik ben in Joomla een eigen template aan het maken maar ondervind wat problemen.
Ik wil namelijk in elk menu (user2 t/m user 4) de links zoals home, fao en etc. een aparte achtergrond en omringd hebben. weet iemand het misschien.
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/html;><?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<?php echo "<link rel=\"stylesheet\"
href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\"
type=\"text/css\"/>" ; ?><?php echo "<link rel=\"shortcut icon\"
href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ; ?>
</head>
<body id="background">
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" id="header"><?php mosLoadModules ( 'user1' ); ?></td>
</tr>
<tr>
<td colspan="1" id="path" width="166"></td>
<td colspan="2" id="pathright"><?php mosPathWay(); ?></td>
</tr>
</table>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr valign="top">
<td id="left" valign="top" width="166">
<table width="144" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td id="left_inner" valign="top" width="144"><div id="button"><div id="button_inner"><?php mosLoadModules ( 'user2', -1); ?></div></div><HR></td>
</tr>
<tr>
<td id="left_inner" valign="top" width="144"><?php mosLoadModules ( 'user3'); ?><HR></td>
</tr>
<tr>
<td id="left_inner" valign="top" width="144"><?php mosLoadModules ( 'user4'); ?></td>
</tr>
</table>
</td>
<td id="main" valign="top" ><?php mosMainBody(); ?></td>
</tr>
</table>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" id="bottom" height="48"></td>
</tr>
</table>
</body>
</html>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
BODY {
background-color : #FFFFFF;
color : #000000;
}
#background{
background-image:url(../images/bg.gif);
}
#header{
height:100px;
background-color:#0066CC;
border:0px solid #000000;
background-image:url(../images/header.gif);
background-repeat:no-repeat;
font:"Blackadder ITC";
}
#topmenu{
height:20px;
background-color:#666666;
border-left:1px solid #000000;
border-right:1px solid #000000;
font:"Blackadder ITC";
}
#path{
background-color: #99ff66;
border:0px solid #666666;
font:"Blackadder ITC";
}
#pathright{
background-color: #ffffff;
border:0px solid #666666;
font:"Blackadder ITC";
}
#left{
height:500px; /* voor een minimale hoogte van de tabel. */
background-color:#99ff66;
border: 0px solid #000000;
font:"Blackadder ITC";
}
#left_inner{
background-color:#99ff66 ;
font:"Blackadder ITC";
border: 0px none #000000;
}
#main{
height: ; /* niet nodig, want die is bij #left al ingevuld, en de deze tabel blijft even lang als #left. */
background-color:#ffffff;
border: ; /*niet nodig want, #left en #right hebben al een border */
padding: 0px;
table-layout:auto;
font:"Blackadder ITC";
}
#right{
height:; /* niet nodig, want die is bij #left al ingevuld, en de deze tabel blijft even lang als #left. */
background-color:#ffffff;
border: 0px solid #000000;
font:"Blackadder ITC";
}
#footer{
height:;
background-color: #0066CC;
border: 0px solid #000000;
font:"Blackadder ITC";
}
#top{
height:;
background-image:url(../images/top.gif);
background-repeat:no-repeat;
border: 0px solid #000000;
background-position:left top;
background-color:#ffffff;
}
#bottom{
height:;
background-image:url(../images/bottom.gif);
background-repeat:no-repeat;
border: 0px solid #000000;
background-position:right top;
background-color:#ffffff;
}
#button{
background-color: #ffffff;
border:1px solid #666666;
font:"Blackadder ITC";
}
#button_inner{
background-color: #ffffff;
}
background-color : #FFFFFF;
color : #000000;
}
#background{
background-image:url(../images/bg.gif);
}
#header{
height:100px;
background-color:#0066CC;
border:0px solid #000000;
background-image:url(../images/header.gif);
background-repeat:no-repeat;
font:"Blackadder ITC";
}
#topmenu{
height:20px;
background-color:#666666;
border-left:1px solid #000000;
border-right:1px solid #000000;
font:"Blackadder ITC";
}
#path{
background-color: #99ff66;
border:0px solid #666666;
font:"Blackadder ITC";
}
#pathright{
background-color: #ffffff;
border:0px solid #666666;
font:"Blackadder ITC";
}
#left{
height:500px; /* voor een minimale hoogte van de tabel. */
background-color:#99ff66;
border: 0px solid #000000;
font:"Blackadder ITC";
}
#left_inner{
background-color:#99ff66 ;
font:"Blackadder ITC";
border: 0px none #000000;
}
#main{
height: ; /* niet nodig, want die is bij #left al ingevuld, en de deze tabel blijft even lang als #left. */
background-color:#ffffff;
border: ; /*niet nodig want, #left en #right hebben al een border */
padding: 0px;
table-layout:auto;
font:"Blackadder ITC";
}
#right{
height:; /* niet nodig, want die is bij #left al ingevuld, en de deze tabel blijft even lang als #left. */
background-color:#ffffff;
border: 0px solid #000000;
font:"Blackadder ITC";
}
#footer{
height:;
background-color: #0066CC;
border: 0px solid #000000;
font:"Blackadder ITC";
}
#top{
height:;
background-image:url(../images/top.gif);
background-repeat:no-repeat;
border: 0px solid #000000;
background-position:left top;
background-color:#ffffff;
}
#bottom{
height:;
background-image:url(../images/bottom.gif);
background-repeat:no-repeat;
border: 0px solid #000000;
background-position:right top;
background-color:#ffffff;
}
#button{
background-color: #ffffff;
border:1px solid #666666;
font:"Blackadder ITC";
}
#button_inner{
background-color: #ffffff;
}
Gewijzigd op 01/01/1970 01:00:00 door Jeffrey boud
Er zijn nog geen reacties op dit bericht.