Quick Nav:  Online Store   |   Login | Register

CSS problem

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Craig M
<20 Posts
Posts:10


08/26/2008 1:24 AM  

Hi,

I am using PageBlaster (free version 03.03.02) on a test site and having a problem with the CSS Merge. All CSS files in the head section are merged except the one below which is from Ventrian News Articles.

link id="_DesktopModules_DnnForge___LatestArticles" rel="stylesheet" type="text/css" href="/DesktopModules/DnnForge - LatestArticles/module.css"

Any ideas why this file cannot be merged?

Thanks

John Mitchell
Posts:3471


08/26/2008 8:16 AM  
It's because of the spaces in the href. Since the href attribute does not have to be quoted to work, PageBlaster also uses a space to signal the end of the attribute.

You can make it work by creating a replacement rule:

SearchFor: DNNForge - LatestArticles
ReplaceWith: DNNForge%20-%20LatestArticles
Craig M
<20 Posts
Posts:10


09/01/2008 7:49 AM  

Hi John,

That worked great, thanks for your help. However I have run into another problem I was hoping you could help with. I am using GreyBox (http://www.orangoo.com/labs/GreyBox) for popup windows on one of my DotNetNuke sites and it seems that GreyBox does not work when javascript files are merged by PageBlaster. There a 3 JavaScript files required for GreyBox and they are referenced in my skin file. Is there a way I can exclude these 3 JavaScript files from being merged? I have already tried using the excludePaths section in the Snapsis.PageBlaster.config file (e.g pattern="filename.js" excludeFrom="MergeJS ) but no matter what pattern I use I cannot get it to work. Can you help with this?

Thanks

John Mitchell
Posts:3471


09/01/2008 8:11 AM  
Try

< path pattern="greybox" excludeFrom="All" />

Is it failing with a javascript error, or is it failing after the grey box pops up but nothing loads?
Craig M
<20 Posts
Posts:10


09/01/2008 8:47 AM  
Thanks again for your help John. I tried the rule you suggested but unfortunately that did not work either. If I use path pattern="\.js$" excludeFrom="MergeJS" to not merge any JavaScript then GreyBox works fine but I can’t seem to find a way to only exclude the 3 files I want.

There is no JavaScript error. What happens is that there are two types of popup windows in GreyBox, one for HTML pages and one for an image gallery. When PageBlaster is merging the JavaScript the HTML popup window works fine but the image gallery popup window is broken (it does not launch the popup window, just links directly to the image file). An example of the popup link tag is below (sorry but I have not worked out how to include code snippets in this forum yet)

a title="image1" rel="gb_imageset[imagegallery1]" href="imagel1.jpg"

So it looks like gb_imageset is the problem when merged but I’m not sure why. Do you know if there is a way to debug PageBlaster or the merged JavaScript file to track down the problem?
John Mitchell
Posts:3471


09/01/2008 9:19 AM  
What are the names of the .js files? That would be what you need to use in the exclude pattern.

I took another look at the source page of that demo, and it looks like this will work:

< path pattern="gb_scripts\.js|AJS\.js|AJS_fx\.js" excludeFrom="MergeJS" />
Craig M
<20 Posts
Posts:10


09/03/2008 8:54 PM  
That pattern didn't work either, however I was able to find an alternate way of using the GreyBox image gallery (http://orangoo.com/labs/greybox/advance_usage.html) that works when the JavaScript files are merged. Thanks again for all your help.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software