AUSTRIA
2008-05-13 23:20:07
Hey there!
As this system is open-source and I couldn't find a lot of customization-instructions yet I thought I start with something I did: Images as section-titles in the navigation.
First of all: Maybe it's not perfect as I am working more on design than writing scripts, but: it works.
Files modified:
- ndxz-studio/site/plugin/index.php
- ndxz-studio/site/yourthemefoldername/style.css
First I modified the construction of the navigation in the index.php:
(I had to add some spaces at li, ul and span-tags to display it here properly)
foreach($order as $key => $out)
{
$s .= "
< ul class='$key'>
\n";
if ($out[0]['disp'] == 1) $s .= "< li class='section-title-$key'>< span>" .$key. "< /span>\n";
As you will notice I added $key to the li-class and span tags into the li-tag. This helps me to modify the headings in the css file later on.
The span-tags make it possible to keep the navigation-titles as text. That makes all the informations accessible for blind people (for example).
Next step is to add the css-styles:
The variable $key holds the name of the section you defined in your backend. For example your first sections is called "news", your second "design" and your third "about".
Your css-style would then look like this:
#menu ul li.section-title-news {
display:block;
width:90px; //width of your image
height: 20px; //height of your image
background-image:url(../img/news.png);
background-repeat:no-repeat;
}
#menu ul li.section-title-design {
display:block;
width:90px; //width of your image
height: 20px; //height of your image
background-image:url(../img/design.png);
background-repeat:no-repeat;
}
#menu ul li.section-title-about {
display:block;
width:90px; //width of your image
height: 20px; //height of your image
background-image:url(../img/about.png);
background-repeat:no-repeat;
}
and so on.
now to hide your text-titles I used that css-style:
That moves the text of all 3 sections 2000 pixel to the left, outside of your view. (i guess less px would do it too :)
that's all! it looks harder than it really is.
upload the images to the img-folder (ndxz-studio/site/img/) or change the path in the css-code.
you're done.
#menu ul li.section-title-news span, #menu ul li.section-title-design span, #menu ul li.section-title-about span {
left:-2000px;
position:absolute;
}
Hope you understand my english as I'm not native...
cheers, flow
