Document Title (if any): #Title#
Summary: #Summary#
Score: #Score#

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. [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => TBJ [ip] => webforumsuser@m [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> Document Title (if any): #Title#
Summary: #Summary#
Score: #Score#

HTH, [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => philh [ip] => phil_hegedusich [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> NUMBERING - Coldfusion - Advanced Techniques

NUMBERING - Coldfusion - Advanced Techniques

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#. Doent: <a href="#XOSResults.URL#">#GetFileFromPath(Key)#</A> <br> <!--- title for files ---> Doent Title (if any): #Title# <br> <!--- summary---> Summary: #Summary#<br> <!--- score ---> Score: #Score#<br><br> </cfif> The only ...

  1. #1

    Default 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#. Doent: <a
    href="#XOSResults.URL#">#GetFileFromPath(Key)#</A>
    <br>
    <!--- title for files --->
    Doent 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

  2. #2

    Default 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#. Doent: <a href='#XOSResults.URL#'>#GetFileFromPath(Key)#</A>
    <br> <!--- title for files ---> Doent Title (if any): #Title# <br> <!---
    summary---> Summary: #Summary#<br> <!--- score ---> Score: #Score#<br><br>
    </cfif> </cfoutput> HTH,

    philh Guest

  3. #3

    Default 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 doents returned is
    in correct. Is there a way to take the last counter variable number and
    incorporate it as the total number of doents returned to the page?

    Thanks so much.

    TBJ Guest

  4. #4

    Default 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

Similar Threads

  1. Numbering Chapters
    By Paul_vM5@adobeforums.com in forum Adobe Indesign Windows
    Replies: 4
    Last Post: August 22nd, 06:00 PM
  2. Numbering paragraphs!
    By Discover@adobeforums.com in forum Adobe Indesign Windows
    Replies: 0
    Last Post: May 18th, 04:31 PM
  3. Auto numbering
    By jack_zucker@adobeforums.com in forum Adobe Indesign Windows
    Replies: 9
    Last Post: May 7th, 10:42 AM
  4. Bates numbering
    By Jo-Hanna_Read@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 2
    Last Post: April 23rd, 10:33 AM
  5. bullets and numbering
    By Nancy_Hoft@adobeforums.com in forum Adobe Indesign Windows
    Replies: 8
    Last Post: April 20th, 11:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •