fmdano
03/06/2022, 8:57 PMDWilson
03/19/2022, 11:00 AMZac Warner
04/12/2022, 6:36 PMmjclemente
04/12/2022, 8:36 PMtonyjunkes
04/18/2022, 7:14 PMoranuf
05/12/2022, 5:47 PMoranuf
05/12/2022, 5:48 PMproperty name="emailService" required="true" type="EmailService" ;
in coldspring.xml:
<bean id="appService" class="components.services.AppService" singleton="true">
<property name="appConfig">
<ref bean="appConfig"/>
</property>
<property name="appGateway">
<ref bean="appGateway"/>
</property>
<property name="emailService">
<ref bean="emailService"/>
</property>
</bean>
fyroc
05/17/2022, 1:32 PMwebsolete
05/17/2022, 1:42 PMfyroc
05/17/2022, 1:50 PMbockensm
05/26/2022, 2:40 AMdavla
06/07/2022, 2:53 PMroutes = [
{"/about" = "/home/about"}
]
If I the box server start
I get my basic index page loading. If I then go to /about I get a 404 not found error? Is there a config I am missing to activate the routes functionality?davla
06/07/2022, 2:56 PM[siteuri]/home/about
also doesn’t work but ?action=home.about
does. Do I still need to specify rewrite rules and if so do they need to handle just the route /about
?davla
06/07/2022, 3:00 PMdavla
06/07/2022, 3:01 PM<rule>
<note>search engine friendly urls for cf frameworks</note>
<from>^(.*)$</from>
<to>/index.cfm$1</to>
</rule>
seems to have done the trick!Kannan
06/07/2022, 3:24 PMvariables.framework = {
generateSES = true,
SESOmitIndex = true,
routes = [
]
};
davla
06/07/2022, 3:25 PMKannan
06/07/2022, 3:26 PMdavla
06/22/2022, 6:22 PMroutes = [
{ "/{region:(north|east|midlands|london|southeast|southwest|moreregions)}/?$" = "/home/region/region/:region" }
]
works as expected so /southeast
routes to home/region/region/southeast and runs the home.region controller passing region=southeast.
Now this route doesn’t seem to work:
routes = [
{ "/{region:(north|east|midlands|london|southeast|southwest|moreregions)}/{area:([A-Za-z0-9-_]+)}/?$" = "/home/area/region/:region/area/:area" }
]
This should handle /southeast/oxfordshire
and route to home.area controller passing both region=southeast and area=oxfordshire
If I hit the url /home/area/region/southeast/area/oxfordshire
the correct page loads but /southeast/oxfordshire
fails.
Here’s my full routes array:
routes = [
{ "/about/?$" = "/home/about" },
{ "/search/?$" = "/home/search" },
{ "/locations?/?$" = "/home/areas" },
{ "/{region:(north|east|midlands|london|southeast|southwest|moreregions)}/{area:([A-Za-z0-9-_]+)}/?$" = "/home/area/region/:region/area/:area",
{ "/{region:(north|east|midlands|london|southeast|southwest|moreregions)}/?$" = "/home/region/region/:region" } }
]
Any ideas?websolete
06/22/2022, 6:26 PMwebsolete
06/22/2022, 7:14 PMdavla
06/22/2022, 7:15 PMdavla
06/22/2022, 7:16 PMdavla
06/22/2022, 7:16 PMwebsolete
06/22/2022, 7:19 PM{ "/(north|east|midlands|london|southeast|southwest|moreregions)+/?$" = "/home/region/region/\1" },
{ "/(north|east|midlands|london|southeast|southwest|moreregions)+/([A-Za-z0-9-_])+/?$" = "/home/area/region/\1/area/\2" }
davla
06/22/2022, 7:19 PMdavla
06/22/2022, 7:19 PMdavla
06/22/2022, 7:22 PM{region:(...)}
from the fw/1 docs.websolete
06/22/2022, 7:23 PMdavla
06/28/2022, 8:46 PMProblem with metadata for jobs (<http://var.www.sites.sjbeta.model.services.jobs|var.www.sites.sjbeta.model.services.jobs>) because: Unable to getComponentMetadata(<http://var.www.sites.sjbeta.model.services.jobs|var.www.sites.sjbeta.model.services.jobs>) because: invalid component definition, can't find component [<http://var.www.sites.sjbeta.model.services.jobs|var.www.sites.sjbeta.model.services.jobs>], near line 458 in /var/www/sites/frameworks/framework/ioc.cfc
I have a mapping for /framework pointing to ‘/var/www/sites/frameworks/framework’ set in Lucee admin. I also have an Application mapping:
this.mappings = {
"/": "/var/www/sites/sjbeta/"
};
I have the site running on my local machine using commandbox. What have I missed?