Ok. Maybe a stupid question, but I usually just use the tag.

<cfindex
action="update"
collection="pages"
type="custom"
key="#PID#"
title="#index_pages.title#"
urlPath="#get_dns.dns_domain#/#get_dns.dns_subfolder#"
body="#index_pages.title# #get_dns.dns_subfolder#
#index_category_lookup.category_name#"
category ="#index_category_lookup.category_name#"
custom1 = "#index_pages.created#"
custom2 = "#user_url#"
custom3 = ""
custom4 = ""
>

Could I not just add another column to the tag called "date_created" such
as

<cfindex
action="update"
collection="pages"
type="custom"
key="#PID#"
title="#index_pages.title#"
urlPath="#get_dns.dns_domain#/#get_dns.dns_subfolder#"
body="#index_pages.title# #get_dns.dns_subfolder#
#index_category_lookup.category_name#"
category ="#index_category_lookup.category_name#"
date_created = "#index_pages.created#"
custom2 = "#user_url#"
>

If not, I'm not quite sure how to apply the arg structure you mentioned to
this.

On Fri, Nov 18, 2011 at 4:00 PM, Alan Williamson (aw2.0 cloud experts) <
[email protected]> wrote:

> Correct.
>
> As long as you pass them using:
>
> args = {
>  collection : "customcollection",
>  query : myQuery,
>  key : "COLUMN_1"
>  body : "COLUMN_2,COLUMN3",
>  custommap :{
>    date_created: "COLUMN4"
>  }
> };
> results = CollectionIndexCustom( argumentCollection=args );
>
>
> http://openbd.org/manual/?/**search <http://openbd.org/manual/?/search>
>
>
> Jason King wrote:
>
>> Question though
>>
>> For the custom fields... I have custom1, custom2, etc.
>>
>> Do they have to remain custom, or can I now label them whatever I want?
>>
>> For instance, if custom1 is actually for a 'date_created' column, can I
>> just use date_created instead of custom1 ?
>>
>>
> --
> online documentation: http://openbd.org/manual/
>  google+ hints/tips: 
> https://plus.google.com/**115990347459711259462<https://plus.google.com/115990347459711259462>
>    
> http://groups.google.com/**group/openbd?hl=en<http://groups.google.com/group/openbd?hl=en>
>

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

Reply via email to