SmartMenus DHTML Menu / JavaScript Menu - Forums

forums

You are not logged in.

#1 2009-Jan-10 20:58:08

bobpit
Member
Registered: 2008-Dec-30
Posts: 14

problem with pages in subdirectories

I have created a /faq subdirectory and placed my FAQ pages there.  When I navigate to one of the FAQ pages (that contains the pull down menus) , the little image that parks the pull down sub-menu, becomes a little cross.  Obviously the system cannot find the path to the menu image.

The smartmenu images reside in a subdirectory called menuimages.  The setup is this:
c_imagesPath="images/menuimages/"; // path to the directory containing the menu images

Everything else works fine. 

Now how do I fix this little thing?

Offline

 

#2 2009-Jan-12 04:05:13

smartmenus
Site Admin
From: Plovdiv, BULGARIA
Registered: 2003-Feb-23
Posts: 986
Website

Re: problem with pages in subdirectories

You will just need to use absolute path. For example, if your menu images are placed in the "/images/menuimages/" sub directory (from the root directory on your server), then you just need to add a forward slash prefix when setting the "c_imagesPath" variable - e.g.:

Code:

c_imagesPath="/images/menuimages/";

The above is actually equivalent to this:

Code:

c_imagesPath="http://YOUR_SERVER/images/menuimages/";

Because when you use relative path - e.g.:

Code:

c_imagesPath="images/menuimages/";

and you are loading a page from the "/faq" subdirectory the browsers will look for the images in the "/faq/images/menuimages/" directory.


-Vasil Dinkov-

Offline

 

#3 2010-May-05 16:23:59

rmochinski
Member
Registered: 2010-May-05
Posts: 1

Re: problem with pages in subdirectories

FYI, I was having the same issue. Read through the various replies. Had to ultimately use the entire absolute path on the server to work correctly. "http://www.xxxx.com/xxxx/xxxx/images/" Just using a slash in front "/images/" did not work. Maybe it's a server configuration issue?

Offline

 

#4 2010-May-07 01:48:55

smartmenus
Site Admin
From: Plovdiv, BULGARIA
Registered: 2003-Feb-23
Posts: 986
Website

Re: problem with pages in subdirectories

rmochinski wrote:

FYI, I was having the same issue. Read through the various replies. Had to ultimately use the entire absolute path on the server to work correctly. "http://www.xxxx.com/xxxx/xxxx/images/" Just using a slash in front "/images/" did not work. Maybe it's a server configuration issue?

In your case, it should be "/xxxx/xxxx/images/" not just "/images/". Because when you use a forward slash prefix "/images/" means:

Code:

http://www.xxxx.com/images/

which is different from the real path.


-Vasil Dinkov-

Offline

 

#5 2010-Jul-29 02:00:57

roofingwiz
Member
From: Boston, Massachusetts
Registered: 2010-Jul-29
Posts: 1
Website

Re: problem with pages in subdirectories

Looks like you have to use absolute path. I used to have the same issues on my site.

Offline

 

Board footer

Powered by FluxBB