FC2 - r1463 - Troubleshooting with new date field

More
12 years 2 months ago #28171 by Rehne
Hi,

i have another Problem with the new date field (r1463)
locally i use not the latest version (r1456)
and there are no problems

ok
i use the date field in a FC event template for each event as the start- and the end-date
on the two pictures below you can see the difference immediately
with the new date field
the date of the month is no longer generated correctly
I use the following code in the template

at the beginning of the template
Code:
$lng = JFactory::getLanguage(); $loc = $lng->getLocale() ; setlocale(LC_ALL, $loc );

call up template parameter to specify the output format of the Month
Code:
if ($displayMonthFormat == 0) { // long $MonthDateFormat ='%B'; } elseif ($displayMonthFormat == 1) { // short $MonthDateFormat ='%b'; } elseif ($displayMonthFormat == 2) { // integer with leading 0 $MonthDateFormat ='%m'; } if ($displayMonthFormat == 3) { .... } else { for ($nameKey = 1; $nameKey <=12; $nameKey++) { $monthNames[$nameKey] = date('m', strtotime('2012-' . $nameKey)); $monthNames[$nameKey] = utf8_encode(strftime($MonthDateFormat, strtotime('2012-' .$monthNames[$nameKey]))); } }

so i can use it to show the month in the following manner in which the following values are
$monthItems[0][0] = year = 2012
$monthItems[0][1] = month = Integer (1-12)
Code:
<h3>[url=#<?php echo JText::_($monthNames[$monthItems[0][1]]).$monthItems[0][0] ?>]<?php echo JText::_($monthNames[$monthItems[0][1]]).' '.$monthItems[0][0] ?>[/url]</h3>

as I said
with the old date field this has still works

old version
[attachment=1:yf2zfj37]<!-- ia1 -->FC2-using-date-field-lokal-xampp.JPG<!-- ia1 -->[/attachment:yf2zfj37]

new version
[attachment=0:yf2zfj37]<!-- ia0 -->FC2-using-new-date-field-global.png<!-- ia0 -->[/attachment:yf2zfj37]
livesite: fussballschule-uwe-bein.de/cms/index.php/termine

What could be the Problem ? :(

and besides still a dumb question: :oops:
i do not make / i do not know how
to hide the page title
I actually thought it was clear
($ this-> params-> get ('show_page_title', 1)
but no matter what I do ... it remains visible
fussballschule-uwe-bein.de/cms/index.php...rien/fussballschulen

Regards
Attachments:

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

More
12 years 2 months ago #28173 by ggppdk
About date field
-- Please print the value ($item->fields->display) of the date field, to check what is returned by the field
-- Also which are the settings you have in the field?


to have old behavior you should:

Use editor's timezone: no
Timezone logged viewers: ignore
Timezone guest viewers: ignore

About page title
In J1.6+ the menu item parameter for show_page_title, was changed to show_page_heading, you could check view.html.php to see how this is created, search for show_page_heading


-- 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 2 months ago #28188 by Rehne

ggppdk wrote: to have old behavior you should:

Use editor's timezone: no
Timezone logged viewers: ignore
Timezone guest viewers: ignore


thanks for the explanation
now it works
but I think it was of a cache problem (although i have delete it multiple)
today I looked at the page without changes
and it do work suddenly :?:

Rehne wrote: About page title

flexicontent.org/forum/index.php ... =viewtopic

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

More
12 years 2 months ago #28189 by Rehne

ggppdk wrote: to have old behavior you should:

Use editor's timezone: no
Timezone logged viewers: ignore
Timezone guest viewers: ignore


thanks for the explanation
now it works
but I think it was of a cache problem (although i have delete it multiple)
today I looked at the page without changes
and it do work suddenly :?:

ggppdk wrote: About page title

i have moved the answer to the correct area
flexicontent.org/forum/index.php ... =viewtopic

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

More
12 years 2 months ago #28191 by ggppdk
Actually, setting
Use editor's timezone: no

should be enough, and i have the parameter description to state this.


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

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