|
Loading...
|
cfwheels@googlegroups.com
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [cfwheels] non-DB controller/action Randy Johnson Mon Feb 28 15:01:12 2011
If you were not going to use a database you could do this: <cfset addRoute(name="page", pattern="/[action]", controller="pages")> and then inside the views folder create a folder called pages and then just create the cfm pages.. Ex. aboutus.cfm, contactus.cfm On Mon, Feb 28, 2011 at 4:39 PM, Randy Johnson <[EMAIL PROTECTED]> wrote: > I like to do a route like this: > > <cfset addRoute(name="page", pattern="/[slug]", controller="pages", > action="showpage")> > > and then I use the slug to pull the content from the database. > > I also store any partials needed for the page inside the database as well. > > I am pretty sure I got the idea from Splash CMS: > > http://splashcms.com/ > > > > > On Mon, Feb 28, 2011 at 3:58 PM, Russ Johnson <[EMAIL PROTECTED]>wrote: > >> If your not running it through a CMS, then what I usually do is create a >> "Public" controller and use each of those actions... it contains all the non >> db type stuff in it... >> >> But if I know a site will have that type of content, I usually integrate a >> CMS to handle that stuff... >> >> *- Russ* >> >> On Feb 28, 2011, at 3:48 PM, John M Bliss wrote: >> >> What's the "Wheels Way" when it comes to naming non-DB controller/action? >> For examples: >> >> - homepage >> - about us >> - contact us >> - etc >> >> >> -- >> John Bliss - http://about.me/jbliss >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ColdFusion on Wheels" group. >> To post to this group, send email to [EMAIL PROTECTED] >> To unsubscribe from this group, send email to >> [EMAIL PROTECTED] >> For more options, visit this group at >> http://groups.google.com/group/cfwheels?hl=en. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ColdFusion on Wheels" group. >> To post to this group, send email to [EMAIL PROTECTED] >> To unsubscribe from this group, send email to >> [EMAIL PROTECTED] >> For more options, visit this group at >> http://groups.google.com/group/cfwheels?hl=en. >> > > -- You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.
- [cfwheels] non-DB controller/action John M Bliss 2011/02/28
- Re: [cfwheels] non-DB controller/action Russ Johnson 2011/02/28
- Re: [cfwheels] non-DB controller/action Randy Johnson 2011/02/28
- Re: [cfwheels] non-DB controller/action Brad Gunn 2011/02/28
- Re: [cfwheels] non-DB controller/action Randy Johnson 2011/02/28
- Re: [cfwheels] non-DB controller/action Brad Gunn 2011/02/28
- Re: [cfwheels] non-DB controller/action Randy Johnson 2011/02/28 <=
- Re: [cfwheels] non-DB controller/action John M Bliss 2011/02/28
- Re: [cfwheels] non-DB controller/action Brad Gunn 2011/02/28
- Re: [cfwheels] non-DB controller/action Andy Bellenie 2011/02/28
- Re: [cfwheels] non-DB controller/action Neokoenig 2011/02/28