•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 361,630 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,166 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser:
Views: 718 | Replies: 3
![]() |
•
•
Join Date: Mar 2008
Posts: 2
Reputation:
Rep Power: 0
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ColdFusion Marketplace
Other Threads in the ColdFusion Forum
- Previous Thread: Form with Image Link/Javascript Issue
- Next Thread: Using #parameter# string of databases


Linear Mode