Results 1 to 10 of 10
  1. #1
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    United Kingdom
    Posts
    1,797
    Just playing around with WebMerge and I have a feed with extremely long and boring descriptions. Basically, I only want to show the first 200 or so characters of the description field and leave out the rest. Is there a way to do this ?

  2. #2
    ABW Ambassador Nature Boy's Avatar
    Join Date
    January 18th, 2005
    Location
    Tennessee
    Posts
    1,423
    There is if your using Excel:

    Create another column and insert this:

    =IF(LEN(A2)<200,A2,(LEFT(A2,200)))

    A2 = Description field
    200 = Number of Characters in the field you want to use.

    This cleans it up pretty good, just add "..." and maybe a link that says "more information" to the end and your all set.

    Maybe we can twist Richard arm to add us a Webmerge tag that will do the same thing
    Scott
    If you can't dazzle them with brilliance, then baffle them with bulls#!t
    Don't tell me that you'll do it... SHOW ME.
    Just because everyone else is drinking it is no reason for me to drink the KOOL-AID.

  3. #3
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    United Kingdom
    Posts
    1,797
    Thanks, Nature Boy, works a treat. A WebMerge tag would be good, though.

  4. #4
    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 markymark:
    Thanks, Nature Boy, works a treat. A WebMerge tag would be good, though. <HR></BLOCKQUOTE>

    I agree.

    Maybe what we need is another option for the WM-Field tag. We could limit it to a specified number of characters, words, or lines -- any other limits we might consider?
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  5. #5
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    United Kingdom
    Posts
    1,797
    All three of those options would be useful, in my opinion. Plus if there's html already in the datafeed, you could limit it to the closing &lt;/p&gt; tag or the second &lt;br&gt; tag or whatever html tag you choose.

  6. #6
    ABW Ambassador Nature Boy's Avatar
    Join Date
    January 18th, 2005
    Location
    Tennessee
    Posts
    1,423
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by Fourth World:
    Maybe what we need is another option for the WM-Field tag. We could limit it to a specified number of characters, words, or lines -- any other limits we might consider? <HR></BLOCKQUOTE>
    Scott
    If you can't dazzle them with brilliance, then baffle them with bulls#!t
    Don't tell me that you'll do it... SHOW ME.
    Just because everyone else is drinking it is no reason for me to drink the KOOL-AID.

  7. #7
    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 markymark:
    Just playing around with WebMerge and I have a feed with extremely long and boring descriptions. Basically, I only want to show the first 200 or so characters of the description field and leave out the rest. Is there a way to do this ? <HR></BLOCKQUOTE>

    This is useful to a lot of people. What should the syntax look like?

    I'm considering an attribute like this:

    [WM-Field: MyField: len="200" ellipsis]

    The "ellipsis" would be optional, and would put "..." at the end of the text.

    Would that work? Can you think of a simpler way to express that, or maybe I'm missing something and it needs more options?
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  8. #8
    Member MarkJH's Avatar
    Join Date
    January 18th, 2005
    Posts
    68
    What if the first 200 characters broke into a word? Wouldn't you want an option that stopped at the nearest space before 200 characters?
    [b][url=www.bandlink.net]Bandlink.net[/url][/b]

  9. #9
    ABW Ambassador Nature Boy's Avatar
    Join Date
    January 18th, 2005
    Location
    Tennessee
    Posts
    1,423
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by Fourth World:
    I'm considering an attribute like this:

    [WM-Field: MyField: len="200" ellipsis]
    <HR></BLOCKQUOTE>Sounds good
    Scott
    If you can't dazzle them with brilliance, then baffle them with bulls#!t
    Don't tell me that you'll do it... SHOW ME.
    Just because everyone else is drinking it is no reason for me to drink the KOOL-AID.

  10. #10
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    532
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by MarkJH:
    What if the first 200 characters broke into a word? Wouldn't you want an option that stopped at the nearest space before 200 characters? <HR></BLOCKQUOTE>

    I'll settle for truncating characters as I already do this with Excel using the above example; however it would be handy to have WM do it natively...

    But instead of "len" for length how about "tru" for truncate or "tri" for trim...or how about "cut" for cut

  11. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Cut this affiliate off?
    By MotoMerchant in forum Rakuten LinkShare - LS
    Replies: 23
    Last Post: November 12th, 2006, 04:23 AM
  2. What's the parasites cut?
    By Zeus in forum Rakuten LinkShare - LS
    Replies: 27
    Last Post: June 17th, 2004, 10:05 AM
  3. Cut the horse*#@(
    By styleforfree in forum Commission Junction - CJ
    Replies: 42
    Last Post: July 17th, 2003, 11:39 AM
  4. How can I cut down on bandwith?
    By JadaKiss in forum Midnight Cafe'
    Replies: 4
    Last Post: November 8th, 2001, 12:06 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
  •