By Guest on Monday, 30 January 2017
Replies 6
Likes 0
Views 1.6K
Votes 0
Hello experts,

ist it possible to hide the whole html-code that contains to an custom field?

For example:
<div class="row">
<div class="inhalt links col-md-3 col-sm-4 col-xs-5">{{Trainer Beschreibung:Trainer_lbl}}:</div>
<div class="inhalt rechts col-xs-7"><a href="index.php/cb-profile/{{Trainer Raw Value:Trainer_raw}}">{{Trainer:Trainer}}</a></div>
</div>

I want to hide the whole code, when {{Trainer:Trainer}} is empty.

Thanks fpr help! (y)
I think I got the mistake that happened...

I entered the code at the "CODE"-Tab in JCE and JCE modified the entry with "spaces" and lowecase characters.

Now I disabled the editor and now it works.

Is this a bug in JCE?
·
Wednesday, 01 February 2017 08:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You can hide it with CSS so:


<div class="row" style="{{Trainer:Trainer# #display:none !important;}} ">
<div class="inhalt links col-md-3 col-sm-4 col-xs-5">{{Trainer Beschreibung:Trainer_lbl}}:</div>
<div class="inhalt rechts col-xs-7"><a href="http://index.php/cb-profile/{{Trainer Raw Value:Trainer_raw}}">{{Trainer:Trainer}}</a></div>
</div>


should work.

Many thanks
Tony
·
Tuesday, 31 January 2017 09:33
·
0 Likes
·
0 Votes
·
0 Comments
·
I'll try.

Thanks for that
·
Tuesday, 31 January 2017 15:54
·
0 Likes
·
0 Votes
·
0 Comments
·
No, it dosen't work.
·
Tuesday, 31 January 2017 19:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Did you enable the layout? If the field does not contain a value the above should hide the field. Can you post a link to see it in action?

Many thanks
Tony
·
Tuesday, 31 January 2017 23:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

No it's not a bug with JCE it's more a bug with your inserting of the code. You should also enter code more or editor off when input code. JCE is just conforming the input to universal standards.

Many thanks
Tony
·
Wednesday, 01 February 2017 10:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post