Changeset 27111
- Timestamp:
- 01/24/10 02:22:19 (3 years ago)
- Files:
-
- plugins/tdGuestbookPlugin/trunk/README (modified) (2 diffs)
- plugins/tdGuestbookPlugin/trunk/config/tdGuestbookPluginConfiguration.class.php (modified) (1 diff)
- plugins/tdGuestbookPlugin/trunk/lib/model/doctrine/PlugintdGuestbook.class.php (modified) (1 diff)
- plugins/tdGuestbookPlugin/trunk/modules/td_guestbook/config/generator.yml (modified) (1 diff)
- plugins/tdGuestbookPlugin/trunk/package.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/tdGuestbookPlugin/trunk/README
r27056 r27111 29 29 ===== 30 30 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 31 56 Configuration 32 57 ============= 33 58 34 59 You can modify settings of the tdGuestbookPlugin in the 35 __config/tdG UestbookPluginConfiguration.class.php__ file:60 __config/tdGuestbookPluginConfiguration.class.php__ file: 36 61 37 62 * _td_guestbook_entries_per_page_ - number of guestbook entries shown on each 38 63 page. 64 65 * _td_guestbook_short_text_sign_count_ - character count of a short guestbook 66 entry descrtiption version 39 67 40 68 Translations … … 42 70 43 71 You 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_ 45 73 directory (where XX is the language code). So far, English language is the 46 74 default one and additionally Polish translationis provided. plugins/tdGuestbookPlugin/trunk/config/tdGuestbookPluginConfiguration.class.php
r26108 r27111 20 20 // number of guestbook entries shown on each page 21 21 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); 22 25 } 23 26 } plugins/tdGuestbookPlugin/trunk/lib/model/doctrine/PlugintdGuestbook.class.php
r26129 r27111 13 13 abstract class PlugintdGuestbook extends BasetdGuestbook 14 14 { 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 15 25 /** 16 26 * Activates the guestbook entry. plugins/tdGuestbookPlugin/trunk/modules/td_guestbook/config/generator.yml
r26762 r27111 45 45 display: [ active, author, text, updated_at ] 46 46 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> 47 56 filter: ~ 48 57 form: plugins/tdGuestbookPlugin/trunk/package.xml
r27056 r27111 11 11 <active>yes</active> 12 12 </lead> 13 <date>2010-01-2 2</date>13 <date>2010-01-24</date> 14 14 <time>11:00:00</time> 15 15 <version> 16 <release>0.1. 2</release>16 <release>0.1.3</release> 17 17 <api>0.1.0</api> 18 18 </version> … … 130 130 <release> 131 131 <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> 132 151 <release>0.1.2</release> 133 152 <api>0.1.0</api>