This is for the no-xml configuration. I wanted to make a clean set of params for making SES (Search Engine Safe) URLs, and index.cfm?fa=app.main looks ugly. There are a few articles around the internets dealing with this, and FB 5.5.1 supports this out of the box, so here’s a snip of what I do to accomplish this:
1 2 3 4 5 6 7 8 9 10 11 | <cfcomponent extends="fusebox5.Application" output="false">
<cfscript>
// ... other settings
FUSEBOX_PARAMETERS.fuseactionVariable = "fa"; // or whatever you want to call it.
FUSEBOX_PARAMETERS.myself = "/index.cfm/#FUSEBOX_PARAMETERS.fuseactionVariable#/";
FUSEBOX_PARAMETERS.queryStringStart = "/";
FUSEBOX_PARAMETERS.queryStringSeparator = "/";
FUSEBOX_PARAMETERS.queryStringEqual = "/";
</cfscript>
<!--- other codes --->
</cfcomponent> |
(This also exists in a DZone Snippet I created. Thanks go to the original source of this code, modified here to work.)
If someone does not beat me to it I’ll add this to the wiki, I don’t think I have anything useful on there yet about SES URLS.
@Adam – that would be great! Thanks for the continuing hard work on the project. Once I’m a little more comfortable with the noxml stuff I’d love to add documentation as well.
Somehow it doesn’t get the fuseaction right. It only shows the default, no matter what the requested fuseaction is.
I’ve set up a simple Fusebox 5.5.1 app at my Githubs: http://github.com/illuminerdi/fusebox_implicit_skelly/tree/master. Let me know if that works for you.