Sunday, 25 November 2018
  6 Replies
  662 Visits
0
Votes
Undo
Hi

I have the listings customised, but occasionally I need to be able to show the venue is closed and not display any further information.

Here is the code currently used to display the events list:


{{Event Name:Event_Name#%s | #}} Doors Open: {{Start Time:STARTTIME}} | Programme: {{Act 1 Start Time:Act_1_Start_Time#%s, #}}{{Act 1 Name:Act_1_Name#%s • #}}{{Act 2 Start Time:Act_2_Start_Time#%s, #}}{{Act 2 Name:Act_2_Name#%s • #}}{{Act 3 Start Time:Act_3_Start_Time#%s, #}}{{Act 3 Name:Act_3_Name#%s • #}}{{Act 4 Start Time:Act_4_Start_Time#%s, #}}{{Act 4 Name:Act_4_Name#%s • #}}{{Act 5 Start Time:Act_5_Start_Time#%s, #}}{{Act 5 Name:Act_5_Name#%s • #}}{{Act 6 Start Time:Act_6_Start_Time#%s, #}}{{Act 6 Name:Act_6_Name}} | {{Entry Fee Label:Entry_Fee_lbl}} {{Entry Fee:Entry_Fee}}; {{Entry Fee (Members) Label:Entry_Fee_Members_lbl}} {{Entry Fee (Members) Raw Value:Entry_Fee_Members_raw}} | @ {{Location:LOCATION}} |

{{Link Start:LINKSTART}}More Details ...{{Link end:LINKEND}}

{{People Summary:JEV_PEOPLE_SUMMARY}}


I know the logic will be something like "if Event_Name = CLOSED, don't show any more info". I'm just not sure how to put that into practice.

Would appreciate any help with this.

jEvents Team: Maybe this could be added as part of the module with a radio button?

Regards, David
6 years ago
·
#207405
0
Votes
Undo
Hello David,

So what you can do is have a custom field for closed or if no location output X. How's that sound?

Basically see how you have:

{{Location:LOCATION}}

We allow conditions like:

{{Location:LOCATION#%s# No value}}

So you can output some text of No Value if there is no location.

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!

6 years ago
·
#207414
0
Votes
Undo
Hi Tony

Hmmm - I kind of get it and I think I'm partially there.

In the admin event entry information I set up a new radio field called "closed" with values "yes" and "no" the default being "no".
I then set all remaining fields not to show if the "closed" field was "yes". This simplified the entry part.

The location field isn't important and doesn't seem to show anyway. It's fair to say that 99% of events take place at the regular location, with the odd outdoor event once or twice a year.

Next I added the following at the beginning of the customised "List Row Detail" layout: {{Closed:Closed#%s, #}}. However, I still have to enter "CLOSED" as the Event Name for it to display.

CLOSED | Doors Open - 12:00AM | Programme: | Entry Fee: Closed; Members | More Details ...


You can also view this on the homepage (http://www.perthbluesclub.com)

Now all I need is to make sure that the CLOSED that is displays originates from the "closed" field so I don't have to enter it into the Event Name and also ensure that nothing else shows if that first field displays as "CLOSED", but I think the problem is that some of the info that displays is hard copy - see previous code sent.

Hope that makes some sense.

Thanks, David
6 years ago
·
#207447
0
Votes
Undo
Hello,

Ok so I've done this for you:


<font color="#124bff"><strong><span class="closed${Closed#%s#no}">CLOSED | </span>${Event_Name#%s | #}</strong></font>


and added:


.closedNo {display:none !important;}


To your JEvents Custom CSS.

That means CLOSED | Will only show to the user when the value = Yes to closed within the event :-)

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!

6 years ago
·
#207489
0
Votes
Undo
Thanks Tony

That now gets the "Closed" to show OK when selected in the "Manage Events" page, but I am still getting the details that follow and which seem to be "Required" in the core form.

CLOSED | Doors Open - 12:00AM | Programme: | Entry Fee: 000; Members | More Details ... - the BOLD underlined part should not show when event is "Closed"

Had a bit of a scare at first with all the events showing CLOSED and even got a call from the President, but realised I had to add your new code into the custom layout for "List Events"

I'll keep trying to work it out - maybe if I can access the core form and change the required status of those fields.
Hmm [scratching head!!]

Regards, David
6 years ago
·
#207496
0
Votes
Undo
How do you even go about finding awesome recurve bows and to get an access to the core form btw? I hope you manage to get to the bottom of this, David.
6 years ago
·
#207499
0
Votes
Undo
Which form CoyTub ?

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.