Added new attribute isEvent
authorjdegroot <jdegroot@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 5 Sep 2012 15:30:52 +0000 (15:30 +0000)
committerjdegroot <jdegroot@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 5 Sep 2012 15:30:52 +0000 (15:30 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/roq_newsevent/branches/2.0.1.1-externalurls@65905 735d13b6-9817-0410-8766-e36946ffe9aa

Classes/Domain/Model/Event.php
Configuration/TypoScript/setup.txt
ExtensionBuilder.json
Resources/Private/Language/locallang.xml
Resources/Private/Language/locallang_csh_tx_news_domain_model_news.xml
Resources/Private/Language/locallang_db.xml
Tests/Unit/Domain/Model/EventTest.php
ext_tables.php
ext_tables.sql

index 9f3b8a2..9afcf2a 100644 (file)
  */
 class Tx_RoqNewsevent_Domain_Model_Event extends Tx_News_Domain_Model_News {
 
  */
 class Tx_RoqNewsevent_Domain_Model_Event extends Tx_News_Domain_Model_News {
 
+    /**
+        * Is event
+        *
+        * @var boolean
+        */
+       protected $isEvent = FALSE;
+
        /**
         * Event start date
         *
        /**
         * Event start date
         *
@@ -66,7 +73,36 @@ class Tx_RoqNewsevent_Domain_Model_Event extends Tx_News_Domain_Model_News {
         *
         * @var string
         */
         *
         * @var string
         */
-       protected $eventLocation;
+
+    protected $eventLocation;
+
+       /**
+        * Returns the isEvent
+        *
+        * @return boolean $isEvent
+        */
+       public function getIsEvent() {
+               return $this->isEvent;
+       }
+
+       /**
+        * Sets the isEvent
+        *
+        * @param boolean $isEvent
+        * @return void
+        */
+       public function setIsEvent($isEvent) {
+               $this->isEvent = $isEvent;
+       }
+
+       /**
+        * Returns the boolean state of isEvent
+        *
+        * @return boolean
+        */
+       public function isIsEvent() {
+               return $this->getIsEvent();
+       }
 
        /**
         * Returns the eventStartdate
 
        /**
         * Returns the eventStartdate
index cd88382..17487b9 100644 (file)
@@ -12,6 +12,7 @@ config.tx_extbase {
                     tableName = tx_news_domain_model_news
                     recordType = Tx_RoqNewsevent_Event
                     columns {
                     tableName = tx_news_domain_model_news
                     recordType = Tx_RoqNewsevent_Event
                     columns {
+                        tx_roqnewsevent_is_event.mapOnProperty = isEvent
                         tx_roqnewsevent_startdate.mapOnProperty = eventStartdate
                         tx_roqnewsevent_starttime.mapOnProperty = eventStarttime
                         tx_roqnewsevent_enddate.mapOnProperty = eventEnddate
                         tx_roqnewsevent_startdate.mapOnProperty = eventStartdate
                         tx_roqnewsevent_starttime.mapOnProperty = eventStarttime
                         tx_roqnewsevent_enddate.mapOnProperty = eventEnddate
index 806de77..2951f91 100644 (file)
@@ -1 +1 @@
-{"modules":[{"config":{"position":[189,44]},"name":"New Model Object","value":{"actionGroup":{"_default0_list":false,"_default1_show":false,"_default2_new_create":false,"_default3_edit_update":false,"_default4_delete":false,"customActions":[]},"name":"Event","objectsettings":{"aggregateRoot":true,"description":"Event info","mapToTable":"tx_news_domain_model_news","parentClass":"Tx_News_Domain_Model_News","type":"Entity","uid":"1319266301844"},"propertyGroup":{"properties":[{"propertyDescription":"Event start date","propertyIsExcludeField":false,"propertyIsRequired":true,"propertyName":"eventStartdate","propertyType":"Date","uid":"714533072165"},{"propertyDescription":"Event start time","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"eventStarttime","propertyType":"Time","uid":"204153757822"},{"propertyDescription":"Event end date","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"eventEnddate","propertyType":"Date","uid":"932242795268"},{"propertyDescription":"Event end time","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"eventEndtime","propertyType":"Time","uid":"544341132953"},{"propertyDescription":"Even location (City, County)","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"eventLocation","propertyType":"String","uid":"631114468182"}]},"relationGroup":{"relations":[]}}}],"properties":{"backendModules":[],"description":"Event extension based on the versatile news extension and extbase & fluid. Supplies additional event fields to the new news records (similar to mbl_newsevent for tt_news).","emConf":{"category":"plugin","custom_category":"","dependsOn":"extbase => 1.3\nfluid => 1.3\ntypo3 => 4.5\nnews => 1.4\n","disableVersioning":false,"priority":"","shy":false,"state":"alpha","targetVersion":"4.5","version":""},"extensionKey":"roq_newsevent","name":"News event","originalExtensionKey":"roq_newsevent","persons":[],"plugins":[]},"wires":[],"log":{"last_modified":"2012-08-08 12:02","extension_builder_version":"2.3.0","be_user":" (1)"}}
\ No newline at end of file
+{"modules":[{"config":{"position":[189,44]},"name":"New Model Object","value":{"actionGroup":{"_default0_list":false,"_default1_show":false,"_default2_new_create":false,"_default3_edit_update":false,"_default4_delete":false,"customActions":[]},"name":"Event","objectsettings":{"aggregateRoot":true,"description":"Event info","mapToTable":"tx_news_domain_model_news","parentClass":"Tx_News_Domain_Model_News","type":"Entity","uid":"1319266301844"},"propertyGroup":{"properties":[{"propertyDescription":"Is event","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"isEvent","propertyType":"Boolean","uid":"996201175688"},{"propertyDescription":"Event start date","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"eventStartdate","propertyType":"Date","uid":"714533072165"},{"propertyDescription":"Event start time","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"eventStarttime","propertyType":"Time","uid":"204153757822"},{"propertyDescription":"Event end date","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"eventEnddate","propertyType":"Date","uid":"932242795268"},{"propertyDescription":"Event end time","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"eventEndtime","propertyType":"Time","uid":"544341132953"},{"propertyDescription":"Event location (City, County)","propertyIsExcludeField":false,"propertyIsRequired":false,"propertyName":"eventLocation","propertyType":"String","uid":"631114468182"}]},"relationGroup":{"relations":[]}}}],"properties":{"backendModules":[],"description":"Event extension based on the versatile news extension and extbase & fluid. Supplies additional event fields to the new news records (similar to mbl_newsevent for tt_news).","emConf":{"category":"plugin","custom_category":"","dependsOn":"extbase => 1.3\nfluid => 1.3\ntypo3 => 4.5\nnews => 1.4\n","disableVersioning":false,"priority":"","shy":false,"state":"alpha","targetVersion":"4.5","version":""},"extensionKey":"roq_newsevent","name":"News event","originalExtensionKey":"roq_newsevent","persons":[],"plugins":[]},"wires":[],"log":{"last_modified":"2012-09-05 05:01","extension_builder_version":"2.3.0","be_user":" (1)"}}
\ No newline at end of file
index 5664ece..f7f4de3 100644 (file)
@@ -8,7 +8,7 @@
 
                <languageKey index="default" type="array">
                        <label index="tx_roqnewsevent_domain_model_event">Event info</label>
 
                <languageKey index="default" type="array">
                        <label index="tx_roqnewsevent_domain_model_event">Event info</label>
-            <label index="tx_roqnewsevent_domain_model_event.event_isevent">Is event</label>
+            <label index="tx_roqnewsevent_domain_model_event.is_event">Is event</label>
                        <label index="tx_roqnewsevent_domain_model_event.event_startdate">Start date</label>
                        <label index="tx_roqnewsevent_domain_model_event.even_starttime">Start time</label>
                        <label index="tx_roqnewsevent_domain_model_event.event_enddate">End date</label>
                        <label index="tx_roqnewsevent_domain_model_event.event_startdate">Start date</label>
                        <label index="tx_roqnewsevent_domain_model_event.even_starttime">Start time</label>
                        <label index="tx_roqnewsevent_domain_model_event.event_enddate">End date</label>
@@ -22,7 +22,7 @@
 
         <languageKey index="nl" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Evenement info</label>
 
         <languageKey index="nl" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Evenement info</label>
-            <label index="tx_roqnewsevent_domain_model_event.event_isevent">Is evenement</label>
+            <label index="tx_roqnewsevent_domain_model_event.is_event">Is evenement</label>
             <label index="tx_roqnewsevent_domain_model_event.event_startdate">Startdatum</label>
             <label index="tx_roqnewsevent_domain_model_event.event_starttime">Starttijd</label>
             <label index="tx_roqnewsevent_domain_model_event.event_enddate">Einddatum</label>
             <label index="tx_roqnewsevent_domain_model_event.event_startdate">Startdatum</label>
             <label index="tx_roqnewsevent_domain_model_event.event_starttime">Starttijd</label>
             <label index="tx_roqnewsevent_domain_model_event.event_enddate">Einddatum</label>
@@ -36,7 +36,7 @@
 
         <languageKey index="de" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Event info</label>
 
         <languageKey index="de" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Event info</label>
-            <label index="tx_roqnewsevent_domain_model_event.event_isevent">Ist eine event</label>
+            <label index="tx_roqnewsevent_domain_model_event.is_event">Ist eine event</label>
             <label index="tx_roqnewsevent_domain_model_event.event_startdate">Startdatum</label>
             <label index="tx_roqnewsevent_domain_model_event.even_starttime">Startzeit</label>
             <label index="tx_roqnewsevent_domain_model_event.event_enddate">Enddatum</label>
             <label index="tx_roqnewsevent_domain_model_event.event_startdate">Startdatum</label>
             <label index="tx_roqnewsevent_domain_model_event.even_starttime">Startzeit</label>
             <label index="tx_roqnewsevent_domain_model_event.event_enddate">Enddatum</label>
@@ -50,7 +50,7 @@
 
         <languageKey index="fr" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Évènement</label>
 
         <languageKey index="fr" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Évènement</label>
-            <label index="tx_roqnewsevent_domain_model_event.event_isevent">Ceci est un évènement</label>
+            <label index="tx_roqnewsevent_domain_model_event.is_event">Ceci est un évènement</label>
             <label index="tx_roqnewsevent_domain_model_event.event_startdate">Date de début</label>
             <label index="tx_roqnewsevent_domain_model_event.even_starttime">Horaire de début</label>
             <label index="tx_roqnewsevent_domain_model_event.event_enddate">Date de fin</label>
             <label index="tx_roqnewsevent_domain_model_event.event_startdate">Date de début</label>
             <label index="tx_roqnewsevent_domain_model_event.even_starttime">Horaire de début</label>
             <label index="tx_roqnewsevent_domain_model_event.event_enddate">Date de fin</label>
@@ -64,7 +64,7 @@
 
         <languageKey index="dk" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Kursus</label>
 
         <languageKey index="dk" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Kursus</label>
-            <label index="tx_roqnewsevent_domain_model_event.event_isevent">Er et kursus</label>
+            <label index="tx_roqnewsevent_domain_model_event.is_event">Er et kursus</label>
             <label index="tx_roqnewsevent_domain_model_event.event_startdate">Startdato</label>
             <label index="tx_roqnewsevent_domain_model_event.even_starttime">Starttid</label>
             <label index="tx_roqnewsevent_domain_model_event.event_enddate">Slutdato</label>
             <label index="tx_roqnewsevent_domain_model_event.event_startdate">Startdato</label>
             <label index="tx_roqnewsevent_domain_model_event.even_starttime">Starttid</label>
             <label index="tx_roqnewsevent_domain_model_event.event_enddate">Slutdato</label>
index 9c991f9..1240619 100644 (file)
@@ -8,7 +8,7 @@
        <data type="array">
 
            <languageKey index="default" type="array">
        <data type="array">
 
            <languageKey index="default" type="array">
-            <label index="event_isevent.description">Is an event</label>
+            <label index="is_event.description">Is an event</label>
                        <label index="event_startdate.description">Event start date</label>
                        <label index="event_starttime.description">Event start time</label>
                        <label index="event_enddate.description">Event end date</label>
                        <label index="event_startdate.description">Event start date</label>
                        <label index="event_starttime.description">Event start time</label>
                        <label index="event_enddate.description">Event end date</label>
@@ -17,7 +17,7 @@
                </languageKey>
 
         <languageKey index="nl" type="array">
                </languageKey>
 
         <languageKey index="nl" type="array">
-            <label index="event_isevent.description">Is een evenement</label>
+            <label index="is_event.description">Is een evenement</label>
             <label index="event_startdate.description">Startdatum van het evenement</label>
             <label index="event_starttime.description">Starttijd van het evenement</label>
             <label index="event_enddate.description">Einddatum van het evenement</label>
             <label index="event_startdate.description">Startdatum van het evenement</label>
             <label index="event_starttime.description">Starttijd van het evenement</label>
             <label index="event_enddate.description">Einddatum van het evenement</label>
@@ -26,7 +26,7 @@
         </languageKey>
 
         <languageKey index="de" type="array">
         </languageKey>
 
         <languageKey index="de" type="array">
-            <label index="event_isevent.description">Ist eine event</label>
+            <label index="is_event.description">Ist eine event</label>
             <label index="event_startdate.description">Event Startdatum</label>
             <label index="event_starttime.description">Event Startzeit</label>
             <label index="event_enddate.description">Event Enddatum</label>
             <label index="event_startdate.description">Event Startdatum</label>
             <label index="event_starttime.description">Event Startzeit</label>
             <label index="event_enddate.description">Event Enddatum</label>
@@ -35,7 +35,7 @@
         </languageKey>
 
         <languageKey index="fr" type="array">
         </languageKey>
 
         <languageKey index="fr" type="array">
-            <label index="event_isevent.description">Ceci est un évènement</label>
+            <label index="is_event.description">Ceci est un évènement</label>
             <label index="event_startdate.description">Date de début de l'évènement</label>
             <label index="event_starttime.description">Horaire de début de l'évènement</label>
             <label index="event_enddate.description">Date de fin de l'évènement</label>
             <label index="event_startdate.description">Date de début de l'évènement</label>
             <label index="event_starttime.description">Horaire de début de l'évènement</label>
             <label index="event_enddate.description">Date de fin de l'évènement</label>
@@ -44,7 +44,7 @@
         </languageKey>
 
         <languageKey index="dk" type="array">
         </languageKey>
 
         <languageKey index="dk" type="array">
-            <label index="event_isevent.description">Er et kursus</label>
+            <label index="is_event.description">Er et kursus</label>
             <label index="event_startdate.description">Kursus startdato</label>
             <label index="event_starttime.description">Kursus starttid</label>
             <label index="event_enddate.description">Kursus slutdato</label>
             <label index="event_startdate.description">Kursus startdato</label>
             <label index="event_starttime.description">Kursus starttid</label>
             <label index="event_enddate.description">Kursus slutdato</label>
index 33385b4..1583a3c 100644 (file)
@@ -7,7 +7,7 @@
        <data type="array">
                <languageKey index="default" type="array">
                        <label index="tx_roqnewsevent_domain_model_event">Event</label>
        <data type="array">
                <languageKey index="default" type="array">
                        <label index="tx_roqnewsevent_domain_model_event">Event</label>
-            <label index="tx_roqnewsevent_isevent">Is event</label>
+            <label index="tx_roqnewsevent_is_event">Is event</label>
                        <label index="tx_roqnewsevent_startdate">Start date</label>
                        <label index="tx_roqnewsevent_starttime">Start time</label>
                        <label index="tx_roqnewsevent_enddate">End date</label>
                        <label index="tx_roqnewsevent_startdate">Start date</label>
                        <label index="tx_roqnewsevent_starttime">Start time</label>
                        <label index="tx_roqnewsevent_enddate">End date</label>
@@ -18,7 +18,7 @@
 
         <languageKey index="nl" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Evenement</label>
 
         <languageKey index="nl" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Evenement</label>
-            <label index="tx_roqnewsevent_isevent">Is evenement</label>
+            <label index="tx_roqnewsevent_is_event">Is evenement</label>
             <label index="tx_roqnewsevent_startdate">Startdatum</label>
             <label index="tx_roqnewsevent_starttime">Starttijd</label>
             <label index="tx_roqnewsevent_enddate">Einddatum</label>
             <label index="tx_roqnewsevent_startdate">Startdatum</label>
             <label index="tx_roqnewsevent_starttime">Starttijd</label>
             <label index="tx_roqnewsevent_enddate">Einddatum</label>
@@ -29,7 +29,7 @@
 
         <languageKey index="de" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Event</label>
 
         <languageKey index="de" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Event</label>
-            <label index="tx_roqnewsevent_isevent">Ist eine event</label>
+            <label index="tx_roqnewsevent_is_event">Ist eine event</label>
             <label index="tx_roqnewsevent_startdate">Startdatum</label>
             <label index="tx_roqnewsevent_starttime">Startzeit</label>
             <label index="tx_roqnewsevent_enddate">Enddatum</label>
             <label index="tx_roqnewsevent_startdate">Startdatum</label>
             <label index="tx_roqnewsevent_starttime">Startzeit</label>
             <label index="tx_roqnewsevent_enddate">Enddatum</label>
@@ -40,7 +40,7 @@
 
         <languageKey index="fr" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Évènement</label>
 
         <languageKey index="fr" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Évènement</label>
-            <label index="tx_roqnewsevent_isevent">Ceci est un évènement</label>
+            <label index="tx_roqnewsevent_is_event">Ceci est un évènement</label>
             <label index="tx_roqnewsevent_startdate">Date de début</label>
             <label index="tx_roqnewsevent_starttime">Horaire de début</label>
             <label index="tx_roqnewsevent_enddate">Date de fin</label>
             <label index="tx_roqnewsevent_startdate">Date de début</label>
             <label index="tx_roqnewsevent_starttime">Horaire de début</label>
             <label index="tx_roqnewsevent_enddate">Date de fin</label>
@@ -51,7 +51,7 @@
 
         <languageKey index="dk" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Kursus</label>
 
         <languageKey index="dk" type="array">
             <label index="tx_roqnewsevent_domain_model_event">Kursus</label>
-            <label index="tx_roqnewsevent_isevent">Er et kursus</label>
+            <label index="tx_roqnewsevent_is_event">Er et kursus</label>
             <label index="tx_roqnewsevent_startdate">Startdato</label>
             <label index="tx_roqnewsevent_starttime">Starttid</label>
             <label index="tx_roqnewsevent_enddate">Slutdato</label>
             <label index="tx_roqnewsevent_startdate">Startdato</label>
             <label index="tx_roqnewsevent_starttime">Starttid</label>
             <label index="tx_roqnewsevent_enddate">Slutdato</label>
index 916ad41..4db88fb 100644 (file)
@@ -51,6 +51,28 @@ class Tx_RoqNewsevent_Domain_Model_EventTest extends Tx_Extbase_Tests_Unit_BaseT
        /**
         * @test
         */
        /**
         * @test
         */
+       public function getIsEventReturnsInitialValueForBoolean() { 
+               $this->assertSame(
+                       TRUE,
+                       $this->fixture->getIsEvent()
+               );
+       }
+
+       /**
+        * @test
+        */
+       public function setIsEventForBooleanSetsIsEvent() { 
+               $this->fixture->setIsEvent(TRUE);
+
+               $this->assertSame(
+                       TRUE,
+                       $this->fixture->getIsEvent()
+               );
+       }
+       
+       /**
+        * @test
+        */
        public function getEventStartdateReturnsInitialValueForDate() { }
 
        /**
        public function getEventStartdateReturnsInitialValueForDate() { }
 
        /**
index 9969708..586ea80 100644 (file)
@@ -7,13 +7,21 @@ t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'News event');
 
 $tmp_roq_newsevent_columns = array(
 
 
 $tmp_roq_newsevent_columns = array(
 
+    'tx_roqnewsevent_is_event' => array(
+               'exclude' => 0,
+               'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_is_event',
+               'config' => array(
+                       'type' => 'check',
+                       'default' => 0
+               ),
+       ),
        'tx_roqnewsevent_startdate' => array(
                'exclude' => 0,
                'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_startdate',
                'config' => array(
                        'type' => 'input',
                        'size' => 7,
        'tx_roqnewsevent_startdate' => array(
                'exclude' => 0,
                'label' => 'LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_startdate',
                'config' => array(
                        'type' => 'input',
                        'size' => 7,
-                       'eval' => 'date,required',
+                       'eval' => 'date',
                        'checkbox' => 1,
                ),
        ),
                        'checkbox' => 1,
                ),
        ),
@@ -60,10 +68,15 @@ $tmp_roq_newsevent_columns = array(
 
 t3lib_extMgm::addTCAcolumns('tx_news_domain_model_news',$tmp_roq_newsevent_columns);
 
 
 t3lib_extMgm::addTCAcolumns('tx_news_domain_model_news',$tmp_roq_newsevent_columns);
 
+t3lib_extMgm::addToAllTCAtypes('tx_news_domain_model_news', ',--div--;LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_domain_model_event,');
+t3lib_extMgm::addToAllTCAtypes('tx_news_domain_model_news', 'tx_roqnewsevent_is_event, tx_roqnewsevent_startdate, tx_roqnewsevent_starttime, tx_roqnewsevent_enddate, tx_roqnewsevent_endtime, tx_roqnewsevent_location');
+
+/*
 $TCA['tx_news_domain_model_news']['columns'][$TCA['tx_news_domain_model_news']['ctrl']['type']]['config']['items'][] = array('LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_news_domain_model_news.tx_extbase_type.Tx_RoqNewsevent_Event','Tx_RoqNewsevent_Event');
 
 $TCA['tx_news_domain_model_news']['types']['Tx_RoqNewsevent_Event']['showitem'] = $TCA['tx_news_domain_model_news']['types']['0']['showitem'];
 $TCA['tx_news_domain_model_news']['types']['Tx_RoqNewsevent_Event']['showitem'] .= ',--div--;LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_domain_model_event,';
 $TCA['tx_news_domain_model_news']['columns'][$TCA['tx_news_domain_model_news']['ctrl']['type']]['config']['items'][] = array('LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_news_domain_model_news.tx_extbase_type.Tx_RoqNewsevent_Event','Tx_RoqNewsevent_Event');
 
 $TCA['tx_news_domain_model_news']['types']['Tx_RoqNewsevent_Event']['showitem'] = $TCA['tx_news_domain_model_news']['types']['0']['showitem'];
 $TCA['tx_news_domain_model_news']['types']['Tx_RoqNewsevent_Event']['showitem'] .= ',--div--;LLL:EXT:roq_newsevent/Resources/Private/Language/locallang_db.xml:tx_roqnewsevent_domain_model_event,';
-$TCA['tx_news_domain_model_news']['types']['Tx_RoqNewsevent_Event']['showitem'] .= 'tx_roqnewsevent_startdate, tx_roqnewsevent_starttime, tx_roqnewsevent_enddate, tx_roqnewsevent_endtime, tx_roqnewsevent_location';
+$TCA['tx_news_domain_model_news']['types']['Tx_RoqNewsevent_Event']['showitem'] .= 'tx_roqnewsevent_is_event, tx_roqnewsevent_startdate, tx_roqnewsevent_starttime, tx_roqnewsevent_enddate, tx_roqnewsevent_endtime, tx_roqnewsevent_location';
+*/
 
 ?>
\ No newline at end of file
 
 ?>
\ No newline at end of file
index 3a9222f..7b835d3 100644 (file)
@@ -3,6 +3,7 @@
 #
 CREATE TABLE tx_news_domain_model_news (
 
 #
 CREATE TABLE tx_news_domain_model_news (
 
+    tx_roqnewsevent_is_event tinyint(1) unsigned DEFAULT '0' NOT NULL,
        tx_roqnewsevent_startdate int(11) DEFAULT '0' NOT NULL,
        tx_roqnewsevent_starttime int(11) DEFAULT '0' NOT NULL,
        tx_roqnewsevent_enddate int(11) DEFAULT '0' NOT NULL,
        tx_roqnewsevent_startdate int(11) DEFAULT '0' NOT NULL,
        tx_roqnewsevent_starttime int(11) DEFAULT '0' NOT NULL,
        tx_roqnewsevent_enddate int(11) DEFAULT '0' NOT NULL,