Separating the clock from the date

More
6 years 6 months ago #73261 by aminweb

micker wrote: you need to work a little and maybe lean a little php sorry we can't provide specific code for free because we have many works on core component

:(

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

More
6 years 6 months ago - 6 years 6 months ago #73262 by micker
think we want to keep flexicontent for free !
use php forum and post your code we only can propose snapshot not complet solution for each user
when we will add template output for date it will possible to do it easier but not a priority for now

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]
Last edit: 6 years 6 months ago by micker.
The following user(s) said Thank You: aminweb

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

More
6 years 6 months ago #73283 by aminweb
thanks Micker,
I send post on Stackoverflow
stackoverflow.com/questions/50189480/how...etween-date-and-time

but ... :(

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

More
6 years 6 months ago #73284 by micker
no you need to to explode your string by php and display each array...
did you test my code ?
what is the return ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
6 years 6 months ago #73286 by ggppdk
Hello

i will repeat micker answer
but please note
1. Replace "fieldname" with the name of you field e.g. "arrival_date"
2. The code must be added inside the ITEMs Loop ! thus after:

e.g. for blog template (in file category_items.php)
add micker's code
- leading items list (after <li>)
- standard items list (after <li>)

This is the start for the item block (appears 2 times inside the file, add 2 times the code)
Code:
<li id="fc_bloglist_item_<?php echo $i; ?>" class="<?php echo $fc_item_classes; ?>" <?php echo $microdata_itemtype_code; ?> style="overflow: hidden;">

Micker's answer was:

1 you need to load your field in render position
2 insert your rendering field where you want

Code:
<?php $date = $item->fields["fieldname"]->display; $disp_date = explode( " ", $date); echo $disp_date[0]; ?>

in this case i explode string date with space and load first value
now you need to adatp this to your code and your value format (fieldname = yourfieldname, " " space delimiter, [0] is first value [1] second ect)



-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
6 years 6 months ago #73290 by micker
WE help you only if you put the code uses
And with output error... WE cant code it for you for free.... Please respect this

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.490 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