Friday, 06 December 2013
  5 Replies
  1.9K Visits
0
Votes
Undo
Is there a setting so that fields that are left empty, or select-lists that are unchanged, do not display at all? (Label and contents are suppressed.)

Thank you.
Friday, 06 December 2013 09:29
·
#114690
0
Votes
Undo
Yes - there is a club member article that describes how to set up your layout for this sort of conditional output. http://www.jevents.net/jevents-15-topme ... ing-values

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!

Tuesday, 07 January 2014 05:51
·
#114691
0
Votes
Undo
Geriant,

After reading the article you provided I am not able to get things to work. I think I am doing this is the correct place. I am currently editing in the JEvents Custom Layouts->Event Detail Page.

My custom fields are set up and working. I've tried getting the example on the page to work using a field of mine called 'registrationInfo'. If there is information then I want the field to display. Here is what I have...
{{registrationInfo:registrationInfo#Registration info is %s#No Registration info}}

However nothing shows up, even when there is info.

My ultimate goal however is to get the 'registrationInfo' field to display only if a boolean field called "registration' is checked to 'Yes'. I am not seeing an example on how to do this, could you provide me with one? Or a link? I've been searching with no luck.

Final question, I assume the %s is for string, what if I am using an html field?
Tuesday, 07 January 2014 08:38
·
#114692
0
Votes
Undo
%s is to substitute the string value (even if its HTML it should work) and is used by the php function sprintf so in theory this would allow formatting of dates and numbers too.

Did you enable you layout after editing it (make sure there is a green tick in the list of layouts).

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!

Wednesday, 08 January 2014 21:51
·
#114693
0
Votes
Undo
Sorry for the delayed response.

Yes, the layout is enabled. I am able to change the layout using the field dropdowns like normal. Just having trouble getting this conditional statement to work.
Thursday, 09 January 2014 09:14
·
#114694
0
Votes
Undo
Can you send me login details via PM so I can take a look for you?

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!

  • 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.