I am developing a site on a webserver where the URL is the IP Address and the directory where Joomla is installed. The existing domain name is still pointing to another website that is still running. Until I finalize the new site, I do not want to propagate DNS to the new site/server.
That being said, I have a question about URLs.
I have gotten the ICONs working by entering in the following URL into the Icon URL field for the published file:
components/com_ionfiles/images/icons/page_white_acrobat.png
However, when I enter the pathname for the actual file URL as:
Mouse/2004-01.pdf
It does not work. I have to enter:
http://74.54.176.146/~ahuppert/popch...se/2004-01.pdf
for it to work. Is this a problem with IE (where I am testing it and it is failing) or perhaps a setting in my Joomla configuration -- for example I have:
SEF URls set to NO
and
Add Suffix to URLs set to NO
OR is there something that I am doing wrong with the component?
Andrew
Hey Ahuppert. If you have the right base path set in your joom config file then entering (for mosConfig_absolute_path) a relative URL such as "Mouse/2004-01.pdf" should work but will only work for file download, not URL.
This code:
which was added by one of our members should append your home dir to the file if "http://" is missing. In other words if your absolute path is set to /home/mysite/www then your download url will turn into /home/mysite/www/Mouse/2004-01.pdfCode:# if the file prefix is to a local folder, append livesite data by Ed
# -------------------------------------------------------------
if (strtolower(substr($file,0,7)) != 'http://') {
if (defined( '_JEXEC' ) ) {
$file = JPATH_ROOT . '/' . $file;
}
else {
global $mosConfig_absolute_path;
$file = $mosConfig_absolute_path . '/' . $file;
}
}
Check to make sure your path is set correctly and if you still have problems let me know.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks