文档中没有任何内容,并将其添加到.isml文件中无效。
<isFormField formparameter="#webform:PhoneHome#"
label="account.default_address.phonehome.label"
messageprefix="#addressKeyPrefix#"
value="#valuePhoneHome#"
placeholder="1-234-567-9810"
>
答案 0 :(得分:4)
这是定义。它没有占位符输入参数。您必须覆盖此模块并对其进行扩展。
在这里找到它:
app_sf_responsive/staticfiles/cartridge/templates/default/modules/address/forms/inc/Modules.isml
Parameters:
- formparameter (mandatory)
The form parameter which delivers default values for id and value as well as logic for validation and error messages
- id
Used to link label and input field. If no id is specified, one will automatically be generated from the from parameter
- label
The text displayed as the form field's label. Can be a localization tag as well as a hard coded string. If no label parameter is specified, no label will be rendered
- value
Used to prefill the input field. If no value parameter is defined, the form parameter's value will be used as fallback
- fieldname
The name of the input field
- groupclass
CSS class which is appended to the div surrounding label and input field
- showtooltip (default=false)
If it is true, a tooltip will be rendered, the following tooltip parameters are required
- tooltip_linktext
If a tooltip is rendered, this text is displayed as the tooltip's link text. Can be a localization tag as well as a hard coded string
- tooltip_headline
If a tooltip is rendered, this text is displayed as the tooltip's headline. Can be a localization tag as well as a hard coded string
- tooltip_content (mandatory for tooltips)
This text is displayed as the tooltip's content text. Can be a localization tag as well as a hard coded string. If no tooltip_content parameter is set, no tooltip will be rendered at all
<ismodule template="modules/address/forms/inc/FormField"
name="FormField"
attribute="formparameter"
attribute="id"
attribute="label"
attribute="value"
attribute="fieldname"
attribute="groupclass"
attribute="messageprefix"
attribute="showtooltip"
attribute="tooltip_linktextkey"
attribute="tooltip_headlinekey"
attribute="tooltip_contentkey"
strict="true"
/>
要进行扩展,请在自定义盒式磁带中创建Modules.isml
和FormField.isml
模板。确保使用&#34; 覆盖现有&#34;新isml模板向导中的按钮,以便您覆盖app_sf_responsive购物车中的isml文件。
将占位符属性添加到Modules.isml
并在FormField.isml
模板中将其读出。在表单中使用新修改的模块。
答案 1 :(得分:1)
从Intershop 7.6开始,您可以直接作为a_responsive的一部分对isml进行更改,而无需覆盖。 无论如何我会追踪这个缺陷。所以我们也可以解决它。你用的是哪个版本?