Might not be the best solution but it works for me on some sites:
to use the real sitemap of phpwcms, so you can define which structure/article are in the sitemap
only obstacle is that the height of the sub-lists is not dynamic, maybe our css freaks can fix this.
tested only in FF and IE7
add a sitemap content part in some hidden level within your site.
add a div container to the footer section in your template with a SHOW_CONTENT replacement tag which refers to the sitemap cp
add the css file to your template
in your template (footer):
Code: Select all
<div class="sitemap_footer">{SHOW_CONTENT:CP,2}</div>
css, 3 levles (thanks flip flop!!):
Code: Select all
/* CSS Document */
/* ======================================================================
>= V1.30 CSS for an vertical menu
<div class="sitemap_footer">{SHOW_CONTENT:CP,[ID of Sitemap-Content Part]}</div>
Level 0 - 3;
21.03.2010 breitsch
based on NAV_LIST_UL 26.03.07 flip-flop (KH)
========================================================================= */
/*the div container*/
.sitemap_footer {
margin: 0;
padding: 0;
border: 0;
float:left;
text-decoration: none;
/* ++ e.g. 11px font and 19px height // z.B. 11px font und 19px hoch */
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
width: 640px; /* ++ width of sitemapcontainer*/
border-top: 1px solid #343434; /* IE6 Bug */
/* background:#123123; /*background*/
}
/*the 'HOME' list*/
.sitemap_footer ul {
margin: 0;
padding: 0;
border: 0;
list-style-type: none;
}
/*the HOME link*/
.sitemap_footer ul li {
width: 640px; /* Width of Sitemap */
display: block;
}
.sitemap_footer ul li a,
.sitemap_footer ul li a:link,
.sitemap_footer ul li a:visited,
.sitemap_footer ul li a:active {
color: #343434;
}
.sitemap_footer ul li a:hover {
text-decoration: none;
color: #343434;
}
/* ==== Styles for Menu Items =================================== */
/* ==== LEVEL X ================================================= */
.sitemap_footer ul ul {
float:left;
}
.sitemap_footer ul ul li {
width: 150px; /* Width of Sub-Lists */
display: inline;
float:left;
padding-right:5px;
height:120px; /* Height of Sub-Lists - this should be dynamic (???)*/
}
/* ==== simple link <a> // einfacher Link <a> ==== */
.sitemap_footer ul ul li a,
.sitemap_footer ul ul li a:link,
.sitemap_footer ul ul li a:visited,
.sitemap_footer ul ul li a:active {
display: block;
text-decoration: none;
text-transform: none;
color: #999999; /* ++ Text color // Textfarbe */
font-weight: bold;
/* ++ Text adjust e.g. upper gap and left gap 25px */
padding: 1px 0 0 0;
line-height: 15px;
/* ++ bottom line if you want */
border-bottom: 1px solid #1f1f1f;
/* ++ Killing the "white-space" bug in IE7 */
\width: 145px; /* IE5x Opera <= 5 */
widt\h: 145px; /* = (Width of Menu Items) - (padding-right + padding-left)- (padding-right of li + padding-left og li) */
}
/* ==== hover link <a> ==== */
.sitemap_footer ul ul li a:hover {
color: #FFFFFF;
}
/* ==== LEVEL X+1 =============================================== */
.sitemap_footer ul ul ul {
display: block;
float:left;
list-style-type: none;
width: 145px; /* Width of Menu Items */
}
.sitemap_footer ul ul ul li {
height:auto;
display: block;
width: 145px;
/*float:left;*/
padding:0px;
}
.sitemap_footer ul ul ul li a,
.sitemap_footer ul ul ul li a:link,
.sitemap_footer ul ul ul li a:visited,
.sitemap_footer ul ul ul li a:active {
display: block;
text-decoration: none;
text-transform: none;
font-weight: normal;
color: #999999;
line-height: 15px;
padding: 1px 0 0 0px;
border-bottom: 1px solid #1f1f1f;
\width: 145px; /* IE5x Opera <= 5 */
widt\h: 145px;
}
.sitemap_footer ul ul ul li a:hover {
color: #FFFFFF;
}
/* ==== LEVEL X+2 =============================================== */
.sitemap_footer ul ul ul ul {
display: block;
float:left;
list-style-type: none;
width: 145px; /* Width of Menu Items */
}
.sitemap_footer ul ul ul ul li {
height:auto;
display: block;
width: 145px;
/*float:left;*/
padding:0px;
}
.sitemap_footer ul ul ul ul li a,
.sitemap_footer ul ul ul ul li a:link,
.sitemap_footer ul ul ul ul li a:visited,
.sitemap_footer ul ul ul ul li a:active {
display: block;
text-decoration: none;
text-transform: none;
font-weight: normal;
color: #999999;
line-height: 15px;
padding: 1px 0 0 10px;
border-bottom: 1px solid #1f1f1f;
\width: 135px; /* IE5x Opera <= 5 */
widt\h: 135px;
}
.sitemap_footer ul ul ul ul li a:hover {
color: #FFFFFF;
}
/*==== END LEVEL X ============================================= */
/* Holly Hack. IE Requirement \*/
* html .sitemap_footer ul li { float: left; height: 1%; }
* html .sitemap_footer ul li a { height: 1%; }
/* ==== End sitemap_footer ========================================= */
results in something like this:
![Image](http://web.casa-loca.com/screenshots/footer%20sitemap.jpg)