Fixed bug #103: No Plain-text List Option
authorBenni Mack <benni.mack@typo3.org>
Thu, 14 Oct 2010 09:00:47 +0000 (09:00 +0000)
committerBenni Mack <benni.mack@typo3.org>
Thu, 14 Oct 2010 09:00:47 +0000 (09:00 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9055 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/media/scripts/plaintextLib.inc
typo3/sysext/statictemplates/media/scripts/plaintextLib.inc

index e8f582d..3c00d53 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-14  Benjamin Mack  <benni@typo3.org>
+
+       * Fixed bug #103: No Plain-text List Option
+
 2010-10-13  Steffen Gebert  <steffen@steffen-gebert.de>
 
        * Fixed bug #15644: Replace magic numbers for shortcut_mode with class constants
index 304f10d..e8f4d66 100644 (file)
@@ -178,6 +178,10 @@ class user_plaintext {
                                $lines[]=$this->getHeader();
                                $lines[]=$this->breakBulletlist(strip_tags($this->parseBody($this->cObj->data['bodytext'])));
                        break;
+                       case 'list':
+                               $lines[]=$this->getHeader();
+                               $lines[]=$this->getList();
+                       break;
                        case 'table':
                                $lines[]=$this->getHeader();
                                $lines[]=$this->breakTable(strip_tags($this->parseBody($this->cObj->data['bodytext'])));
@@ -292,6 +296,17 @@ class user_plaintext {
        }
 
        /**
+        * Creates a list
+        *
+        * @param       string  type of content
+        * @return      string  Content
+        */
+       function getList($CType = 'list') {
+               $str = $this->cObj->cObjGetSingle($this->conf[$CType], $this->conf[$CType . '.']);
+               return trim(strip_tags($this->parseBody($str)));
+       }
+
+       /**
         * Renders a content element header, observing the layout type giving different header formattings
         *
         * @param       string          The header string
index eb67252..18ddddd 100644 (file)
@@ -178,6 +178,10 @@ class user_plaintext {
                                $lines[]=$this->getHeader();
                                $lines[]=$this->breakBulletlist(strip_tags($this->parseBody($this->cObj->data['bodytext'])));
                        break;
+                       case 'list':
+                               $lines[]=$this->getHeader();
+                               $lines[]=$this->getList();
+                       break;
                        case 'table':
                                $lines[]=$this->getHeader();
                                $lines[]=$this->breakTable(strip_tags($this->parseBody($this->cObj->data['bodytext'])));
@@ -293,6 +297,17 @@ class user_plaintext {
        }
 
        /**
+        * Creates a list
+        *
+        * @param       string  type of content
+        * @return      string  Content
+        */
+       function getList($CType = 'list') {
+               $str = $this->cObj->cObjGetSingle($this->conf[$CType], $this->conf[$CType . '.']);
+               return trim(strip_tags($this->parseBody($str)));
+       }
+
+       /**
         * Renders a content element header, observing the layout type giving different header formattings
         *
         * @param       string          The header string