Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFML to HTML

    Is there a way to convert a whole ecommerce site with all of it's many products
    from CFML to HTML for easy spidering?
    I haven't found any snippets anywhere. Can someone point me in the right
    direction on how to do this myself or to acquire a module that's already made
    (who wants to re-invent the wheel?)?

    Thanks!
    Chris

    Loony2nz Guest

  2. Similar Questions and Discussions

    1. Flash and CFML
      I just posted this same question but was in the wrong section of the forums. I am very new to flash but can definitely see the potential of this...
    2. CFML/HTML and flash
      Hello, Ok, here?s what?s going on - I have a CFML Tag that displays a number from my Database. I want to get flash to be able to read this number...
    3. ASP code to CFML
      I try to use AspPDF ActiveX for auto generating PDF file. All examples at AspPDF website writen in ASP/.Net. Would you like to help me converting ...
    4. convert ASP to CFML
      I purchased an RSS feed from coolfocus.com. This applet contains an ASP script. I am attempting to convert this from ASP to CFML. I dont know how...
    5. use cfml in JS
      Hi Is it possible to use ColdFusion functions in Javacript ? e.g. (won't work) <script language="JavaScript" type="text/javascript"> <!--...
  3. #2

    Default Re: CFML to HTML

    Why can't you spider the CFML?

    -brian

    "Loony2nz" <webforumsuser@macromedia.com> wrote in message
    news:d6bod8$290$1@forums.macromedia.com...
    > Is there a way to convert a whole ecommerce site with all of it's many
    products
    > from CFML to HTML for easy spidering?
    > I haven't found any snippets anywhere. Can someone point me in the right
    > direction on how to do this myself or to acquire a module that's already
    made
    > (who wants to re-invent the wheel?)?
    >
    > Thanks!
    > Chris
    >

    Brian Hogue Guest

  4. #3

    Default Re: CFML to HTML

    It's a known fact that for SEO, spidering links that are static HTML files is
    better for positioning than spidering a dynamic page.

    [url]www.mystore.com/product1.html[/url]
    is easier to spider than say:
    [url]www.mystore.com/product_detail.cfm?cat=20&id=32&subcat=3[/url]

    My current ecommerce store, I had to buy a module that would translate my php
    dynamic store catalog into individual HTML pages (great for site maps and
    spiders).

    I was wondering if there's a module for CF that does the same. I'd love to
    make my own, but my CF skills aren't that advanced. So, I'd buy one if it were
    out there, then move to a CF ecommerce host.

    hope that clarifies my question :)

    Thanks!

    Loony2nz Guest

  5. #4

    Default Re: CFML to HTML

    There are a variety of techniques to do this.

    You can use cfhttp to publish a site in .html. Make sure your code recognizes
    the fact that its not running on a dynamic page. Don't bother with things like
    cart display for example, and your CF sessions are subject to expiration since
    you will be hitting .html and cf pages.

    Or you could do the above and publish to a static .cfm. This will keep the
    page above CF's radar in terms of session expiry. You can also go to a lot
    more work and your publishing process can build parts of a template into a
    variable string, and then use cfcontent to publish a whole page with content
    and cf code intact, keeping your dynamic bits like "x items in cart". Very
    complicated and a major PITA to implement.

    Or if your system is db-driven, you could add a field to the page record that
    is its 'friendly' name. Then work in code that will -- if no url parameters
    are found -- search for the friendly name and transparently bring up the proper
    data. Everything stays dynamic.

    I wrote an article in CFDJ years ago that showed still another way, which I
    called "pseudo-static" pages, where you made copies of your core template with
    cffile and your page builder named each copy to the page name you specify.
    Then more CF code parsed out the page name and used that to figure out what
    data to display.

    Seems crazy at first but it is blindingly simple to implement and the pages
    remain totally dynamic, which depending on your resource usage and frequency of
    updates may or may not be good. The article was entitled "Disappear From The
    Invisible Web".

    All of the above methods are used in my ContentMonger Pro cms. Not sure if
    the free ContentMonger Lite retains any of that code. I might have chopped it
    out.

    --Matt--
    MSB Web Systems... [url]http://mysecretbase.com[/url]
    "People will sleep better not knowing how their sausage and politics are made."
    - Bismarck


    MattRobertson Guest

  6. #5

    Default Re: CFML to HTML

    What about using cfsavecontent to enclose the cfml template, and save the
    variable to a file with an html extension.
    OldCFer Guest

Posting Permissions

  • You may not post new threads
  • You may 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