Page-views by convention would let you use a page-view loader (bundled
with the framework, or write your own). This would let you do:
<page-views>
<page-view name="products.index" page="/views/products/index.cfm"/>
<page-view name="products.widgetA" page="/views/products/widgetsA.cfm"/>
<page-view name="products.widgetB" page="/views/products/widgetsB.cfm"/>
<page-view name="products.widgetC"
page="/views/products/widgetsC.cfm"/>
<page-view name="home" page="/views/home.cfm"/>
</page-views>
To this:
<page-views loader="MachII.framework.PageViewLoader" rootPath="/views" />
It would use the directories and file names to build a "dot-style" path
for the page-view names. Basically, it would load pages by using the
path metadata to build useful page-view names. Also, if you have a
different convention then the bundled loaders, you could write your own
loader.
.pjf
<jorge_loyo> said the following on 5/5/2008 11:27 AM:
<page-views>
<page-view-loader type="MachII.framework.PageViewLoader"
path="/views/products/**/*.cfm" nameBase="products" />
</page-views>
This would produce page-views at runtime that would be represented like
this:
<page-view name="products.index" page="/views/products/index.cfm"/>
<page-view name="products.widgetA" page="/views/products/widgetsA.cfm"/>
<page-view name="products.widgetB" page="/views/products/widgetsB.cfm"/>
You could define multiple loaders if needed.
.Peter
Our non-Mach-II CMS uses ISAPI Rewrite to translate content-rich URLs into usable ColdFusion variables, so we would have to create a custom handler if we redesigned the CMS for Mach-II. It would be nice to have some custom options built in.
Perhaps we could have a way to override the buildUrl() methods to implement our own custom handlers? That would be really, really great. If this is already possible without modifying the framework core files, please let me know.
Thanks,
Zack
From: mach-ii-for...@googlegroups.com
[mailto:mach-ii-for...@googlegroups.com] On Behalf Of Peter J.
Farrell
Sent: Monday, May 05, 2008 4:55 PM
To: mach-ii-for...@googlegroups.com
Subject: [Mach-II] Re: what's new in 2.0
Good to know Brian (as I already knew ;-).
Surprised that nobody has mentioned anything about custom SES handlers (i.e.
custom SES urls instead of the default /key/value/ system that Mach-II 1.5+
offers)? I'm curious if anybody would use this?
Our non-Mach-II CMS uses ISAPI Rewrite to translate content-rich URLs into usable ColdFusion variables, so we would have to create a custom handler if we redesigned the CMS for Mach-II. It would be nice to have some custom options built in.
Perhaps we could have a way to override the buildUrl() methods to implement our own custom handlers? That would be really, really great. If this is already possible without modifying the framework core files, please let me know.
--
Matt Woodward
mpwoo...@gmail.com
http://www.mattwoodward.com
Please do not send me proprietary file formats such as Word,
PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html
--
This creates a weird interface between our public-facing URLs and our CMS.
For example, a page in the CMS that is organized under About Us > Our
Company > History would be exposed as
/About_Us/Our_Company/History.htm
ISAPI Rewrite sends the URL path to our CMS request handler, which parses
the path, looks up the corresponding content in the database and displays it
on screen. This creates a nightmare for us because we have to hard-code all
those rewritten URLs into form action attributes, hrefs, and the like. If
there were a way for us to interface this process with Mach-II's
URL-building functions, we could eliminate our dependency on these
hard-coded values.
However, I suspect that our process is a bit too customized for Mach-II to
accommodate without writing some additional components.
Zack
-----Original Message-----
From: mach-ii-for...@googlegroups.com
[mailto:mach-ii-for...@googlegroups.com] On Behalf Of Matt Woodward
Sent: Tuesday, May 06, 2008 9:49 AM
To: mach-ii-for...@googlegroups.com
Subject: [Mach-II] Re: what's new in 2.0
Great question Zack--you can submit any ideas you have on this or
anything else to our Trac site:
http://greatbiztoolsllc-trac.cvsdude.com/mach-ii/