Monday, 30 January 2017
  6 Replies
  1.5K Visits
0
Votes
Undo
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="http://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)
Wednesday, 01 February 2017 08:50
·
#182725
Accepted Answer
0
Votes
Undo
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?
Tuesday, 31 January 2017 09:33
·
#182638
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Tuesday, 31 January 2017 15:54
·
#182698
0
Votes
Undo
I'll try.

Thanks for that
Tuesday, 31 January 2017 19:47
·
#182705
0
Votes
Undo
No, it dosen't work. :(
Tuesday, 31 January 2017 23:02
·
#182715
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 01 February 2017 08:50
·
#182725
Accepted Answer
0
Votes
Undo
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 10:35
·
#182746
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.