Quick Nav:  Online Store   |   Login | Register

replacements and virtual paths

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
John Nicholson
<20 Posts
Posts:4


12/04/2007 9:01 AM  

Okay this is a weird one. I have a site that I'm using both replacements and virtual paths on however if I use virtual paths the replacements will only work if the page is accessed through the virtual path. Therefore it breaks when the user navigates the wiki on the page.

I check the web.config for the position of the PAgeBlaster module and it was above the URL rewriter.
Relocated this below the rewriter, and tried again.

This time the replacements worked on the stadard dnn page but the virtual path redirected to the portal home page.

FYI:

DNN4.7
PB 02.02.04

This one really has me stumped.

It can be traced directly to this as I can alter the the order and each will turn on and off.

the address is http://ewds.strath.ac.uk/development.aspx

 

John Mitchell
Posts:2779


12/04/2007 9:35 AM  

Hi John,

As you discovered, the position of the PageBlaster module in relation to the UrlRewrite module makes a difference in how the Url is formatted when PageBlaster compares it.

The modules work in order from bottom to top, so if the PageBlaster module is placed after the UrlRewriter then it will "see" the Url before it has been Rewritten, but it will change what the url rewriter needs. So if you are going to use Virtual Paths you need to have the PageBlaster module above the UrlRewriter.

The Replacements should still work unless maybe they are being excluded because of the Url after it has been rewritten for some reason.

Please tell me more about the replacements you are trying to do.

John Nicholson
<20 Posts
Posts:4


12/05/2007 3:36 AM  

Hi John,
I'm doing some farly simple replacements on the page title on a page I want wikihomepage to be replaced with Development Home

So it shouldm't be anything tooo major... yet for some reason it seems to be excluded as you mentioned if pageblaster is above the rewriter.

Here is the regex... fairly siple to ensure the replacement is not part of a url: [^/]WikiHomePage

 

John Mitchell
Posts:2779


12/05/2007 7:16 AM  
When I go to that page I see "Development Home" as the title.

You may need to flush the PageBlaster cache for that Page. Use CTRL+F5 in IE or SHIFT+F5 in FF to flush the PageBlaster cache and your local cache at the same time.
John Nicholson
<20 Posts
Posts:4


12/06/2007 4:51 AM  

My Apologies John the other link to look at is http://ewds.strath.ac.uk/AdministratorsGuides/DNNDevelopment/tabid/1437/Default.aspx which is the real path for that page or if you try and navigate the wiki. you will notice that the replacement stops working.

I have flushed the cache a number of time top no avail.

John Mitchell
Posts:2779


12/06/2007 9:04 PM  
I've been trying to figure this out, and it looks like there may be a problem with DNN 4.7. I know the changed the UrlRewriter in that version so it looks like I'm going to need to do some debugging. Thanks for the details in recreating the issue and the trial and error you have done.

Give me a day or two and I should be able to at least figure out why.
John Mitchell
Posts:2779


12/08/2007 3:47 PM  

I've been testing with DNN 4.7 and I can't recreate this issue.  My replacements still work when I'm using a virtual path.

For some reason, yours are being excluded.  Can you attach your Snapsis.PageBlaster.config file? Maybe I can spot something there.

 

 

John Nicholson
<20 Posts
Posts:4


12/10/2007 4:43 AM  

here is the requested file and the dnn one as well.
I have alter thed extention to upload them here.

 

Just to test I have commented out all the exclusion paths within the config and it still doesn't work... 

Okay scrap that I commented out the exclution paths in the corrent config file and it worked...
I have isolated it to this line... 
though not fully sure why yet... 

[path pattern="(\.asmx|\.axd|\.asxh|rss|fck|admin|install|thumb|wizard|cart)" excludeFrom="All" /]

any ideas?

okay if I remove the admin option from the above line that fixes the problem though that does seem a bit heavy handed within that regex


Attachment: ResourceLocationTable.config.txt
Attachment: Snapsis.DNN.PageBlaster.dnn.config.txt
Attachment: Snapsis.PageBlaster.config.txt

John Mitchell
Posts:2779


12/10/2007 8:01 AM  

Ok, nice job tracking it down.  That "admin" exclusion probably is going over-board.  I just added that in so it would not cause problems when doing administration, but taking it out should not be a problem because of some of the new enhancements in the last version for auto exclusion of Ajax, etc.

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > replacements and virtual paths



ActiveForums 3.7
Powered by: Snapsis Software