Splash provides the page object in request.page. But, the author information is not automatically retrieved from the database. I have some layouts where I need to display the author.
I have two questions:
1. Do I have to modify Viewer.cfc to retrieve the author information when request.page is originally created?
<cfset request.page = model('page').findOneBySlug(value=”#params.slug””, include=”author”)>
Instead of:
<cfset request.page = model('page').findOneBySlug(params.slug)>
I tried this and it does include an author object in request.page. But, none of the actual author information is in the author object.
2. Or, does the Page object remember it’s author association, and can it retrieve the author information later.
If so, I could do request.page.someCoolFunctionCall() to get the author. Will this work, and what’s the syntax?
Thanks for any ideas. I admit I still haven’t fully grasped associations and models in Wheels and all the cool ways you can access the data!
Clarke
Office:
770-642-1353
eMail: cbi...@resultantsys.com
> > eMail: cbis...@resultantsys.com
Clarke
Aside from that Im usually pretty open since I make my own schedule...