- Timestamp:
- 09/01/10 11:59:43 (21 months ago)
- Location:
- plugins/apostrophePlugin/trunk
- Files:
-
- 2 modified
-
. (modified) (1 prop)
-
lib/form/BaseaPageSettingsForm.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/apostrophePlugin/trunk
- Property svn:mergeinfo changed
/plugins/apostrophePlugin/branches/features/wjohnald (added) merged: 1984,1988,1990,2012,2015,2104-2106
- Property svn:mergeinfo changed
-
plugins/apostrophePlugin/trunk/lib/form/BaseaPageSettingsForm.class.php
r2016 r2107 93 93 ))); 94 94 95 // Tags 96 $tagstring = implode(', ', $this->getObject()->getTags()); // added a space after the comma for readability 97 // class tag-input enabled for typeahead support 98 $this->setWidget('tags', new sfWidgetFormInput(array('default' => $tagstring), array('class' => 'tags-input'))); 99 $this->setValidator('tags', new sfValidatorString(array('required' => false))); 100 101 102 // Meta Description 103 $metaDescription = $this->getObject()->getMetaDescription(); 104 $this->setWidget('meta_description', new sfWidgetFormTextArea(array('default' => html_entity_decode($metaDescription, ENT_COMPAT, 'UTF-8')))); 105 $this->setValidator('meta_description', new sfValidatorString(array('required' => false))); 106 107 108 95 109 $this->addPrivilegeWidget('edit', 'editors'); 96 110 $this->addPrivilegeWidget('manage', 'managers'); … … 236 250 $object = parent::updateObject($values); 237 251 252 // Update tags on Page 253 if ($this->getValue('tags') != '') 254 { 255 $this->getObject()->addTag($this->getValue('tags')); 256 } 257 258 // Update meta-description on Page 259 if ($this->getValue('meta_description') != '') 260 { 261 $this->getObject()->setMetaDescription(htmlentities($this->getValue('meta_description'))); 262 } 263 238 264 // Check for cascading operations 239 265 if($this->getValue('cascade_archived') || $this->getValue('cascade_view_is_secure'))

