Results 1 to 11 of 11
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    25
    Limiting the number of characters or words displayed
    Does anyone know if it is possible to limit the number of characters or words displayed in the FIELD tag?

    I have a description field that I have lets say 100 words. I'd like only 25 words to display in my subcategory page for each record or "200" characters with a "more info" link to the full description of the item so I can load up with keywords, etc. Can this be done in webmerge?

  2. #2
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Not currently. It could be done in most databases, but if you're working from a provided feed that's a lot of work to set up such a macro.

    I've been considering adding a "maxwords" option for the WM-Field tag, which would look like this:

    [WM-Field: maxwords=25]

    Cover what you need?
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  3. #3
    Internet Cowboy
    Join Date
    January 18th, 2005
    Posts
    4,662
    Quote Originally Posted by FourthWorld
    Not currently. It could be done in most databases, but if you're working from a provided feed that's a lot of work to set up such a macro.

    I've been considering adding a "maxwords" option for the WM-Field tag, which would look like this:

    [WM-Field: maxwords=25]

    Cover what you need?
    That would be awesome. Then we could set up a tag for "...more" at the end of the 25 words with a link on "more" to the product. I would prefer it be set as a variable number of characters, not words.


  4. #4
    ABW Ambassador Mike O's Avatar
    Join Date
    January 18th, 2005
    Location
    Los Angeles area
    Posts
    843
    I'd prefer a number of words, not characters. That way the text would end more cleanly.

    Perhaps have the option of either "maxwords" or "maxcharacters" ??
    A joy shared is a joy doubled.
    A burden shared is a burden lightened.

  5. #5
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Quote Originally Posted by Mike O
    I'd prefer a number of words, not characters. That way the text would end more cleanly.
    I thought about maxchars, but had the same reservation as you about clean breaks.

    So okay to go forward with simply maxwords, and leave maxchars out for now?
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  6. #6
    Internet Cowboy
    Join Date
    January 18th, 2005
    Posts
    4,662
    Either way is fine with me. Chop a word or chop a sentence. It is all in the name of uniformity.


  7. #7
    Newbie
    Join Date
    January 18th, 2005
    Posts
    25
    I think the maxwords option would be just fine. It sounds like that is the popular answer anyway! This would help to unclutter my pages.

    Awesome feedback. This is really a great tool and forum. I've used the product today for the first since buying it and added over 800 pages to my site. It will take longer to ftp the files to my server than it did to create them once I got my templates made.

  8. #8
    ABW Veteran Mr. Sal's Avatar
    Join Date
    January 18th, 2005
    Posts
    6,795
    Quote Originally Posted by UncleScooter
    Either way is fine with me. Chop a word or chop a sentence. It is all in the name of uniformity.
    I say the same thing!

    just give us a:

    [WM-Field: maxwords=25]

    or

    [WM-Field: maxchars=25]

    Good Idea!

    Sal.

  9. #9
    ABW Ambassador buy_online's Avatar
    Join Date
    January 18th, 2005
    Location
    Richmond, VA
    Posts
    3,234
    Quote Originally Posted by FourthWorld
    Not currently. It could be done in most databases, but if you're working from a provided feed that's a lot of work to set up such a macro.

    I've been considering adding a "maxwords" option for the WM-Field tag, which would look like this:

    [WM-Field: maxwords=25]

    Cover what you need?
    Add my vote - Yes. Although, I like the "words' option better than chartacters (sorry). Word counts, are tougher to do, than characters for me - so any help would be appreciated.

    Fred
    PS: Richard, received your "Package" today - Awesome, thank you!

  10. #10
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Okay, maxwords it is. I need to finish the v2.4.1 update soon (waiting for one confirmation from a tester), and then it's the fast-track to v2.5, which will have this new option.
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  11. #11
    Member
    Join Date
    April 20th, 2005
    Posts
    112
    What about maxsentence then? Would that be possible to add?

  12. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. MySQL + English Characters + Mandarin Characters
    By popdawg in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: October 8th, 2006, 01:05 PM
  2. Detecting the number of ads displayed
    By Trilitech in forum Search Engine Optimization
    Replies: 14
    Last Post: August 17th, 2005, 09:33 PM
  3. Limiting number of items in list
    By jonnig in forum Cusimano.com Scripts
    Replies: 1
    Last Post: December 27th, 2002, 07:00 PM

Posting Permissions

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