diff options
| author | thomas <noreply@maennchen1.de> | 2018-03-23 08:10:59 +0000 |
|---|---|---|
| committer | thomas <noreply@maennchen1.de> | 2018-03-23 08:10:59 +0000 |
| commit | fed830170fe966a9dc8823786d18b6addeac2ad4 (patch) | |
| tree | 025e77feb0f3cb0f520dcd0c605752dae8554228 | |
| parent | 98476534fd39241b60e13727f0e131ba7d37423f (diff) | |
- Begrenzung PathKey
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6948 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/admin/form/input.phtml | 3 | ||||
| -rw-r--r-- | views/mods/mod_produktartikel/settings_edit.phtml | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/views/admin/form/input.phtml b/views/admin/form/input.phtml index d06949c..08278d2 100644 --- a/views/admin/form/input.phtml +++ b/views/admin/form/input.phtml @@ -33,6 +33,9 @@ <?php if (wpsg_isTrue($this->view['field_config']['readonly'])) { ?>
readonly="readonly"
<?php } ?>
+ <?php if (wpsg_isSizedInt($this->view['field_config']['maxlength'])) { ?>
+ maxlength="<?php echo $this->view['field_config']['maxlength']; ?>"
+ <?php } ?>
/>
<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
<?php if (wpsg_isTrue($this->view['field_config']['rAlign'])) { ?>
diff --git a/views/mods/mod_produktartikel/settings_edit.phtml b/views/mods/mod_produktartikel/settings_edit.phtml index 6b80e4a..ece29ef 100644 --- a/views/mods/mod_produktartikel/settings_edit.phtml +++ b/views/mods/mod_produktartikel/settings_edit.phtml @@ -6,8 +6,8 @@ ?>
-<?php echo wpsg_drawForm_Input('wpsg_mod_produktartikel_pathkey', __('Path Key (Produkte)', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_pathkey'), array('help' => 'wpsg_mod_produktartikel_pathkey')); ?>
-<?php echo wpsg_drawForm_Input('wpsg_mod_produktartikel_pathkey_cat', __('Path Key (Kategorien)', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_pathkey_cat'), array('help' => 'wpsg_mod_produktartikel_pathkey_cat')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_produktartikel_pathkey', __('Path Key (Produkte)', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_pathkey'), array('maxlength' => 20, 'help' => 'wpsg_mod_produktartikel_pathkey')); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_produktartikel_pathkey_cat', __('Path Key (Kategorien)', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_pathkey_cat'), array('maxlength' => 20, 'help' => 'wpsg_mod_produktartikel_pathkey_cat')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_showui', __('Custom Post Type in Wordpress Menü sichtbar', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_showui'), array('help' => 'wpsg_mod_produktartikel_showui'))?>
|
