Background images with list_top not working

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Sheila
Posts: 8
Joined: Mon 14. Feb 2005, 04:28
Location: Colorado, USA

Background images with list_top not working

Post by Sheila »

I'm trying to customize the top menu that is generated with the {NAV_LIST_TOP} tag, and I can't get my style changes to appear correctly.

This is the navigation I designed: http://bead-zone.net/new/nav_test.html

But the background images won't show up here: http://bead-zone.net/new/index.php

If you view the source in the first link, you'll see that I pasted all of frontend.css into the header to customize it and test it. The section under "CSS for the top level list" is what I changed. I copied the changes into the default css in the backend control panel.

I am confused why it works in nav_test.html, but not in index.php. As you can see in the URLs above, they are in the same folder (phpwcms root).
User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Post by isac »

try this


background: url("/new/img/tabs/tab_right_active.png") no-repeat right top;
}~

and repeat in all styles
Sheila
Posts: 8
Joined: Mon 14. Feb 2005, 04:28
Location: Colorado, USA

Post by Sheila »

Thank you! That worked.

Can you (or someone) explain why? "new" is the phpwcms root folder. I've never had to include the root folder in a path like that before, so I'd like to understand why I had to here.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

maybe you have a little mistake in your conf.inc.php

think that is what you have

Code: Select all

$phpwcms["site"]              = "http://www.bead-zone.net/new/";  
this is how it has to look for you I think

Code: Select all

$phpwcms["site"]              = "http://www.bead-zone.net/";
$phpwcms["admin_email"]       = "info@mail.com";

// paths
$phpwcms['DOC_ROOT']          = $_SERVER['DOCUMENT_ROOT'];
$phpwcms["root"]              = "new/";
[/code]
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
Sheila
Posts: 8
Joined: Mon 14. Feb 2005, 04:28
Location: Colorado, USA

Post by Sheila »

My conf.inc.php file looks like the second example, except the value for $phpwcms['root'] is "new" and not "new/". I tried changing that, and it didn't make a difference.

It doesn't really matter because the site will eventually be on its own server and domain, in the root web folder. But it would be a good thing to understand, if possible.
Post Reply