Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Relative Paths Problem

Discussion in 'User Experience' started by NetGeek, Jun 30, 2002.

  1. NetGeek

    NetGeek Well-Known Member

    Mar 4, 2002
    Likes Received:
    Trophy Points:

    I am re-editing the default border skin to suit my needs. I am facing this problem:

    I want to include the header.html at the main root of the skin folder in all my files in order to have the same header and side look for all the files. I included &cpanel include=&relative/path/to/header.html&& in the files

    and I moved these lines from the header.html file and included them in my files in order to get the correct path and title name for each page :

    &title&Control Panel - What ever Tool Name here&/title&
    &link rel=stylesheet href=../style.css&
    &SCRIPT LANGUAGE=&JavaScript& src=&../toolsf.js&&&/SCRIPT&
    &SCRIPT LANGUAGE=&JavaScript& SRC=&../mouseover.js&&&/SCRIPT&

    It works perfectly except for broken links for all images used in header.html becuase relative paths are used all over it.

    Any work around that you suggest ?


    &&EDIT: I think I just found a file called headersub.html in the skin main root which is a copy from header.html but with all paths prefixed with ../ &&

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice