--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/df2ded50-19a9-4c81-94b5-93e06b426b37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public boolean function onRequestStart(String targetPage){ // Map physical files to events // This will allow the old URL for the about page to remain unchanged from the URL. // This is just an example to show how to do this in case you CAN'T break book marks. // Of course, URL rewriting wold also be a valid way to solve this too. fileEventMap=StructNew(); fileEventMap = { '/about.cfm':'main.about', '/products/coldbox.cfm':'products.coldbox' }; if(StructKeyExists(fileEventMap,arguments.targetPage ) || ( arguments.targetPage == '/index.cfm')) { if( StructKeyExists(fileEventMap,arguments.targetPage ) ) { url.event= fileEventMap[arguments.targetPage]; } // Verify ColdBox is loaded reloadChecks(); processColdBoxRequest(); // Returning false prevents the legacy code from also kicking in return false; } // Else proceed to legacy code return true; }
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/bdc577a7-c079-498f-9129-076a553eee57%40googlegroups.com.
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/ac6defca-35aa-4d74-ae0b-4c19a1090d37%40googlegroups.com.
<cfset fileEventMap=StructNew()><cfset fileEventMap = { '/html/tellafriend.cfm':'main.tellafriend', '/twitter/tweet.cfm':'main.tweet' }> <cfif StructKeyExists(fileEventMap,arguments.TargetPage ) OR (arguments.TargetPage EQ '/index.cfm')> <cfif StructKeyExists(fileEventMap,arguments.TargetPage)> <cfset url.event= fileEventMap[arguments.TargetPage]></cfif> <cfset reloadChecks()> <cfset processColdBoxRequest()> <cfreturn false /> </cfif>
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/ac1efeb8-a4d6-41b6-a565-b6011ed39806%40googlegroups.com.
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/442dcb33-82bb-4912-a8ca-42235e37045a%40googlegroups.com.