Author: tkoomzaaskz
Date: 2010-01-24 14:40:42 +0100 (Sun, 24 Jan 2010)
New Revision: 27124

Added:
   plugins/tdBlogPlugin/trunk/modules/tdSampleArticle/i18n/
   plugins/tdBlogPlugin/trunk/modules/tdSampleArticle/i18n/td.pl.xml
Modified:
   plugins/tdBlogPlugin/trunk/README
   plugins/tdBlogPlugin/trunk/config/tdBlogPluginConfiguration.class.php
   
plugins/tdBlogPlugin/trunk/lib/filter/doctrine/PlugintdArticleFormFilter.class.php
   plugins/tdBlogPlugin/trunk/lib/form/doctrine/PlugintdArticleForm.class.php
   plugins/tdBlogPlugin/trunk/lib/model/doctrine/PlugintdArticle.class.php
   plugins/tdBlogPlugin/trunk/lib/model/doctrine/PlugintdArticleTable.class.php
   plugins/tdBlogPlugin/trunk/modules/tdSampleArticle/actions/actions.class.php
   plugins/tdBlogPlugin/trunk/modules/td_article/actions/actions.class.php
   plugins/tdBlogPlugin/trunk/modules/td_article/config/generator.yml
   
plugins/tdBlogPlugin/trunk/modules/td_article/lib/td_articleGeneratorConfiguration.class.php
   
plugins/tdBlogPlugin/trunk/modules/td_article/lib/td_articleGeneratorHelper.class.php
   plugins/tdBlogPlugin/trunk/package.xml
Log:
[td][blog] updated entire plugin - release 0.1.1

Modified: plugins/tdBlogPlugin/trunk/README
===================================================================
--- plugins/tdBlogPlugin/trunk/README   2010-01-24 13:36:13 UTC (rev 27123)
+++ plugins/tdBlogPlugin/trunk/README   2010-01-24 13:40:42 UTC (rev 27124)
@@ -1,9 +1,7 @@
-tdCorePlugin
+tdBlogPlugin
 ============
 
-The `tdVisitorCounterPlugin` is a symfony plugin that provides basic
-functionalities enabling TD CMF, such as common configuration or random data
-generation.
+The `tdBlogPlugin` provides basic blog functionalties.
 
 This plugin is a part of __TD CMF__ and is based on __Doctrine ORM__.
 
@@ -13,64 +11,65 @@
 Install the plugin via the subversion repository by executing the following
 command from the project root directory:
 
-    $ svn co http://svn.symfony-project.com/plugins/tdCorePlugin/trunk 
plugins/tdCorePlugin
+    $ svn co http://svn.symfony-project.com/plugins/tdBlogPlugin/trunk 
plugins/tdBlogPlugin
 
 or by using the default symfony plugin install command:
 
-    $ ./symfony plugin:install -s beta tdCorePlugin
+    $ ./symfony plugin:install -s beta tdBlogPlugin
 
-as the actual release is in its beta stage. Run the following command to enable
-the assets of tdCorePlugin:
+as the actual release is in its beta stage.
 
-    $ ./symfony plugin:publish-assets
-
 Usage
 =====
 
-  * This plugin is the main part of the __TD CMF__ and therefore it should be
-    installed as the first one. Other td components will use functionalities
-    provided with tdCorePlugin.
+  * Enable the __tdSampleArticle__ module in your frontend application's
+    _config/settings.yml_ enabled_modules section:
 
-  * Add __/tdCorePlugin/css/td_core_icons.css__ to your backend/config/view.yml
-    in the css section array to enable admin generator icons.
+        [php]
+        enabled_modules: [ ..., tdSampleArticle ]
 
-sfAdminDashPlugin compatibility
-===============================
+  * Fixtures are provided with the plugin - randomly generated data. Run the
+    following commands:
 
-The icons provided with the plugin may be used for sfAdminDashPlugin. To do so,
-you need to do the following:
+        $ ./symfony doctrine:build --all
 
-  * modify the __sfAdminDashPlugin/config/app.yml__ file, set:
+    and
 
-        [php]
-        image_dir: /tdCorePlugin/images/icons/
+        $ ./symfony doctrine:data-load
 
-  * and finally you may use the icons in the app.yml file:
+    and run the following URL in your browser:
 
+        http://your-project/sample-article
+
+  * Enable the td_aticle admin generator in your backend application's
+    _config/settings.yml_ enabled_modules section:
+
         [php]
-        categories:
-          Administration:
-            items:
-              Newsletter:
-                url: newsletter
-                image: newsletter.png
+        enabled_modules: [ ..., td_article ]
 
-Random Data Generator
-=====================
+Configuration
+=============
 
-There is a class in the plugin responsible for generating some random data used
-for the symfony fixtures. During development phase its essential to see how 
some
-mechanisms work when real data is available in the database. Writing the same
-methods many times is useless - that's where random data generator comes in. an
-example to generate some data in _data/fixtures/sample.yml_ file is shown 
below:
+You can modify settings of the tdGuestbookPlugin in the
+__config/tdBlogPluginConfiguration.class.php__ file:
 
-    [php]
-    <?php $generator = new tdRandomDataGenerator(); ?>
-    Guestbook:
-    <?php for($i = 0; $i < 150; $i++): ?>
-      guestbook_<?php echo $i ?>:
-        author: <?php echo $generator->getRandomName()."\n" ?>
-        email: <?php echo $generator->getRandomEmail()."\n" ?>
-        http: <?php echo $generator->getRandomHttp()."\n" ?>
-        text: <?php echo 
$generator->getRandomText(mt_rand(20,100)*mt_rand(1,5))."\n" ?>
-    <?php endfor; ?>
+  * _td_blog_recent_articles_count_ - number of articles to be displayed in
+    _tdSampleArticle_ module.
+
+  * _td_blog_short_text_sign_count_ - character count of a short article
+    content version
+
+  * _td_blog_image_dir_ - upload directory for article thumbnails.
+
+Translations
+============
+
+You may translate tdSampleArticle module to your own language by creating
+__td.XX.xml__ file under _modules/tdSampleArticle/i18n_ directory (where XX is
+the language code). So far, English language is the default one and 
additionally
+Polish translationis provided.
+
+Dependencies
+============
+
+  * [tdCorePlugin](http://www.symfony-project.org/plugins/tdCorePlugin)

Modified: plugins/tdBlogPlugin/trunk/config/tdBlogPluginConfiguration.class.php
===================================================================
--- plugins/tdBlogPlugin/trunk/config/tdBlogPluginConfiguration.class.php       
2010-01-24 13:36:13 UTC (rev 27123)
+++ plugins/tdBlogPlugin/trunk/config/tdBlogPluginConfiguration.class.php       
2010-01-24 13:40:42 UTC (rev 27124)
@@ -6,7 +6,7 @@
 /**
  * tdBlogPluginConfiguration
  *
- * @package   tdGuestbookPlugin
+ * @package   tdBlogPlugin
  * @author    Tomasz Ducin <[email protected]>
  */
 

Modified: 
plugins/tdBlogPlugin/trunk/lib/filter/doctrine/PlugintdArticleFormFilter.class.php
===================================================================
--- 
plugins/tdBlogPlugin/trunk/lib/filter/doctrine/PlugintdArticleFormFilter.class.php
  2010-01-24 13:36:13 UTC (rev 27123)
+++ 
plugins/tdBlogPlugin/trunk/lib/filter/doctrine/PlugintdArticleFormFilter.class.php
  2010-01-24 13:40:42 UTC (rev 27124)
@@ -3,9 +3,9 @@
 /**
  * PlugintdArticle form.
  *
- * @package    ##PROJECT_NAME##
+ * @package    tdBlogPlugin
  * @subpackage filter
- * @author     ##AUTHOR_NAME##
+ * @author     Tomasz Ducin <[email protected]>
  * @version    SVN: $Id: sfDoctrineFormFilterPluginTemplate.php 23810 
2009-11-12 11:07:44Z Kris.Wallsmith $
  */
 abstract class PlugintdArticleFormFilter extends BasetdArticleFormFilter

Modified: 
plugins/tdBlogPlugin/trunk/lib/form/doctrine/PlugintdArticleForm.class.php
===================================================================
--- plugins/tdBlogPlugin/trunk/lib/form/doctrine/PlugintdArticleForm.class.php  
2010-01-24 13:36:13 UTC (rev 27123)
+++ plugins/tdBlogPlugin/trunk/lib/form/doctrine/PlugintdArticleForm.class.php  
2010-01-24 13:40:42 UTC (rev 27124)
@@ -3,9 +3,9 @@
 /**
  * PlugintdArticle form.
  *
- * @package    ##PROJECT_NAME##
+ * @package    tdBlogPlugin
  * @subpackage form
- * @author     ##AUTHOR_NAME##
+ * @author     Tomasz Ducin <[email protected]>
  * @version    SVN: $Id: sfDoctrineFormPluginTemplate.php 23810 2009-11-12 
11:07:44Z Kris.Wallsmith $
  */
 abstract class PlugintdArticleForm extends BasetdArticleForm

Modified: 
plugins/tdBlogPlugin/trunk/lib/model/doctrine/PlugintdArticle.class.php
===================================================================
--- plugins/tdBlogPlugin/trunk/lib/model/doctrine/PlugintdArticle.class.php     
2010-01-24 13:36:13 UTC (rev 27123)
+++ plugins/tdBlogPlugin/trunk/lib/model/doctrine/PlugintdArticle.class.php     
2010-01-24 13:40:42 UTC (rev 27124)
@@ -5,10 +5,10 @@
  * 
  * This class has been auto-generated by the Doctrine ORM Framework
  * 
- * @package    ##PACKAGE##
- * @subpackage ##SUBPACKAGE##
- * @author     ##NAME## <##EMAIL##>
- * @version    SVN: $Id: Builder.php 7021 2010-01-12 20:39:49Z lsmith $
+ * @package    tdBlogPlugin
+ * @subpackage model
+ * @author     Tomasz Ducin <[email protected]>
+ * @version    SVN: $Id: Builder.php 6820 2009-11-30 17:27:49Z jwage $
  */
 abstract class PlugintdArticle extends BasetdArticle
 {
@@ -19,7 +19,7 @@
    */
   public function getTextShort()
   {
-    return mb_substr($this->getText(), 0, 
sfConfig::get('td_blog_short_text_sign_count')).'...';
+    return tdTools::getMbShortenedString($this->getText(), 
sfConfig::get('td_blog_short_text_sign_count'));
   }
 
   /**

Modified: 
plugins/tdBlogPlugin/trunk/lib/model/doctrine/PlugintdArticleTable.class.php
===================================================================
--- 
plugins/tdBlogPlugin/trunk/lib/model/doctrine/PlugintdArticleTable.class.php    
    2010-01-24 13:36:13 UTC (rev 27123)
+++ 
plugins/tdBlogPlugin/trunk/lib/model/doctrine/PlugintdArticleTable.class.php    
    2010-01-24 13:40:42 UTC (rev 27124)
@@ -1,5 +1,14 @@
 <?php
+
 /**
+ * PlugintdArticleTable
+ *
+ * This class has been auto-generated by the Doctrine ORM Framework
+ *
+ * @package    tdBlogPlugin
+ * @subpackage model
+ * @author     Tomasz Ducin <[email protected]>
+ * @version    SVN: $Id: Builder.php 6820 2009-11-30 17:27:49Z jwage $
  */
 class PlugintdArticleTable extends Doctrine_Table
 {

Modified: 
plugins/tdBlogPlugin/trunk/modules/tdSampleArticle/actions/actions.class.php
===================================================================
--- 
plugins/tdBlogPlugin/trunk/modules/tdSampleArticle/actions/actions.class.php    
    2010-01-24 13:36:13 UTC (rev 27123)
+++ 
plugins/tdBlogPlugin/trunk/modules/tdSampleArticle/actions/actions.class.php    
    2010-01-24 13:40:42 UTC (rev 27124)
@@ -3,10 +3,10 @@
 /**
  * tdSampleArticle actions.
  *
- * @package    gospel
- * @subpackage article
- * @author     Tomasz Ducin
- * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
+ * @package    tdBlogPlugin
+ * @subpackage frontend
+ * @author     Tomasz Ducin <[email protected]>
+ * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z 
Kris.Wallsmith $
  */
 class tdSampleArticleActions extends sfActions
 {

Added: plugins/tdBlogPlugin/trunk/modules/tdSampleArticle/i18n/td.pl.xml
===================================================================
--- plugins/tdBlogPlugin/trunk/modules/tdSampleArticle/i18n/td.pl.xml           
                (rev 0)
+++ plugins/tdBlogPlugin/trunk/modules/tdSampleArticle/i18n/td.pl.xml   
2010-01-24 13:40:42 UTC (rev 27124)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE xliff PUBLIC "-//XLIFF//DTD XLIFF//EN" 
"http://www.oasis-open.org/committees/xliff/documents/xliff.dtd"; >
+<xliff version="1.0">
+  <file original="global" source-language="en" datatype="plaintext">
+    <header />
+    <body>
+      <trans-unit>
+        <source>Video list</source>
+        <target>Lista video</target>
+      </trans-unit>
+      <trans-unit>
+        <source>watch it</source>
+        <target>obejrzyj</target>
+      </trans-unit>
+      <trans-unit>
+        <source>Name</source>
+        <target>Nazwa</target>
+      </trans-unit>
+      <trans-unit>
+        <source>Author</source>
+        <target>Autor</target>
+      </trans-unit>
+      <trans-unit>
+        <source>Recorded at</source>
+        <target>Nagrano</target>
+      </trans-unit>
+      <trans-unit>
+        <source>Description</source>
+        <target>Opis</target>
+      </trans-unit>
+    </body>
+  </file>
+</xliff>

Modified: 
plugins/tdBlogPlugin/trunk/modules/td_article/actions/actions.class.php
===================================================================
--- plugins/tdBlogPlugin/trunk/modules/td_article/actions/actions.class.php     
2010-01-24 13:36:13 UTC (rev 27123)
+++ plugins/tdBlogPlugin/trunk/modules/td_article/actions/actions.class.php     
2010-01-24 13:40:42 UTC (rev 27124)
@@ -6,9 +6,9 @@
 /**
  * td_article actions.
  *
- * @package    gospel
- * @subpackage td_article
- * @author     Tomasz Ducin
+ * @package    tdBlogPlugin
+ * @subpackage backend
+ * @author     Tomasz Ducin <[email protected]>
  * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z 
Kris.Wallsmith $
  */
 class td_articleActions extends autoTd_articleActions

Modified: plugins/tdBlogPlugin/trunk/modules/td_article/config/generator.yml
===================================================================
--- plugins/tdBlogPlugin/trunk/modules/td_article/config/generator.yml  
2010-01-24 13:36:13 UTC (rev 27123)
+++ plugins/tdBlogPlugin/trunk/modules/td_article/config/generator.yml  
2010-01-24 13:40:42 UTC (rev 27124)
@@ -26,6 +26,7 @@
           label: Treść
         image:
           label: Zdjęcie
+          help: najlepiej, aby zdjęcie miało wymiary: 128 x 75 piksli
         active:
           label: Aktywny
           help: if the link shall be visible on the frontend website
@@ -48,21 +49,17 @@
         max_per_page: 10
         layout: stacked
         params: |
-          <div style="text-align: justify">
             <img src="/uploads/articles/%%image%%" class="border" />
             <br />
-            <strong>autor</strong>: %%author%%
+            <strong>Tytuł</strong>: <i>%%title%%</i> %%active%%
             <br />
-            <strong>tytuł</strong>: %%title%%
+            <strong>Autor</strong>: <i>%%author%%</i>
             <br />
-            <strong>treść</strong>: %%text_short%%
+            <strong>Treść</strong>: <div class="text_box">%%text_short%%</div>
             <br />
-            <strong>utworzono</strong>: %%created_at%%
+            <strong>Utworzono</strong>: <i>%%created_at%%</i>
             <br />
-            <strong>zmieniono</strong>: %%updated_at%%
-            <br />
-            %%active%%
-          </div>
+            <strong>Zmieniono</strong>: <i>%%updated_at%%</i>
       filter:  ~
       form:
         fields:

Modified: 
plugins/tdBlogPlugin/trunk/modules/td_article/lib/td_articleGeneratorConfiguration.class.php
===================================================================
--- 
plugins/tdBlogPlugin/trunk/modules/td_article/lib/td_articleGeneratorConfiguration.class.php
        2010-01-24 13:36:13 UTC (rev 27123)
+++ 
plugins/tdBlogPlugin/trunk/modules/td_article/lib/td_articleGeneratorConfiguration.class.php
        2010-01-24 13:40:42 UTC (rev 27124)
@@ -3,10 +3,9 @@
 /**
  * td_article module configuration.
  *
- * @package    gospel
- * @subpackage td_article
+ * @package    tdBlogPlugin
+ * @subpackage backend
  * @author     Tomasz Ducin
- * @version    SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z 
Kris.Wallsmith $
  */
 class td_articleGeneratorConfiguration extends 
BaseTd_articleGeneratorConfiguration
 {

Modified: 
plugins/tdBlogPlugin/trunk/modules/td_article/lib/td_articleGeneratorHelper.class.php
===================================================================
--- 
plugins/tdBlogPlugin/trunk/modules/td_article/lib/td_articleGeneratorHelper.class.php
       2010-01-24 13:36:13 UTC (rev 27123)
+++ 
plugins/tdBlogPlugin/trunk/modules/td_article/lib/td_articleGeneratorHelper.class.php
       2010-01-24 13:40:42 UTC (rev 27124)
@@ -3,10 +3,9 @@
 /**
  * td_article module helper.
  *
- * @package    gospel
- * @subpackage td_article
+ * @package    tdBlogPlugin
+ * @subpackage backend
  * @author     Tomasz Ducin
- * @version    SVN: $Id: helper.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
  */
 class td_articleGeneratorHelper extends BaseTd_articleGeneratorHelper
 {

Modified: plugins/tdBlogPlugin/trunk/package.xml
===================================================================
--- plugins/tdBlogPlugin/trunk/package.xml      2010-01-24 13:36:13 UTC (rev 
27123)
+++ plugins/tdBlogPlugin/trunk/package.xml      2010-01-24 13:40:42 UTC (rev 
27124)
@@ -10,10 +10,10 @@
   <email>[email protected]</email>
   <active>yes</active>
  </lead>
- <date>2010-01-22</date>
+ <date>2010-01-24</date>
  <time>11:00:00</time>
  <version>
-   <release>0.1.0</release>
+   <release>0.1.1</release>
    <api>0.1.0</api>
  </version>
  <stability>
@@ -80,6 +80,9 @@
          <dir name="actions">
            <file name="actions.class.php" role="data" />
          </dir>
+         <dir name="i18n">
+           <file name="td.pl.xml" role="data" />
+         </dir>
          <dir name="templates">
            <file name="_article.php" role="data" />
            <file name="indexSuccess.php" role="data" />
@@ -111,7 +114,7 @@
     <package>
      <name>tdCorePlugin</name>
      <channel>plugins.symfony-project.org</channel>
-     <min>0.1.7</min>
+     <min>0.1.8</min>
     </package>
    </required>
   </dependencies>
@@ -123,6 +126,26 @@
 
    <release>
     <version>
+     <release>0.1.1</release>
+     <api>0.1.0</api>
+    </version>
+    <stability>
+     <release>beta</release>
+     <api>beta</api>
+    </stability>
+    <license uri="http://www.symfony-project.org/license";>MIT license</license>
+    <date>2010-01-24</date>
+    <license>MIT</license>
+    <notes>
+     * fixed short text method
+     * translation added
+     * article admin generator updated
+     * documentation updated
+    </notes>
+   </release>
+
+   <release>
+    <version>
      <release>0.1.0</release>
      <api>0.1.0</api>
     </version>

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to