Another way to do this perhaps?

Hi I have a CF app that uses a form page to enter data in the fields, and then passes these fields as SESSION variables to the action page so that usage can see hwo page will look like. Basically, is an application to create new documents/pages html.

Everything works fine so far. I need to continue to add fields to input at various stages, and so I added a text box to add a list of sorts that is a list of references to a particular product associated with the page under construction.

The variable list of cross-references: SESSION.crossRefList then turned to the action page and appear in a list not ordered by < cfloop > as follows:

<cfif SESSION.crossRefList NEQ "">
<ul>
          <cfloop index="crossRefList" list="#FORM.crossRefList#" delimiters="#chr(13)##chr(10)#">
            <li><cfoutput>#crossRefList#</cfoutput></li>
          </cfloop>
        </ul>
</cfif>

Everything is fine with this exception: each page can have only one list or it may have 20 lists. And each list is launched with a brand name which is conveniently placed within a < h3 > tag.

I'd love to be able to for the daughter of data entry to enter in this without having to actually place the first element of the list of < h3 > tags, however, it ezcapes me on how this could be done, since it is completely dynamic and the number if list items is unknown. Here is an example of these lists that I want to talk to, then you can see what I try to understand.

Alpine
SKY10

Apollo
Products Imager 100

Best Hood
K15

Callisto
3094071

Cole-Parmer
Compound Microscope
Trinocular, Catalog No. A-48924-30

Fenix
3069061

Helix
3003051

Kitchenaid

Locos
3072071

Lumos
3071071
3093071

Rumex
3001061

Solaris
3043061

Sunnex
Flexible Halogen Light

Thermadore
Hood Light HG5W36TS

I hope that all makes sense. Once again, the way that I have now, the daughter of data entry must type in < h3 > tags to the text in bold above will bring the correctly. I wish I could have this done for her so that she would not have to worry about this. Thanks for any help and if you need more info, let me know.
OK well the text of the list above is to not translate well when I copied and pasted. The first item in each list must be bold, or in my code would be a < h3 > tag.

Here is a complete example of what I was original to offer.  I'm worried about your solution using the delimiters of same to distinguish the different types of data.


BrandGroup:product1|product2|product3
A Brand:foobar|george|gracie
Another Brand:something|something else|yet another, something





    

#listFirst(BrandGroup,":")#

  • #product#

This should produce the following output:

     

BrandGroup

  • product1
  • product2
  • product3

A Brand

  • foobar
  • george
  • gracie

Another Brand

  • something
  • something else
  • yet another, something

BrandGroup

  • Product1
  • Product2
  • Product3

A brand

  • foobar
  • George
  • Gracie

Another brand

  • something
  • something else
  • Yet one another, something

Tags: ColdFusion

Similar Questions

Maybe you are looking for

  • Why my photos are taken with the iPad Pro only 72 dpi?

    So I publish my own books in which I print A3 color photos... I want to use some of the pictures I took with my iPad 9.7 Pro. For all that it is supposed to be a good camera I do not see why my photos show that only 72 dpi...?  I need at least 300 dp

  • Tecra A11 - 125 - deactivation of the rotation of the screen shortcuts do not work

    Dear users of the forum, I recently bought my new Tecra A11-125 online and so far I really like it! BUT: I work with a translation software where I need the shortcut Ctrl + Alt + arrow down quite often. This shortcut has been configured as an aid to

  • Runescape [win7 x 64]

    HelloI've played runescape since 2007 with windows xp and now I have installed win7 x 64 and java runtime, but when I go to play runescape it says that you have no java and etc...What is the problem? I tried java (install/uninstall) a lot of time, bu

  • remove the old version of widdcomm

    I use XP SP3 and want to install bluetooth USB adapter, but installation is refused, "old version of the software must be deleted". Belkin support answer to this query is as follows: -. Please contact Belkin Technical Support and we apologize for the

  • spell check does not work correctly. It highlights each word

    my spell checker does not work correctly. When I send a message it highlightes, virtually every word and all are spelled corectly - help please