[flexi 2.0]date display array

More
12 years 3 months ago #22281 by micker
hello
it strange with flexicontent 2.0
i creat a date field with only 1 date
when i display it in template
result
Code:
ARRAY
...

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
12 years 3 months ago #22288 by Rehne
Replied by Rehne on topic [flexi 2.0]date display array
this output tells you that the value of your date-field is an array
try output value[0] of the array

(e.g. array name: $event_date_array)
to output a value within the array

<?php echo $event_date_array[0];?>
<?php echo $event_date_array[1];?>
....

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

More
12 years 3 months ago #22299 by ggppdk
How do you display it in the template?
manually or via a template position?
which template?


-- 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
12 years 3 months ago #22300 by micker
how to do this ... sorry i use it in template position ...
i try this directly in php
Code:
<ul class="leadingblock"> <?php for ($i=0; $i<$leadnum; $i++) : $date= $items[$i]->fields['datedebut']->display; echo $date_array[0]; ?> <li>
but doesn't work
thanks for your help

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
12 years 3 months ago #22305 by ggppdk
Put field in renderonly position
and try this:
Code:
<?php echo $items[$i]->fields['datedebut']->display; ?>

Or don't put field in rederonly position and create it inside your template like this:
Code:
<?php FlexicontentFields::getFieldDisplay($items[$i], 'datedebut', $values=null, $method='display'); ?> <?php echo $items[$i]->fields['datedebut']->display; ?>


-- 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
12 years 3 months ago #22309 by micker
i put it in renderonly and copie code but same probleme
Code:
array

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.295 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