954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

cfloops

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

mollypepperpot
Newbie Poster
2 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Are you outputting from a query?

If so you can use the group attribute of the cfoutput tag. Here's an example:

<cfoutput query="queryname" group="title">
  #Title#
  <cfoutput>
    #SubTitle#
  </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.

cmhampton
Junior Poster in Training
79 posts since Feb 2008
Reputation Points: 23
Solved Threads: 10
 

Thanks this was really helpful, I got so bogged down with cflooping that I didn't think to try looking at it differently!!!

mollypepperpot
Newbie Poster
2 posts since Mar 2008
Reputation Points: 10
Solved Threads: 0
 

Glad to help. Let me know if you have any other questions.

cmhampton
Junior Poster in Training
79 posts since Feb 2008
Reputation Points: 23
Solved Threads: 10
 

I'm tasked to work on our LDAP server. It consists of validating the user credentials by checking and matching their passwords stored in the primary Active Directory server. If the passwords are not found there, the passwords will be checked and matched in the secondary Active Directory server. In this step, we want to ensure that the passwords are encrypted and are able to be decrypted going to the secondary server. Right now, I do a research on how to encrypt an decrypt passwords. I need help please see the code

washington.pa.mil

comet.pa.mil

washington.pa.mil

comet.pa.mil

kimsamac
Newbie Poster
1 post since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

Tacking onto a question that's over 2 years old, (and is totally unrelated to what you're asking!), is probably not the best way to get an answer ;) Open a new question ..

arrgh
Posting Whiz
381 posts since Dec 2008
Reputation Points: 32
Solved Threads: 47
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You