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