Hi Guys,
I'm a bit confused on how to use custom columns with the new cfindex/
cfcollection functionality in 2.0
Previously, I would simply create a catalog by declaring it's name.
<cfcollection action="create" collection="my_collection">
And then, as I wanted to add data, I would simply use the cfindex
function. Here's an example of what I normally do.
<cfindex
action="update"
collection="my_collection"
type="custom"
key="#key#"
title="#title#"
urlPath=""
body="#variables# #other_variables#"
category ="#category_name#"
custom1 = "#date_created#"
custom2 = "#user_url#"
custom3 = ""
custom4 = ""
>
However, I want to take advantage of the unlimited custom fields
feature as I have a few catalogs that need it.
How do I declare the new columns? I was thinking I'd just name them
whatever I wanted in the cfindex tag, but that's not working for me.
Here's what I tried to do, to no avail.
<cfindex
action="update"
collection="my_collection"
type="custom"
key="#key#"
title="#title#"
urlPath=""
body="#variables# #other_variables#"
category ="#category_name#"
date_created = "#date_created#" (date_created
instead of custom1)
user_url = "#user_url#" (user_url instead of
custom2)
custom3 = ""
custom4 = ""
>
Stumped. Any ideas on how to declare and use this new feature?
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en