We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Problem with conditional when fieldtype is MX UniEditor

Development and Programming

Sjoerd's avatar
Sjoerd
233 posts
about 16 years ago
Sjoerd's avatar Sjoerd

I want to display a ‘Read more’ link when a specific field is filled with text:

{if nieuws_tekst != ''}
<div class="leesmeer"><a href="http://{url_title_path=nieuws/nieuwsdetail}">Lees meer</a></div>
{/if} </div>

But that’s not working when the fieldtype is MX UniEditor. When I change the fieldtype to textarea it’s working fine. I hope you have an idea, I really need the MXUniEditor!

       
Max Lazar's avatar
Max Lazar
341 posts
about 16 years ago
Max Lazar's avatar Max Lazar
  1. Which version of FF do you used?
  2. Try to use it this way
{if nieuws_tekst}
<div class="leesmeer"><a href="http://{url_title_path=nieuws/nieuwsdetail}">Lees meer</a></div>
{/if} </div>
       
Sjoerd's avatar
Sjoerd
233 posts
about 16 years ago
Sjoerd's avatar Sjoerd
  1. MX UniEditor is used standalone, not integrated in FF Matrix, although I tried that, makes no difference.
  2. That makes no difference
       
Max Lazar's avatar
Max Lazar
341 posts
about 16 years ago
Max Lazar's avatar Max Lazar

FF version pls. + which mode do you used? TinyMCE, Standalone, CKeditor?

       
Sjoerd's avatar
Sjoerd
233 posts
about 16 years ago
Sjoerd's avatar Sjoerd

FF version 1.4 MX UniEditor 1.0.2

Mode is TinyMCE + Tinybrowser. Because I use a custom config file, I already tried one of yours, no difference.

       
Max Lazar's avatar
Max Lazar
341 posts
about 16 years ago
Max Lazar's avatar Max Lazar

ok. I will investigate it. But for solution could you please try now

{if nieuws_tekst:isempty}
    {if:else}
        <div class="leesmeer"><a href="http://{url_title_path=nieuws/nieuwsdetail}">Lees meer</a></div>
    {/if}

or

{if nieuws_tekst:isempty != true}

        <div class="leesmeer"><a href="http://{url_title_path=nieuws/nieuwsdetail}">Lees meer</a></div>
    {/if}
       
Sjoerd's avatar
Sjoerd
233 posts
about 16 years ago
Sjoerd's avatar Sjoerd

The first option works. Thanks a lot!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.