Create programmatically a product attribute editable with Page BuilderChange attribute value programmaticallyMagento 2 : Add Product Attribute ProgrammaticallyGet product custom attribute data Magento 2?Create customer custom attribute with input type checkbox, multiselect, and radio Magento 2New Attribute values don't show on product pageHow to add an product attribute to multiple attribute sets programmatically?Magento 2 - Create product attribute programmaticallyCreate orders programmatically 2.2.4Widget/block code in product custom attribute not rendering at front-end magento 2.2.5Create Widget Content in Page Builder

Why Does Mama Coco Look Old After Going to the Other World?

Grep Match and extract

How can one's career as a reviewer be ended?

A map of non-pathological topology?

Difference between prepositions in "...killed during/in the war"

What would be the way to say "just saying" in German? (Not the literal translation)

Is Lambda Calculus purely syntactic?

LED not blinking when using a transistor

Why am I getting a strange double quote (“) in Open Office instead of the ordinary one (")?

A word that means "blending into a community too much"

Who is "He that flies" in Lord of the Rings?

Can the removal of a duty-free sales trolley result in a measurable reduction in emissions?

If there's something that implicates the president why is there then a national security issue? (John Dowd)

How do we say "within a kilometer radius spherically"?

How do free-speech protections in the United States apply in public to corporate misrepresentations?

How can I remove material from this wood beam?

Solving ‘Null geometry…’ error during distance matrix operation?

Printing Pascal’s triangle for n number of rows in Python

Confused with atmospheric pressure equals plastic balloon’s inner pressure

Why is Na5 not played in this line of the French Defense, Advance Variation?

Is there a set of positive integers of density 1 which contains no infinite arithmetic progression?

Why does smartdiagram replace the Greek letter xi by a number?

Increase speed altering column on large table to NON NULL

Should I put programming books I wrote a few years ago on my resume?



Create programmatically a product attribute editable with Page Builder


Change attribute value programmaticallyMagento 2 : Add Product Attribute ProgrammaticallyGet product custom attribute data Magento 2?Create customer custom attribute with input type checkbox, multiselect, and radio Magento 2New Attribute values don't show on product pageHow to add an product attribute to multiple attribute sets programmatically?Magento 2 - Create product attribute programmaticallyCreate orders programmatically 2.2.4Widget/block code in product custom attribute not rendering at front-end magento 2.2.5Create Widget Content in Page Builder






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















i need to programmatically create a bunch of custom product attributes, some editable with Page Builder. So i followed https://devdocs.magento.com/page-builder/docs/how-to/how-to-use-pagebuilder-for-product-attributes.html



First of all, i developed a custom module and created my custom attributes via Setup script. For instance, nota_cata has to be editable with PageBuilder:



'nota_cata' => [
'type' => 'text',
'backend' => '',
'frontend' => '',
'label' => 'Nota de cata',
'input' => 'textarea',
'class' => '',
'source' => '',
'global' =>
MagentoCatalogModelResourceModelEavAttribute::SCOPE_STORE,
'visible' => true,
'required' => false,
'user_defined' => true,
'default' => '',
'searchable' => false,
'filterable' => false,
'comparable' => false,
'visible_on_front' => true,
'used_in_product_listing' => false,
'unique' => false,
'apply_to' =>
'simple,grouped,configurable,downloadable,virtual,bundle',
'attribute_set_id' => self::ATTR_SET,
'group' => '',
'source' => '',
]



Next, i created app/code/Vendor/Module/view/adminhtml/ui_component/product_form.xml file to change my attribute input to Page Builder:



<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="drinks">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string" translate="true">Drinks</item>
<item name="sortOrder" xsi:type="number">100</item>
</item>
</argument>

<field name="nota_cata">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="required" xsi:type="boolean">false</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">false</item>
</item>
<item name="class" xsi:type="string">MagentoCatalogUiComponentCategoryFormElementWysiwyg</item>
<item name="formElement" xsi:type="string">wysiwyg</item>
<item name="label" translate="true" xsi:type="string">Nota de Cata</item>
<item name="wysiwygConfigData" xsi:type="array">
<item name="is_pagebuilder_enabled" xsi:type="boolean">true</item>
<item name="pagebuilder_button" xsi:type="boolean">true</item>
</item>
<item name="template" xsi:type="string">ui/form/field</item>
<item name="source" xsi:type="string">product</item>
<item name="wysiwyg" xsi:type="boolean">true</item>
<item name="dataScope" xsi:type="string">nota_cata</item>
<item name="sortOrder" xsi:type="number">60</item>
<item name="rows" xsi:type="number">8</item>
</item>
</argument>
</field>
</fieldset>
</form>


But i get this in backend product form:



enter image description here



There's not only a pagebuilder button as expected, but also a text area with my attribute info. Both fields show attribute current data and change its value.



How can i make that only pagebuilder link is shown in frontend?



Any help will be appreciated.
Thanks in advance,
Antonio










share|improve this question




























    0















    i need to programmatically create a bunch of custom product attributes, some editable with Page Builder. So i followed https://devdocs.magento.com/page-builder/docs/how-to/how-to-use-pagebuilder-for-product-attributes.html



    First of all, i developed a custom module and created my custom attributes via Setup script. For instance, nota_cata has to be editable with PageBuilder:



    'nota_cata' => [
    'type' => 'text',
    'backend' => '',
    'frontend' => '',
    'label' => 'Nota de cata',
    'input' => 'textarea',
    'class' => '',
    'source' => '',
    'global' =>
    MagentoCatalogModelResourceModelEavAttribute::SCOPE_STORE,
    'visible' => true,
    'required' => false,
    'user_defined' => true,
    'default' => '',
    'searchable' => false,
    'filterable' => false,
    'comparable' => false,
    'visible_on_front' => true,
    'used_in_product_listing' => false,
    'unique' => false,
    'apply_to' =>
    'simple,grouped,configurable,downloadable,virtual,bundle',
    'attribute_set_id' => self::ATTR_SET,
    'group' => '',
    'source' => '',
    ]



    Next, i created app/code/Vendor/Module/view/adminhtml/ui_component/product_form.xml file to change my attribute input to Page Builder:



    <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <fieldset name="drinks">
    <argument name="data" xsi:type="array">
    <item name="config" xsi:type="array">
    <item name="label" xsi:type="string" translate="true">Drinks</item>
    <item name="sortOrder" xsi:type="number">100</item>
    </item>
    </argument>

    <field name="nota_cata">
    <argument name="data" xsi:type="array">
    <item name="config" xsi:type="array">
    <item name="required" xsi:type="boolean">false</item>
    <item name="validation" xsi:type="array">
    <item name="required-entry" xsi:type="boolean">false</item>
    </item>
    <item name="class" xsi:type="string">MagentoCatalogUiComponentCategoryFormElementWysiwyg</item>
    <item name="formElement" xsi:type="string">wysiwyg</item>
    <item name="label" translate="true" xsi:type="string">Nota de Cata</item>
    <item name="wysiwygConfigData" xsi:type="array">
    <item name="is_pagebuilder_enabled" xsi:type="boolean">true</item>
    <item name="pagebuilder_button" xsi:type="boolean">true</item>
    </item>
    <item name="template" xsi:type="string">ui/form/field</item>
    <item name="source" xsi:type="string">product</item>
    <item name="wysiwyg" xsi:type="boolean">true</item>
    <item name="dataScope" xsi:type="string">nota_cata</item>
    <item name="sortOrder" xsi:type="number">60</item>
    <item name="rows" xsi:type="number">8</item>
    </item>
    </argument>
    </field>
    </fieldset>
    </form>


    But i get this in backend product form:



    enter image description here



    There's not only a pagebuilder button as expected, but also a text area with my attribute info. Both fields show attribute current data and change its value.



    How can i make that only pagebuilder link is shown in frontend?



    Any help will be appreciated.
    Thanks in advance,
    Antonio










    share|improve this question
























      0












      0








      0








      i need to programmatically create a bunch of custom product attributes, some editable with Page Builder. So i followed https://devdocs.magento.com/page-builder/docs/how-to/how-to-use-pagebuilder-for-product-attributes.html



      First of all, i developed a custom module and created my custom attributes via Setup script. For instance, nota_cata has to be editable with PageBuilder:



      'nota_cata' => [
      'type' => 'text',
      'backend' => '',
      'frontend' => '',
      'label' => 'Nota de cata',
      'input' => 'textarea',
      'class' => '',
      'source' => '',
      'global' =>
      MagentoCatalogModelResourceModelEavAttribute::SCOPE_STORE,
      'visible' => true,
      'required' => false,
      'user_defined' => true,
      'default' => '',
      'searchable' => false,
      'filterable' => false,
      'comparable' => false,
      'visible_on_front' => true,
      'used_in_product_listing' => false,
      'unique' => false,
      'apply_to' =>
      'simple,grouped,configurable,downloadable,virtual,bundle',
      'attribute_set_id' => self::ATTR_SET,
      'group' => '',
      'source' => '',
      ]



      Next, i created app/code/Vendor/Module/view/adminhtml/ui_component/product_form.xml file to change my attribute input to Page Builder:



      <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
      <fieldset name="drinks">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="label" xsi:type="string" translate="true">Drinks</item>
      <item name="sortOrder" xsi:type="number">100</item>
      </item>
      </argument>

      <field name="nota_cata">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="required" xsi:type="boolean">false</item>
      <item name="validation" xsi:type="array">
      <item name="required-entry" xsi:type="boolean">false</item>
      </item>
      <item name="class" xsi:type="string">MagentoCatalogUiComponentCategoryFormElementWysiwyg</item>
      <item name="formElement" xsi:type="string">wysiwyg</item>
      <item name="label" translate="true" xsi:type="string">Nota de Cata</item>
      <item name="wysiwygConfigData" xsi:type="array">
      <item name="is_pagebuilder_enabled" xsi:type="boolean">true</item>
      <item name="pagebuilder_button" xsi:type="boolean">true</item>
      </item>
      <item name="template" xsi:type="string">ui/form/field</item>
      <item name="source" xsi:type="string">product</item>
      <item name="wysiwyg" xsi:type="boolean">true</item>
      <item name="dataScope" xsi:type="string">nota_cata</item>
      <item name="sortOrder" xsi:type="number">60</item>
      <item name="rows" xsi:type="number">8</item>
      </item>
      </argument>
      </field>
      </fieldset>
      </form>


      But i get this in backend product form:



      enter image description here



      There's not only a pagebuilder button as expected, but also a text area with my attribute info. Both fields show attribute current data and change its value.



      How can i make that only pagebuilder link is shown in frontend?



      Any help will be appreciated.
      Thanks in advance,
      Antonio










      share|improve this question














      i need to programmatically create a bunch of custom product attributes, some editable with Page Builder. So i followed https://devdocs.magento.com/page-builder/docs/how-to/how-to-use-pagebuilder-for-product-attributes.html



      First of all, i developed a custom module and created my custom attributes via Setup script. For instance, nota_cata has to be editable with PageBuilder:



      'nota_cata' => [
      'type' => 'text',
      'backend' => '',
      'frontend' => '',
      'label' => 'Nota de cata',
      'input' => 'textarea',
      'class' => '',
      'source' => '',
      'global' =>
      MagentoCatalogModelResourceModelEavAttribute::SCOPE_STORE,
      'visible' => true,
      'required' => false,
      'user_defined' => true,
      'default' => '',
      'searchable' => false,
      'filterable' => false,
      'comparable' => false,
      'visible_on_front' => true,
      'used_in_product_listing' => false,
      'unique' => false,
      'apply_to' =>
      'simple,grouped,configurable,downloadable,virtual,bundle',
      'attribute_set_id' => self::ATTR_SET,
      'group' => '',
      'source' => '',
      ]



      Next, i created app/code/Vendor/Module/view/adminhtml/ui_component/product_form.xml file to change my attribute input to Page Builder:



      <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
      <fieldset name="drinks">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="label" xsi:type="string" translate="true">Drinks</item>
      <item name="sortOrder" xsi:type="number">100</item>
      </item>
      </argument>

      <field name="nota_cata">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="required" xsi:type="boolean">false</item>
      <item name="validation" xsi:type="array">
      <item name="required-entry" xsi:type="boolean">false</item>
      </item>
      <item name="class" xsi:type="string">MagentoCatalogUiComponentCategoryFormElementWysiwyg</item>
      <item name="formElement" xsi:type="string">wysiwyg</item>
      <item name="label" translate="true" xsi:type="string">Nota de Cata</item>
      <item name="wysiwygConfigData" xsi:type="array">
      <item name="is_pagebuilder_enabled" xsi:type="boolean">true</item>
      <item name="pagebuilder_button" xsi:type="boolean">true</item>
      </item>
      <item name="template" xsi:type="string">ui/form/field</item>
      <item name="source" xsi:type="string">product</item>
      <item name="wysiwyg" xsi:type="boolean">true</item>
      <item name="dataScope" xsi:type="string">nota_cata</item>
      <item name="sortOrder" xsi:type="number">60</item>
      <item name="rows" xsi:type="number">8</item>
      </item>
      </argument>
      </field>
      </fieldset>
      </form>


      But i get this in backend product form:



      enter image description here



      There's not only a pagebuilder button as expected, but also a text area with my attribute info. Both fields show attribute current data and change its value.



      How can i make that only pagebuilder link is shown in frontend?



      Any help will be appreciated.
      Thanks in advance,
      Antonio







      magento2 magento2.3.1 magento-enterprise-2 magento2-cloud page-builder






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 3 at 13:33









      AntonioAntonio

      158




      158




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f277094%2fcreate-programmatically-a-product-attribute-editable-with-page-builder%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f277094%2fcreate-programmatically-a-product-attribute-editable-with-page-builder%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?