Webmastersite.net
Register Log In

Condit. syntax if use custom text area
Problem with wsn codes and br

Comments on Condit. syntax if use custom text area

befeleme
Experienced

Usergroup: Customer
Joined: Aug 27, 2005
Location: Czech Republic

Total Topics: 48
Total Comments: 82
Posted Feb 26, 2006 - 12:33 AM:

Hallo all and Paul,

Several days I try work out this problem.

I add new custom link field type text area with name areanew and I need this:

When user fill this text to area: this is text in area, some text (for example: OK) display on displaylinks page.

When I use this:
<IF {LINKAREANEW}>OK</IF>

OK is correct display, if user submitt text: this is text in area.

After I go to admin panel/general and I select field areanew for use WSN Codes and for "the pressing of the enter key to be translated to a <br> tag.

After user submit text to area with use wsn codes (bold):
this is text in area

But after procedure above is not work correct conditional syntax and on the displaylinks page display this:


this is text in area>OK


I don't know solution for this.

Is it bug ? Thank for your help.



Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 26, 2006 - 1:05 AM:

This is a limitation of conditionals... your template variable contains html for output to the browser, so the closing > of your first <b> html tag is interpreted as the close of the <IF conditional. You can use PHP like <?php if ("{LINKAREANEW}") { ?> and should have better luck.
befeleme
Experienced

Usergroup: Customer
Joined: Aug 27, 2005
Location: Czech Republic

Total Topics: 48
Total Comments: 82
Posted Feb 26, 2006 - 8:07 AM:

Paul,

thank you thank you thank you.

Now its ok.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.