Upcoming events module and menu item

More
10 years 7 months ago #57283 by marc.light
It's the pass dates that I don't want to show. Upcoming events are future dates. Maybe I'm not getting your solution but I can't see how it would do what I'm trying to do.

Let's say I have 3 items: Item Name, event date

Event 1, August 14, 2015
Event 2, October 3, 2015
Event 3, November 23, 2015

The module is configured to show upcoming events only based on the actual date in ascending order so it shows

Event 2, October 3, 2015
Event 3, November 23, 2015

and that's exactly what I need. The problem is that I can't get the same layout with a menu item. I could use the unpublished date but I don't want users to input 2 dates when they input events. They will probably forget anyway.

I really think that this is a must to be able to use FLEXIcontent for events and would be easier to manage when all your content is at the same place instead of having to install another component just for events. But this might not be a direction that FLEXIcontent wants to take but when you look at it, not much is missing.

Thanks again.

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #57284 by Macjoomla
Just by the way, this is what i thought about too… :whistle:

marc.light wrote: …would be easier to manage when all your content is at the same place instead of having to install another component just for events. But this might not be a direction that FLEXIcontent wants to take but when you look at it, not much is missing..

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #57421 by marc.light
Now back to the Universal Module.

I need a different date format. I was able to get it with the following:

$db = JFactory::getDBO();
$query = "SELECT value" . " FROM l1icy_flexicontent_fields_item_relations" . " WHERE item_id = {{item->id}}" . " AND field_id = 15" ;
$db->setQuery($query);
$result_date = $db->loadResult();
echo date('j', strtotime($result_date)) . "<br />" . date('M', strtotime($result_date));

feild_id 15 is a date field.

It's all good except for the language. It's always showing in english. i tried to play with setlocale(LC_TIME,'fr_FR') with no luck.

Thanks for your help.

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #57484 by marc.light
Nothing?

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save