Development

Changeset 27111

You must first sign up to be able to contribute.

Changeset 27111

Show
Ignore:
Timestamp:
01/24/10 02:22:19 (3 years ago)
Author:
tkoomzaaskz
Message:

[td][guestbook] admin & docs updated - preparing for 0.1.3 release

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/tdGuestbookPlugin/trunk/README

    r27056 r27111  
    2929===== 
    3030 
     31  * Enable the __tdSampleGuestbook__ module in your frontend application's 
     32    _config/settings.yml_ enabled_modules section: 
     33 
     34        [php] 
     35        enabled_modules: [ ..., tdSampleGuestbook ] 
     36 
     37  * Fixtures are provided with the plugin - randomly generated data. Run the 
     38    following commands: 
     39 
     40        $ ./symfony doctrine:build --all 
     41 
     42    and 
     43 
     44        $ ./symfony doctrine:data-load 
     45 
     46    and run the following URL in your browser: 
     47 
     48        http://your-project/sample-guestbook 
     49 
     50  * Enable the td_guestbook admin generator in your backend application's 
     51    _config/settings.yml_ enabled_modules section: 
     52 
     53        [php] 
     54        enabled_modules: [ ..., td_guestbook ] 
     55 
    3156Configuration 
    3257============= 
    3358 
    3459You can modify settings of the tdGuestbookPlugin in the 
    35 __config/tdGUestbookPluginConfiguration.class.php__ file: 
     60__config/tdGuestbookPluginConfiguration.class.php__ file: 
    3661 
    3762  * _td_guestbook_entries_per_page_ - number of guestbook entries shown on each 
    3863    page. 
     64 
     65  * _td_guestbook_short_text_sign_count_ - character count of a short guestbook 
     66    entry descrtiption version 
    3967 
    4068Translations 
     
    4270 
    4371You may translate tdGuestbook module to your own language by creating 
    44 __td_guestbook.XX.xml__ file under _modules/tdGuestbook/i18n_ 
     72__td.XX.xml__ file under _modules/tdGuestbook/i18n_ 
    4573directory (where XX is the language code). So far, English language is the 
    4674default one and additionally Polish translationis provided. 
  • plugins/tdGuestbookPlugin/trunk/config/tdGuestbookPluginConfiguration.class.php

    r26108 r27111  
    2020    // number of guestbook entries shown on each page 
    2121    sfConfig::set('td_guestbook_entries_per_page', 15); 
     22 
     23    // video short description sign count 
     24    sfConfig::set('td_guestbook_short_text_sign_count', 200); 
    2225  } 
    2326} 
  • plugins/tdGuestbookPlugin/trunk/lib/model/doctrine/PlugintdGuestbook.class.php

    r26129 r27111  
    1313abstract class PlugintdGuestbook extends BasetdGuestbook 
    1414{ 
     15  /** 
     16   * Returns short text of the guestbook entry. 
     17   * 
     18   * @return String - short text. 
     19   */ 
     20  public function getTextShort() 
     21  { 
     22    return tdTools::getMbShortenedString($this->getText(), sfConfig::get('td_guestbook_short_text_sign_count')); 
     23  } 
     24 
    1525  /** 
    1626   * Activates the guestbook entry. 
  • plugins/tdGuestbookPlugin/trunk/modules/td_guestbook/config/generator.yml

    r26762 r27111  
    4545        display: [ active, author, text, updated_at ] 
    4646        max_per_page: 10 
     47        layout: stacked 
     48        params: | 
     49          <strong>Autor</strong>: <i>%%author%%</i> %%active%% 
     50          <br /> 
     51          <strong>Treść</strong>: <div class="text_box">%%text_short%%</div> 
     52          <br /> 
     53          <strong>Utworzono</strong>: <i>%%created_at%%</i> 
     54          <br /> 
     55          <strong>Zmieniono</strong>: <i>%%updated_at%%</i> 
    4756      filter:  ~ 
    4857      form: 
  • plugins/tdGuestbookPlugin/trunk/package.xml

    r27056 r27111  
    1111  <active>yes</active> 
    1212 </lead> 
    13  <date>2010-01-22</date> 
     13 <date>2010-01-24</date> 
    1414 <time>11:00:00</time> 
    1515 <version> 
    16    <release>0.1.2</release> 
     16   <release>0.1.3</release> 
    1717   <api>0.1.0</api> 
    1818 </version> 
     
    130130   <release> 
    131131    <version> 
     132     <release>0.1.3</release> 
     133     <api>0.1.0</api> 
     134    </version> 
     135    <stability> 
     136     <release>beta</release> 
     137     <api>beta</api> 
     138    </stability> 
     139    <license uri="http://www.symfony-project.org/license">MIT license</license> 
     140    <date>2010-01-24</date> 
     141    <license>MIT</license> 
     142    <notes> 
     143     * admin generator updated 
     144     * short text method created/admin 
     145     * docs updated 
     146    </notes> 
     147   </release> 
     148 
     149   <release> 
     150    <version> 
    132151     <release>0.1.2</release> 
    133152     <api>0.1.0</api>