Questions tagged «system-configuration»

2
Magento 2:system.xml中的可用字段类型
etc/system.xml配置文件中字段类型的可用值是什么: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <system> <section id="..."> <group id="..."> <field id="..." type="???"> ... </field> </group> </section> </system> </config>

6
如何解密加密的配置值?
protected $_paymentData; protected $_scopeConfig; protected $logger; public function __construct( \Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Magento\Framework\Module\ModuleListInterface $moduleList, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Directory\Model\CountryFactory $countryFactory, \Stripe\Stripe $stripe, \Inchoo\Stripe\Model\StripeFactory $stripeFactory, array $data = array() ) { parent::__construct( $context, $registry, $extensionFactory, $customAttributeFactory, $paymentData, $scopeConfig, $logger, $moduleList, $localeDate, null, …

1
Magento 2:从布局XML中的系统配置中获取价值
如何从我在管理系统配置中设置的核心配置值中的页脚中获取模块链接标识符 <referenceBlock name="footer_links"> <block class="Magento\Framework\View\Element\Html\Link\Current" name="storelocator-policy-link"> <arguments > <argument ifconfig="googlemapsstorelocator/general/enable" name="label" xsi:type="string">Google Maps Store Locator</argument> <argument name="path" xsi:type="string">I need this value form the configuration settings</argument> </arguments> </block> </referenceBlock>

3
系统配置多选默认全部选中
我有一个multiselect类型的系统配置字段,该字段将使用填充catalog/product_attribute_collection。这是system.xml定义它的一部分。 <attributes> <label>Choose Attributes to JSONize</label> <frontend_type>multiselect</frontend_type> <sort_order>3</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <source_model>package_module/system_config_attributes</source_model> </attributes> 现在,我希望默认情况下选中multiselect中的所有值。由于系统配置的默认值是在中定义的config.xml,因此我不确定如何选择全部作为默认值。 这是config.xml与问题有关的部分 <default> <mytab> <mysection> <attributes><!-- ***WHAT SHOULD I WRITE HERE*** --></attributes> </mysection> </mytab> </default>
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.