Professional Web Applications Themes

Indexing dynamic pages on my site with cfindex - Coldfusion - Advanced Techniques

I have a CF page that returns a user's profile - the data on the profile is coming from multiple database tables. I would like to know if there's a simple way to index the profile pages using cfindex. In CFMX 6.1 I think I was able to do something like the code posted below I could have sworn that I had this working with the attached code. Now with CM 7, this isn't indexing the requested page. Anyone have any thoughts? F. <cfindex collection="collection" action="update" type="file" key="http://mysite.com/file.cfm?file_id=#FILE_ID#">...

  1. #1

    Default Indexing dynamic pages on my site with cfindex

    I have a CF page that returns a user's profile - the data on the profile is
    coming from multiple database tables. I would like to know if there's a simple
    way to index the profile pages using cfindex.

    In CFMX 6.1 I think I was able to do something like the code posted below

    I could have sworn that I had this working with the attached code. Now with CM
    7, this isn't indexing the requested page.

    Anyone have any thoughts?

    F.


    <cfindex collection="collection" action="update" type="file"
    key="http://mysite.com/file.cfm?file_id=#FILE_ID#">

    flavio Guest

  2. #2

    Default Re: Indexing dynamic pages on my site with cfindex

    This may do the job for you. Run your <CFQUERY NAME="myQuery" ...> where you
    generate ALL user profiles. Then add QUERY="myQuery" to your CFINDEX tag,
    indicating KEY, TITLE, BODY and the CUSTOM attributes the appropriate fields
    from your query.

    jdeline Guest

  3. #3

    Default Re: Indexing dynamic pages on my site with cfindex

    I can't do it that way. The information on the profile page comes from 5
    different tables. Some of the tables return 1 record, while others return
    multiple records.

    I think I found a way to index dynamic content with cfindex... anybody else
    try this? (Take a look at the attached code)

    It seems to work... I'm not sure if there are any drawbacks here...

    F.

    <cfhttp method="get" url="http://mysite.com/profile.cfm?uid=10"></cfhttp>
    <cfindex
    collection="collection"
    action="update"
    type="custom"
    title="Title of page"
    key="http://mysite.com/profile.cfm?uid=10"
    body="#cfhttp.FileContent#"
    language="english">

    flavio Guest

Similar Threads

  1. InDesign CS2 Indexing-Problems with pages numbers lining up
    By april_morgan@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 1
    Last Post: September 21st, 04:01 PM
  2. Problem with indexing site
    By tania_aed in forum Macromedia ColdFusion
    Replies: 1
    Last Post: June 20th, 08:00 PM
  3. Verity Indexing remote site
    By Cathe in forum Coldfusion - Getting Started
    Replies: 2
    Last Post: May 26th, 03:32 PM
  4. Indexing PDF with CFINDEX
    By gggggg in forum Macromedia ColdFusion
    Replies: 1
    Last Post: April 28th, 04:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139