Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    January 18th, 2005
    Posts
    162
    I would like to say inside every index file produced: "You are now in Section [WM-FIELD: FILE_NO]", where FILE_NO is the number of the index file generated. For example, FILE_NO=37 if we are in the index file: "cheap_homes_0037.html". Is this, or something like this, possible? If it isn't, can we incorporate it in Version 2.3?
    Thanks!

    huhu

    ________________________
    The only normal people are the ones you don't know very well.
    Jow Ancis

  2. #2
    ABW Ambassador Mike O's Avatar
    Join Date
    January 18th, 2005
    Location
    Los Angeles area
    Posts
    843
    Not a bad idea, but I'd vote for putting that into 2.4.

    2.3 has been "almost here" for a *really* long time now. It's time to release it and move on, I hope!

    -- Mike

    "Men travel faster now,
    but I do not know if they go to better things."
    -- Willa Cather

  3. #3
    Member
    Join Date
    January 18th, 2005
    Posts
    162
    Thank you, Mike. Incorporating it in 2.4 is fine. Thanks!

    huhu

    ____________________________
    Nowhere is there a pure creation or production of power
    without a corresponding exhaustion of something to
    supply it.
    ______________________________________________
    Michael Faraday, 1840.
    ______________________________________________

  4. #4
    ABW Ambassador Mike O's Avatar
    Join Date
    January 18th, 2005
    Location
    Los Angeles area
    Posts
    843
    Hi, Huhu:

    Uh...I hope you don't have a wrong impression here. I'm just a WebMerge user like you. I don't have any say in what actually gets incorporated in WM.

    The author is Richard, not me. I was just voicing my *opinion* that 2.3 should not be held up to add this feature.

    -- Mike

    "Men travel faster now,
    but I do not know if they go to better things."
    -- Willa Cather

  5. #5
    Member
    Join Date
    January 18th, 2005
    Posts
    162
    MikeO:

    I am using 2.3 Beta with absolutely no problem whatsoever.
    Thanks!

    Huhu

    ___________________________
    Believe those who are seeking the truth; doubt those who find it."
    ___________________________
    Andre Gide, French author and critic (1869-1951).

  6. #6
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by huhu:
    I would like to say inside every index file produced: "You are now in Section [WM-FIELD: FILE_NO]", where FILE_NO is the number of the index file generated. For example, FILE_NO=37 if we are in the index file: "cheap_homes_0037.html". Is this, or something like this, possible?<HR></BLOCKQUOTE>

    The WM-IndexRecordNumber will let you display the number of an index page in your generated page. But alas it will not address the names of generated files. It sounds like what you need it to be able to concatenate field date with serialization for generated file names -- if so, that's at the top of the list for v2.4.

    --
    Richard Gaskin
    Fourth World Media Corporation
    Developer of WebMerge: Publish any database on any site
    ___________________________________________________________
    Ambassador@FourthWorld.com http://www.FourthWorld.com
    Tel: 323-225-3717 AIM: FourthWorldInc

  7. #7
    Member
    Join Date
    January 18th, 2005
    Posts
    162
    Richard,

    I wrote a CGI-script that computes the number of the page generated from the record number [WM-CurrentRecordNumber]. If there are K records per page, the number "num" of the page generated is:

    num=Math.round(([WM-CurrentRecordNumber]-1)/K)+1

    Thank you very much.

    huhu

  8. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. help! no index file name found in field SUBCATEGORY
    By tamalyn in forum WebMerge (Fourthworld.com)
    Replies: 4
    Last Post: September 17th, 2007, 05:34 PM
  2. zip file datafeed file transfer into database
    By rahulcbr in forum Programming / Datafeeds / Tools
    Replies: 13
    Last Post: August 28th, 2007, 04:59 AM
  3. No index.html file Allposters
    By makenoiz in forum Cusimano.com Scripts
    Replies: 1
    Last Post: January 12th, 2006, 11:08 AM
  4. File Structure and File Names...
    By tfmurphhk in forum WebMerge (Fourthworld.com)
    Replies: 4
    Last Post: March 2nd, 2005, 12:51 PM
  5. File this one under "d" for "d'oh!"
    By weisinator in forum Blocking Tips/Advice/scripts
    Replies: 0
    Last Post: November 26th, 2003, 07:27 AM

Posting Permissions

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