Need help to insert a date format variable

More
13 years 9 months ago #9062 by vlester
Hello,

I use AidaNews which allows to order items by date of creation or by a Flexi field date. My problem is that I get the custom date type only if I order by date creation.
I had a look at the code and I think it's because the date type variable ($doutput) is not mentionned in the second "if" but I don't know how to insert it in the code.
Code:
//Get Date of creation (here the variable $output is mentionned and the custom type date displays correctly in fornt-end) if ($checkdate !== false && $params->get('flexi_date') != '1') { if ($params->get('what_date') == 0) { $row->created = JHTML::_('date', $row->created, $dtoutput); $date = $row->created; } } //Get Date from FLEXIcontent (here the variable $output is not mentionned and I don't know how to add it) if ($checkdate !== false && $params->get('flexi_date') == '1') { $query = 'SELECT value FROM #__flexicontent_fields_item_relations WHERE item_id = ' . $row->id . ' AND field_id = ' . $date_field_id ; $db->setQuery($query); $date = $db->loadResult(); }


Thanks for your help

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.240 seconds
Save
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