HomeHome Product Discus... Product Discus...SmithCartSmithCartLightboxLightbox
Previous
 
Next
New Post
8/9/2010 1:51 PM
 

I just found out that unless lightbox is setup & works off the root of IIS, it does not work.

I have installed a DNN site in a sub directory and marked it as an application, so the URL would be http://localhost/DNNSite/ but lightbox with the products details page has this inserted;

link href="/css/lightbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript" src="/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="/js/lightbox.js"></script>

Hence, it is looking for everything at the IIS root level and not the application level. Also the closing X image is also being reference from the root level at that point and not under the actual site folder.

I've worked around this for development purposes by fudging the root level folders, but clearly, it's not uncommon under developement to run DNN under a sub folder and marked as an application in IIS.

John

 
New Post
8/9/2010 3:07 PM
 

The javascript and css files for lightbox needed to be put in the main \css and and \js folders for the dnn site in order to avoid any duplication if you already had lightbox installed in your portal so it wasnt feasible to add a relative reference to those files within the desktopmodules folder but I agree with you that we should look at implementing a global variable for application path so that you can easily move between your dev, test and live sites with different folder structures more easiliy.

Something like this:

link href="<%# applicationpath %>/css/lightbox.css" rel="stylesheet" type="text/css" />

Where applicationpath is set in the cart admin settings or picked up automatically.

-Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
8/9/2010 5:02 PM
 

Well, normally the DNN site would work off the root level and not cause an issue. But certainly, in a sub folder, that could help resolve this issue, but the work around is easy enough, just something to be aware of.

Temporary ... I added the sub folder to the .js references in the ProductDetails.ascx and edited the lightbox.js paths for the close.gif and loading.gif.

The problem with the lightbox.js file, only an edit will work when in a sub directory, but like I said, this would not be a normal DNN setup or at least I would think so. Just something to be aware of if using the lightbox feature.

Thanks.

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartLightboxLightbox