Search code examples
coldfusiondreamweavercommonspot

Error when using # symbol with Dreamweaver and CommonSpot libraries


Does anyone know how to manage libraries in Dreamweaver for CommonSpot? (I'm very new to CommonSpot).

CommonSpot is returning an error wherever I use # symbol. Somehow I managed to remove all of the # symbols from the libraries. But I want to create libraries in Dreamweaver which defines a library as starting with:

<!-- #BeginLibraryItem ... 

This causes a problem because of the # symbol.

Does CommonSpot have anything like library? Or are there any escape characters I can use to achieve this?


Solution

  • CF must be evaluating the comment. Here are a couple ideas.

    • Check if there is a cfoutput tag around the entire file. If so, adjust them to not be around the comment

    If currently this

    <cfoutput>
    ...
    <!-- #BeginLibraryItem ... -->
    ...
    </cfoutput>
    

    try this

    <cfoutput>
    ...
    </cfoutput>
    <!-- #BeginLibraryItem... -->
    <cfoutput>
    ...
    </cfoutput>
    
    • Another option that might work depending on exactly how the library comments are evaluated is to make them CFML comments with 3 dashes instead of 2 to have the # ignored

    like so...

    <!--- #BeginLibraryItem ... --->