Quick Nav:  Online Store   |   Login | Register

idiot guide

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
Alberto Velo
<20 Posts
Posts:3


01/22/2008 5:29 AM  

Hello,

I'm moving my first steps with pageblaster, and miss some basic info: how do I configure rules? ;-)

I configured a simple rule, like this:


    Test rule
   
   

Links to tabid 79 are correctly replaced with a "test.aspx" link, and all works well. But this only if I keep DNN (4.8) friendly url engine active, which I believe is the one who can map "test.aspx" because it's derived from the tab path (test/tabid/79/...).

But if I want my friendly url to become something else, say "mytestpage.aspx", what have I to do? If I change the rule to:

   

I get a 404 error, page is not available. I believe I should tell pageblaster where to redirect in this case, have I to put in another rule for this or am I lost at all?

Thanks for any help,

al.

John Mitchell
Posts:3268


01/22/2008 9:19 AM  
Hi al,
For mapping a virtual path to a page you need to put a PageBlaster module on that page and then when you edit the configuration you will go to Page Setup > Virtual Path.

That is where you define your own path for the incoming URL.

If you also want to change the links in the output of your pages then you will need a Replacement Rule.
Alberto Velo
<20 Posts
Posts:3


01/22/2008 6:24 PM  

Hi John,

thanks for answering. I'm testing the free module: my  replacement rule does work very well on output, but I'm a bit confused about what the pageblaster module would do.

I mean...what I meant was exposing a friendly-url with a custom name, and have all request for that url redirected to a real tabid. I can do this with a RewriterRule in siteurls.config, writing a rule such as

LookFor  .*/myfriendlyurl.aspx(.*)

SendTo  ~/default.aspx?tabid=12

where "myfriendlyurl.aspx" does not map to an existing page, but whenever I call that url I am redirected to the specified tabid. So I have to define both a rewriterule in siteurls and a replacement url for pageblaster, to have it all working (the replacement to output "myfriendlyurl.aspx" instead of the complete url, and the rewrite to handle requests)  am I right?

And does the pageblaster module do all of this, that is does it allow me to configure both rewrite and replacement rules from a browser?

 

 

Just two more questions ;-)

I unsuccessfully tried downloading source code for the free module from codeplex: isn't code available yet, or  am I just  doing something wrong with svn?

 

Last: a problem with AJAX and pageblaster. I use some controls from ajaxcontroltoolkit (on DNN 4.8) in a module of mine, and all (partial) postbacks stop working if I enable pageblaster. I tried the exclusion rules I found in other posts here (such as pattern="\.asxh" or .axd), but with no result. The same apparently happens with my calls to clientapi. What should I do to let ajax work with pageblaster enabled?


Thank you so much,

al.

 

 

John Mitchell
Posts:3268


01/22/2008 7:13 PM  

Yes, using the SiteUrls.config file you can accomplish the same thing that the PageBlaster module does for what I call a virtual-path.  I even do it that way on my site instead of putting a PageBlaster module on every page. I just added it to the PageBlaster config to make it another feature for when you are using the PageBlaster module.  It makes it a little easier when you already have the module on a page.

I think they expired the source code on the CodePlex site when they made some changes.  I haven't really kept up with that site because there was hardly any feedback from anyone.

I didn't even know they were using svn on Codelex now.  I can get you the source code if you want to reply directly to the notification of this post.

Ajax should work. I would have to take a closer look at what is happening to understand what is happening in your situation.

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