Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
TBJ #1
NUMBERING
I have recently created a search interface and using Verity. I have indexed
several directories on the server, HOWEVER, there were certain directories that
I didnt want to be searched. I couldn't figure out how to do that, so I decided
to include a cfif statement on the results page which states if the url does
not contain the name of the directory, then show results:
<cfif URL DOES NOT CONTAIN "newsletter">
#currentRow#. Document: <a
href="#XOSResults.URL#">#GetFileFromPath(Key)#</A>
<br>
<!--- title for files --->
Document Title (if any): #Title#
<br>
<!--- summary--->
Summary: #Summary#<br>
<!--- score --->
Score: #Score#<br><br>
</cfif>
The only problem is the numbering gets messed up because some of the rows are
not being displayed because the directory path contains the newsletter
directory and therefore I might get :
1.fkdfjkdf
3. fldjfd
4. ldjflkd
8. ldjfldj
Is there anyway at all for me to force the numbering? Help! It seems like it
should be simple but i've tried many different things with cfset and nothing
works.
TBJ Guest
-
Numbering Chapters
I am trying to make a report in InDesign. I would like to be able to number the chapters and sub-chapters. Example: 1. chapter Family 1.1 chapter... -
Numbering paragraphs!
1. I have 15 paragraphs and I want it to be numbered or selected by a circle or sth like this. How can I do it automatically? 2. How can I count... -
Auto numbering
When will indesign have auto numbering? I just finished a 300 page guitar book (www.sheetsofsound.net) which used Chapter.ExerciseNum.Page in the... -
Bates numbering
I would like to add Bates numbers (an overall numbering system for multiple documents) to batches of pdf documents. How can I do this? -
bullets and numbering
Is it possible to automate the numbering of paragraphs--a numbered list--using a standard outline-type hierarchy, or is the only solution to type... -
philh #2
Re: NUMBERING
You'll have to roll your own counter. Since you're spinning through a result
set and ignoring some rows, you can't depend on the CURRENTROW variable for a
numbered list. Try this: <cfset mycounter = 0> <cfoutput query='XOSResults'>
<cfif URL DOES NOT CONTAIN 'newsletter'> <cfset mycounter = mycounter+1>
#mycounter#. Document: <a href='#XOSResults.URL#'>#GetFileFromPath(Key)#</A>
<br> <!--- title for files ---> Document Title (if any): #Title# <br> <!---
summary---> Summary: #Summary#<br> <!--- score ---> Score: #Score#<br><br>
</cfif> </cfoutput> HTH,
philh Guest
-
TBJ #3
Re: NUMBERING
Thanks Phil, it worked like a charm. Now my other small issue is that the
RecordCount variable I am using to display the number of documents returned is
in correct. Is there a way to take the last counter variable number and
incorporate it as the total number of documents returned to the page?
Thanks so much.
TBJ Guest
-
philh #4
Re: NUMBERING
I suppose you could do a Query of Queries and select the recordcount for
records that match your criteria. So, Get the Verity result; Query it for
the criteria ('URL NOT LIKE '%newsletter%'') (I'm not sure of QofQ's
capabilities here :-| ); store the recordcount of that query to your total
variable (or just display). If this doesn't work you'll have to spin through
the Verity recordset twice: once to get your record count and once to display
the pertinent results. HTH,
philh Guest



Reply With Quote

