[opencms-dev] Question on News Module

Vincent Hanniet vhanniet at free.fr
Fri Nov 7 10:26:01 CET 2003


Hi Helen,
I solved the problem with the dates following the advices of Paolo 
(paolo.brunasti at agora.it) in his reply dated 03/10/16.
It works fine ;-D
Vincent

 >Hi Trevor !
 >I'm the last author of the module you are using, so I should answer >your
 >questions, even if I've only a little time to.
 >
 >1) you should edit the EditBackoffice file under \administration\news,
 >changing the values for these items:
 >      <param name=month1 value="Gennaio">
 >      <param name=month2 value="Febbraio">
 >      <param name=month3 value="Marzo">
 >      <param name=month4 value="Aprile">
 >      <param name=month5 value="Maggio">
 >      <param name=month6 value="Giugno">
 >      <param name=month7 value="Luglio">
 >      <param name=month8 value="Agosto">
 >      <param name=month9 value="Settembre">
 >      <param name=month10 value="Ottobre">
 >      <param name=month11 value="Novembre">
 >      <param name=month12 value="Dicembre">
 >      <param name=day1 value="Domenica">
 >      <param name=day2 value="Lunedì">
 >      <param name=day3 value="Martedì">
 >      <param name=day4 value="Mercoledì">
 >      <param name=day5 value="Giovedì">
 >      <param name=day6 value="Venerdì">
 >      <param name=day7 value="Sabato">
 >If I remember corectly, if you just cut them out you should have names >in
 >english (actualy they are in italian !  )
 >
 >2) it must be a problem of date format of course.
 >Do you already have the allegated document "news-installation.txt" in >the
 >latest version ?
 >Probably your system has an English date format setting, while the >module
 >comes with an italian date format setting (again these mad italian 
 >settings
 >!  ), so the following parameters should be changed from
 > 
 >com_opencms_modules_homepage_news_NewsBackoffice.inDateFormat=dd/MM/yy
 > 
 >com_opencms_modules_homepage_news_NewsBackoffice.outDateFormat=%D/%M/%Y
 >00.01
 >
 >com_opencms_modules_homepage_news_NewsBackoffice.outStartDateFormat=%D/%M/%Y
 >00.01
 >
 >com_opencms_modules_homepage_news_NewsBackoffice.outEndDateFormat=%D/%M/%Y
 >23.59
 >into something like
 > 
 >com_opencms_modules_homepage_news_NewsBackoffice.inDateFormat=MM/dd/yy
 > 
 >com_opencms_modules_homepage_news_NewsBackoffice.outDateFormat=%M/%D//%Y
 >00.01
 >
 >com_opencms_modules_homepage_news_NewsBackoffice.outStartDateFormat=%M/%D//%
 >Y 00.01
 >
 >com_opencms_modules_homepage_news_NewsBackoffice.outEndDateFormat=%M/%D//%Y
 >23.59
 >
 >Infact in italy we use to put day-month-year while in england it's
 >month-day-year sequence.
 >
 >3) the samples should be in
 >system/moduledemos/com.opencms.modules.homepage.news
 >You could start from the ChannelOverview.html page and navigate the 
 >links.
 >
 >Bye,
 >      Paolo

Helen Huang wrote:
> Hi Trevor,
>  
> I installed the news2.1. When I tried to enter a news, it gives me this 
> error message:
>  
> "com.opencms.core.CmsException: 4 Sql exception. Detailed error: 
> [com.opencms.modules.homepage.news.NewsContentDefinition] General error: 
> Column count doesn't match value count at row 1. root cause was 
> java.sql.SQLException: General error: Column count doesn't match value 
> count at row 1 "
>  
> I used the News.sql provided by News2.0 to generate the tables. Do you 
> know what caused the problem?
>  
> Thanks,
>  
> Helen
> 
>     -----Original Message-----
>     *From:* opencms-dev-admin at opencms.org
>     [mailto:opencms-dev-admin at opencms.org]*On Behalf Of *Trevor Lee
>     *Sent:* Thursday, November 06, 2003 3:58 PM
>     *To:* opencms-dev at opencms.org
>     *Subject:* RE: [opencms-dev] Question on News Module
> 
>     Hi Helen,
>      
>     I had the same problem with News2.0. I've attached news2.1 which was
>     sent to this mailing list a while a go. Give that a go...
>      
>     Cheers
>     Trevor
> 
>         -----Original Message-----
>         *From:* opencms-dev-admin at opencms.org
>         [mailto:opencms-dev-admin at opencms.org]*On Behalf Of *Helen Huang
>         *Sent:* Friday, November 07, 2003 2:56 AM
>         *To:* OpenCMS Dev (E-mail)
>         *Subject:* [opencms-dev] Question on News Module
> 
> 
>         Hi all,
> 
>         I downloaded the WYSIWYG News Module from
>         http://opencms.al-arenal.de/. I installed it successfully. But
>         when I tried to enter a news, I found the calendar is not in
>         English (everything else is in English). Do you know if there is
>         another module with English calendar?
> 
>         Thanks for every help,
> 
> 
>         Helen
> 





More information about the opencms-dev mailing list