Skip to content

Commit

Permalink
Merge pull request #1 from osrecio/patch-1
Browse files Browse the repository at this point in the history
Changed Backend Model Image by variable
  • Loading branch information
jalogut authored Feb 22, 2017
2 parents 9d35f3d + bbdde1c commit 0d5e3cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Preferences/templates/StmpflMagento2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,11 @@
<option name="PHP" value="true" />
</context>
</template>
<template name="2magento eav image attribute" value="$attributes['$fieldName$'] = [&#10; 'type' =&gt; 'varchar',&#10; 'label' =&gt; '$capitalizedFieldName$',&#10; 'input' =&gt; 'image',&#10; 'backend' =&gt; 'Staempfli\StoreLocator\Model\Locations\Attribute\Backend\Image',&#10; 'required' =&gt; $required$, //true/false&#10; 'sort_order' =&gt; $position$,&#10; 'global' =&gt; ScopedAttributeInterface::$scope$,&#10; 'group' =&gt; 'General',&#10;];&#10;&#10;$END$" toReformat="false" toShortenFQNames="true">
<template name="2magento eav image attribute" value="$attributes['$fieldName$'] = [&#10; 'type' =&gt; 'varchar',&#10; 'label' =&gt; '$capitalizedFieldName$',&#10; 'input' =&gt; 'image',&#10; 'backend' =&gt; '$vendor$\$package$\Model\Attribute\Backend\Image',&#10; 'required' =&gt; $required$, //true/false&#10; 'sort_order' =&gt; $position$,&#10; 'global' =&gt; ScopedAttributeInterface::$scope$,&#10; 'group' =&gt; 'General',&#10;];&#10;&#10;$END$" toReformat="false" toShortenFQNames="true">
<variable name="fieldName" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="capitalizedFieldName" expression="capitalize(fieldName)" defaultValue="" alwaysStopAt="false" />
<variable name="vendor" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="package" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="required" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="position" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="scope" expression="" defaultValue="" alwaysStopAt="true" />
Expand Down Expand Up @@ -550,4 +552,4 @@
<option name="XML" value="true" />
</context>
</template>
</templateSet>
</templateSet>

0 comments on commit 0d5e3cd

Please sign in to comment.