J and Beyond 2013 | An International Joomla! Conference - May 31st - 2nd, 2013, Noordwijkerhout, The Netherlands
It is currently Sat May 18, 2013 12:11 pm

Advanced date formatting latest events module

Discuss JEvents 2.x for Joomla 1.5-2.5 here - club members can use the special club forum for faster response times.
Forum rules
When requesting support, please copy and paste the 'Version information for Support Forum' from the JEvents Control Panel into your post. If you cannot see this, please enable JEvents project news within it's configuration. Also, if you get a 500 Error, Enable Joomla! Maximum Error Reporting and view the page again, you should now have a more detailed error which will help us to resolve you issue quickly.

Advanced date formatting latest events module

Postby SvenJ » Fri Mar 15, 2013 9:58 am

Hi,
I am trying to achieve an ideal date and time output but the conditions are conflicting somewhat and obviously can not be nested.

I have looked carefully at http://www.jevents.net/jevents-15-topme ... nts-module
bu can't get what I want to work.

This is my logic in Words:

Startdate Always shown.
Starttime shown if not All day event is marked [!a]

Enddate shown only for multi day events [m]
Endtime shown if not All day [!a] AND if not No end time [!e]

The closest I get is this:

Code: Select all
[!a: ${startDate(V%V, %a %e %b %H:%M)}] [a: ${startDate(V%V, %a %e %b )}] - [m: ${endDate(%a %e %b)}] [!e: ${endDate(%H:%M)}]


It doesn't work well for "Multi day, No specific endtime".

Does anybody have an idea how I should do to achieve what I am aiming for?

Joomla 2.5.9
Jevents 2.2.8
Latest Jevents 2.2.5

Regards

Sven
SvenJ
Posts: 4
Joined: Tue Nov 27, 2012 5:47 pm

Re: Advanced date formatting latest events module

Postby dpsghh » Fri Mar 15, 2013 11:24 am

I wished too, these could be nested, but you may take a look at my latest events:
Code: Select all
${startDate(%a. %d. %b. %Y)}[!a:, ${startDate(%H:%M)}][m: -<br>${endDate(%a. %d. %b. %Y)}]
${title}

Best regards, MacJoomla
User avatar
dpsghh
Gold Members
Posts: 644
Joined: Sun Jun 28, 2009 10:05 am
Location: Germany

Re: Advanced date formatting latest events module

Postby SvenJ » Fri Mar 15, 2013 12:42 pm

Our format is similair but you have no end "time" displayed at all.

I do wish to display the end time when appropriate.

/Sven
SvenJ
Posts: 4
Joined: Tue Nov 27, 2012 5:47 pm

Re: Advanced date formatting latest events module

Postby Geraint » Fri Mar 15, 2013 1:46 pm

SvenJ wrote:It doesn't work well for "Multi day, No specific endtime".

How does it output and what would you prefer?
------------
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!
User avatar
Geraint
Posts: 30507
Joined: Fri Feb 15, 2008 6:14 pm

Re: Advanced date formatting latest events module

Postby SvenJ » Fri Mar 15, 2013 2:02 pm

SvenJ wrote:This is my logic in Words:

Startdate Always shown.
Starttime shown if not All day event is marked [!a]

Enddate shown only for multi day events [m]
Endtime shown if not All day [!a] AND if not No end time [!e]


Starttime works fine in all combinations.
The output for Multiday with No specific end time marked is (obviously) without end date.

/Sven
SvenJ
Posts: 4
Joined: Tue Nov 27, 2012 5:47 pm


Return to Jevents 2.x (Free Access)

Who is online

Users browsing this forum: Google [Bot]

Main Menu

User Menu

Hosted By


Who is online

In total there is 1 user online :: 1 registered and 0 hidden (based on users active over the past 5 minutes)
Most users ever online was 94 on Tue Sep 01, 2009 12:33 am

Users browsing this forum: Google [Bot]

Login Form