| | |
cfloops
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2008
Posts: 2
Reputation:
Solved Threads: 0
I'm trying to make a list of sub titles that links to mid topic jumps on another page. As the sub titlles are the same for each main title and the midtopic jumps increment numerically- I thought I could use cfloop - but I can't get it to work - either my titles all have to be the same or my links all have to be the same.... can anyone help??
I tried using nested loops but that made it worse as the inner loop had to loop through before the outer loop ... hope that makes sense!!! Can someone help me??
As you may have guessed - I'm a noobie so I would be grateful for any suggestions
I tried using nested loops but that made it worse as the inner loop had to loop through before the outer loop ... hope that makes sense!!! Can someone help me??
As you may have guessed - I'm a noobie so I would be grateful for any suggestions
Are you outputting from a query?
If so you can use the group attribute of the cfoutput tag. Here's an example:
This would ouput the following:
Title1
Subtitle1
Subtitle2
Subtitle3
Title2
Subtitle1
Subtitle2
Title3
Subtitle1
Post some of your code and I'll have a look at it.
If so you can use the group attribute of the cfoutput tag. Here's an example:
ColdFusion Syntax (Toggle Plain Text)
<cfoutput query="queryname" group="title"> #Title# <cfoutput> #SubTitle#<br /> </cfoutput> </cfoutput>
This would ouput the following:
Title1
Subtitle1
Subtitle2
Subtitle3
Title2
Subtitle1
Subtitle2
Title3
Subtitle1
Post some of your code and I'll have a look at it.
![]() |
Other Threads in the ColdFusion Forum
- Previous Thread: Form with Image Link/Javascript Issue
- Next Thread: Using #parameter# string of databases
| Thread Tools | Search this Thread |





