Bild-Caption verlängern (#1786)
Sowohl die Caption, als auch Title und Description sind nun per Parameter in cms config in der Länge einstellelbar. Dabei wird die jeweilige Länge auf die Länge des DB Feldes begrenzt (hart kodiert).
Parameter: com.arsdigita.cms.image_browser.{caption,title,description}_size
git-svn-id: https://svn.libreccm.org/ccm/trunk@2392 8810af33-2d31-482b-a856-94f89814c4df
master
parent
e917176d17
commit
80c13748e8
File diff suppressed because it is too large
Load Diff
|
|
@ -295,6 +295,22 @@ com.arsdigita.cms.image_browser.thumbnail_max_height.purpose=Set the maximum hei
|
|||
com.arsdigita.cms.image_browser.thumbnail_max_height.example=150
|
||||
com.arsdigita.cms.image_browser.thumbnail_max_height.format=[integer]
|
||||
|
||||
|
||||
com.arsdigita.cms.image_browser.caption_size.title = Max size for image caption (must be < 100)
|
||||
com.arsdigita.cms.image_browser.caption_size.purpose = Set the ValidationListener for image caption to a smaller size than the db field
|
||||
com.arsdigita.cms.image_browser.caption_size.example = 100
|
||||
com.arsdigita.cms.image_browser.caption_size.format = [Integer]
|
||||
|
||||
com.arsdigita.cms.image_browser.description_size.title = Max size for image description (must be < 400)
|
||||
com.arsdigita.cms.image_browser.description_size.purpose = Set the ValidationListener for image description to a smaller size than the db field
|
||||
com.arsdigita.cms.image_browser.description_size.example = 400
|
||||
com.arsdigita.cms.image_browser.description_size.format = [Integer]
|
||||
|
||||
com.arsdigita.cms.image_browser.title_size.title = Max size for image title (must be < 200)
|
||||
com.arsdigita.cms.image_browser.title_size.purpose = Set the ValidationListener for image title to a smaller size than the db field
|
||||
com.arsdigita.cms.image_browser.title_size.example = 200
|
||||
com.arsdigita.cms.image_browser.title_size.format = [Integer]
|
||||
|
||||
com.arsdigita.cms.image_cache.enable.title=Enable server-side image cache
|
||||
com.arsdigita.cms.image_cache.enable.purpose=Enable server-side coherent image cache, which will speed up server-side image resizing
|
||||
com.arsdigita.cms.image_cache.enable.example=true|false
|
||||
|
|
@ -338,4 +354,4 @@ com.arsdigita.cms.xml.cache.size.format=[integer]
|
|||
com.arsdigita.cms.xml.cache.age.title=Maximum age of an entry in the XML cache
|
||||
com.arsdigita.cms.xml.cache.age.purpose=Maximum age of an entry in the XML cache
|
||||
com.arsdigita.cms.xml.cache.age.example=60*60*24
|
||||
com.arsdigita.cms.xml.cache.age.format=[integer]
|
||||
com.arsdigita.cms.xml.cache.age.format=[integer]
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ import com.arsdigita.bebop.event.FormSectionEvent;
|
|||
import com.arsdigita.bebop.form.TextField;
|
||||
import com.arsdigita.bebop.parameters.BigDecimalParameter;
|
||||
import com.arsdigita.bebop.parameters.NotNullValidationListener;
|
||||
import com.arsdigita.cms.CMS;
|
||||
import com.arsdigita.cms.ContentItem;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.ReusableImageAsset;
|
||||
|
|
@ -101,12 +102,12 @@ public class ImageLibraryComponent extends SimpleContainer
|
|||
m_form.add(new Label(GlobalizationUtil
|
||||
.globalize("cms.contentasset.image.ui.caption")));
|
||||
m_caption.addValidationListener(new NotNullValidationListener());
|
||||
m_caption.setSize(40);
|
||||
m_caption.setSize(CMS.getConfig().getImageBrowserCaptionSize());
|
||||
m_form.add(m_caption);
|
||||
m_description.addValidationListener(new NotNullValidationListener());
|
||||
m_description.setSize(40);
|
||||
m_description.setSize(CMS.getConfig().getImageBrowserCaptionSize());
|
||||
m_title.addValidationListener(new NotNullValidationListener());
|
||||
m_title.setSize(40);
|
||||
m_title.setSize(CMS.getConfig().getImageBrowserCaptionSize());
|
||||
// Only show the title and description fields where these have
|
||||
// been explicitly requested.
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue