Results 1 to 6 of 6
  1. #1
    Newbie
    Join Date
    April 20th, 2009
    Posts
    11
    WM-If tag and space problem
    Hi,

    I'm using WM-If tag with include and I couldn't get rid of spaces

    For example,
    At the database i have abc abe in XXX field,

    At my detail page template :
    [WM-If: Field: XXX contains abc]
    Code 1<br/>
    [/WM-If]
    [WM-If: Field: XXX contains abd]
    Code 2<br/>
    [/WM-If]
    [WM-If: Field: XXX contains abe]
    Code 3<br/>
    [/WM-If]

    Output of this is :
    Code 1

    Code 3


    So I don't want that empty place between Code 1 and Code 3,how should i make template code?

  2. #2
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    England
    Posts
    4,327
    you mean that you don't want the <br> in between the two sets of code?

    your template is adding a line break when the if statement is correct

    so you have code 1<br>code 3 so of course there will be a space

  3. #3
    Newbie
    Join Date
    April 20th, 2009
    Posts
    11
    Quote Originally Posted by Julian
    you mean that you don't want the <br> in between the two sets of code?

    your template is adding a line break when the if statement is correct

    so you have code 1<br>code 3 so of course there will be a space
    <br>= new line

    so it's
    Code1(new line)
    Code3(new line)
    ......

    but Webmerge is making

    Code1(new line)
    (new line)
    Code 3(new line)

    So I don't want the empty place between code 1 and code 3

  4. #4
    Newbie
    Join Date
    April 20th, 2009
    Posts
    11
    nobody knows? This is really important for me

  5. #5
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    England
    Posts
    4,327
    try keeping it all on one line

    [WM-If: Field: XXX contains abc]Code 1<br/>[/WM-If]

  6. #6
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    Check out v2.5.2, which corrects the extra-line issue:
    http://www.fourthworld.com/products/.../download.html
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  7. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. CSS Nested Div Tag Problem
    By Uncle Rico in forum Programming / Datafeeds / Tools
    Replies: 5
    Last Post: April 26th, 2008, 04:39 PM
  2. Can I put a fied tag in an include tag???
    By Doug247 in forum WebMerge (Fourthworld.com)
    Replies: 1
    Last Post: August 11th, 2003, 09:29 AM
  3. Smart Tag Meta Tag Not Working?
    By gettnthar in forum Suspicious Activity!
    Replies: 5
    Last Post: January 29th, 2002, 06:41 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
  •