Mangoblog into coldbox application

Hi there, I need to install MangoBlog within an existing Coldbox
application. Does anyone knows if it's hard to let them talk to
eachother? Does anyone have done anything with these two apps
together?

Im thinking to pull data from the blog into the home of the
application, Im thinking that an interceptor can do yhis, right?

Where should this mangoblog app should live, in root? "/blog"

Thanks in advance

Felipe Serrano

I don’t see why they can’t share an application namespace. You would have to do some trail and error. I would suggest doing the following.

  1. Updating the Application.cfc so both mango and coldbox load.
  2. Updating the coldbox application conventions so it does not mix with mango but on a separate sub folder, something like:

conventions = {
handlersLocation = “app/handlers”,
layoutsLocation = “app/layouts”
etc…
};

This means you create a folder called app where your ColdBox application will live.
3. Updating the Application.cfc to make it point to your Coldbox.cfc configuration file in the app directory using

  1. The Application.cfc for ColdBox dictates it uses the index.cfm file to process a request:

<cfif findNoCase(‘index.cfm’, listLast(arguments.targetPage, ‘/’))>

<cfset processColdBoxRequest()>

Here you can decide what template to process your coldbox requests or leave it intact and create an interceptor that stops coldbox requests when made to the blog.

Luis F. Majano
President
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Thank you Luis, that it was that I need it to start making tests.