Results 1 to 7 of 7
  1. #1
    ABW Ambassador AddHandler's Avatar
    Join Date
    January 19th, 2005
    Posts
    1,270
    Question Suggestion / Question

    I have been using the REPLACE tag..
    replace(" ","-")

    But I have run into several instances where it would be really nice to be able to replace more than one thing in the same TAG..

    Is this possible?


    If not is it possible to add this to the next edition..??
    ----------------

    THANKS!!!!

  2. #2
    Internet Cowboy
    Join Date
    January 18th, 2005
    Posts
    4,662
    Their supprt docs (or somewhere I read) say that you can use several of these value pairs to do this, but I have never been able to get that to work.


  3. #3
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Quote Originally Posted by UncleScooter
    Their supprt docs (or somewhere I read) say that you can use several of these value pairs to do this, but I have never been able to get that to work.
    That's odd, as I've received no reports of issues with that option. On the contrary, I have had a few 'thank you' emails from customers for adding it.

    Please post your tag here and we can see what's up with the syntax.

    Thanks in advance -
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  4. #4
    ABW Veteran Mr. Sal's Avatar
    Join Date
    January 18th, 2005
    Posts
    6,795
    I have been using the REPLACE tag..
    replace(" ","-")

    But I have run into several instances where it would be really nice to be able to replace more than one thing in the same TAG..
    I don't know if this will help you, but I copied this from the WebMergeHelp.html page:

    You can have any number of comma-separated find-and replace pairs between the parentheses, each pair separated by semi-colons:
    [WM-Field: MyField replace("find","replace";"/","-")]
    Sal.

  5. #5
    ABW Ambassador AddHandler's Avatar
    Join Date
    January 19th, 2005
    Posts
    1,270
    Thanks Mr Sal...
    I will check it out and see if I can get it to work...

    I have version 2.4 and I don;t see anything in the HELP files regarding the replace tag...

    BUT - I will look into it further and see if I just missed it...

    Thanks Again!!

  6. #6
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Quote Originally Posted by AddHandler
    I have version 2.4 and I don;t see anything in the HELP files regarding the replace tag...
    Replace isn't a tag itself, but is an option for the WM-Field tag. Here's the relevant portion from the Help page on the WM-Field tag:

    ----------
    Using the replace attribute

    The replace attribute is a function that tells WebMerge to replace any instances of the string in findString with the value in replaceString for the specified field.

    Each findString and replaceString can be any string of characters contained within quotation marks and separated by commas. You can include quote and comma characters by using the contants "quote" and "comma", respectively, concatenating with the "&" character as needed.

    For example, if your fied data contained:

    He said Hello World

    ...then this:

    [WM-Field: MyField replace("Hello World", quote&"Hello"&comma&" World!"&quote)]

    ...would generate this HTML:

    He said "Hello, World!"

    You can have any number of comma-separated find-and replace pairs between the parentheses, each pair separated by semi-colons:

    [WM-Field: MyField replace("find","replace";"/","-")]

    -----------
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  7. #7
    ABW Ambassador buy_online's Avatar
    Join Date
    January 18th, 2005
    Location
    Richmond, VA
    Posts
    3,234
    The real key here is to make sure you separate each replace-set with a semi-colon. I had the same problem for the longest time, but after much experimentation, made it work.

    If you actually get to read this, let us know if it worked for you - please.

    Fred

  8. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Suggestion
    By Chocolate_Chicken in forum GoldenCAN
    Replies: 2
    Last Post: November 5th, 2005, 07:32 PM
  2. Brian - Question/Suggestion to identify Coupon Sites
    By Oasis in forum ShareASale - SAS
    Replies: 3
    Last Post: July 5th, 2005, 06:10 PM
  3. Todd: A Question/Request/Suggestion
    By Kellie aka Ms. B in forum Commission Junction - CJ
    Replies: 13
    Last Post: June 9th, 2005, 11:21 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
  •